Phython camera view on macbook pro - Raspberry Pi Q&A, Help & Troubleshooting

Hi All,
I am very new to this and need a little help. I have tried to google this and followed the tutorials but have not had much luck.
I am using Python to activate and control the camera on our RBP.
I do not always have a screen to view the RBP hdmi out, so I connected the RBP via ethernet to my Macbook Pro. The problem is, when the code is ran, the camera is not visible on the Macbook. This is required to see if the code is working as expected.
There a few methods that have been used, mjpg-streamer being the most popular. They all seem to need an internet connect to stream the video and that is not always practical. That method may not also help to view the code.
It is running raspbian but the os can be changed if needed.
Any help is great.
Cheers
Nick

Apple MacBooks
Unfortunately, I can't help you. I don't do such experiments with my MacBook. My Windows laptop it the one that suffers all the modifications. I call it Frankenstein.

Related

Cast phone screen to Chromecast?

I have a client who has a M7 and a Tab Pro 10.1 and he wants to know how to stream the screen of his tablet to his TV or PC at his office to use for a demonstration and use kind of as a remote whiteboard. He saw someone doing it at a meeting he went to last week, but did not ask how they were doing it. I have searched all around and it looks like he has to be rooted to do it, but it seems unreliable and I don't want to have to fix or set this thing up every time he uses it. I am sure he wont mind rooting his tablet if it means he will be able to stream his screen. I was hoping Chromecast would be able to do it easily, but it looks like that is not a feature yet and it can only be done fairly reliably through Chrome on a computer.
Has anyone done this yet? What do you recommend?
He has a:
HTC One M7
Tab Pro 10.1 (stock)
Intel Nuc running Windows 8.1 Pro 64 connected to the TV
Chromecast
Vizio 70" TV
Thanks in advance!

Video out?

I've tried a USB-C hub with HDMI as well as a screen with a USB-C connector, which both work on my laptop. I don't expect anything to work, but did anyone try the USB-HDMI converters that were reported to work on F1 a while ago?
Having a low-latency video output would be a dream come true.
It dont work, i saw a video review before buying the poco X3 .... only lg, samsung, huawei flagships do that...
Sadly I wanted to mirror Snes and PSone emulators to TV with a USB-C/HDMI output dongle and play with my Dualshock 4.. but not with poco X3
Was wondering if the DisplayLink adapters work: https://forum.xda-developers.com/showpost.php?p=80746715&postcount=53 - as I know the other cables don't.
The standard is called MHL, and I don't think poco x3 supports it :/
NHL =no
USB c audio adapter /dac =no
YES, video out is possible on the POCOPHONE X3 NFC! )
Since it's my first post, I was prevented from posting outside links. Whenever there was a link, you will now read 'google it'
You read it right, fellers. :angel:
DisplayLink is the name of the magic. Let's break it down:
1. Acquire any of the many DisplayLink enabled dongles or desktop versions. Products at the link:
google it
2. Acquire a USB-A to USB-C OTG adapter like this one:
google it
3. Download and install (no-root required!) the android app "DisplayLink Presenter" in your Poco X3 from:
google it
4. If you've already installed the app and already got your dongle
- plug the adapter's USB-A female end to the dongle's USB_A male.
-plug the cable from your HDMI monitor/TV to the dongle.
-plug the adapter's USB-C end to your X3.
5. Give it a coupla seconds ... Magic! There pops up the same image on both your phone and your TV/monitor! It's a window from the DisplayLink Presenter app. Plug and play, no need to open the app. Close it out, turn your phone sideways and enjoy the picture. Hook up a BT keyboard/mouse and you're good to go.
6. YouTube, Netflix, Vimeo all run with no problem. Games work, apps work, PowerPoint presentations work. Word works. Browsing works.
7. Desktop mode doesn't work. Charging simultaneously doesn't work (with this set up, but there is workaround...). Audio embedded in PP presentation may glitch at times.
That's it, me frends. Enjoy your POCOPHONE X3 NFC mirrored image, with no lag, in the full glory of a large monitor/TV, to the delight of your eyes!
P.S.: And for those interested in going wireless, check this one out:
google Hyper Mirror
Peace.
Just an explanation for you, I've done a truck load of research? on this, while I was deciding what phone to buy.
USB Type C have different types just as USBs do. So USBs went from 1 to 3; USB Type C have both 2 and 3, then thunderbolt, etc.
Essentially, what Xiaomi have done, is use the USB2 internals within the newer Type C connectors. So we get OTG but no video out.
This also means we don't have any more than 480Mbps data transfer speed.
USB3 is 5GB/s, USB3.1 is 10GB/s.
They are actually call them USB2 Type C/USB3 Type C. I honestly don't think a lot of places selling adapters, cables, etc. actually understand what they are selling as they label them all as Type C.
The solution to this, as above, is Displaylink, or equivalent, which I believe are still all Displaylink underneath.
Soooo what you end up with is a nightmare, a lot of people might think it's not worth the headache and carting around everything, especially if you are prone to losing things.
The simplest way to put it is that you need a USB2 Type C OTG cable, which connects from Poco X3 to an adapter (Displaylink/Wavelink/etc.), and a HDMI cable, which connects from the adapter to monitor.
There are other options, depending on how much you want to spend.
The only thing I haven't been able to figure out 100% is whether or not the adaptors can take the lowly USB2 480mbps speed and convert it into 4k. My brain says no way, but due to not finding any people that have used the more expensive adapters, I don't have an actual answer.
If any of this is wrong, let me know, it's only what I've been able to figure out on my own, and funny enough, it's actually more difficult to find than you'd think. Especially when you didn't know what you are starting off from.
Okay so I've found an 'in the meantime' solution that might suit some people. I haven't worked out all the kinks yet, but it does work.
You might have heard of Genymotion, well it's not that. Genymotion who produce Genymotion do a range of applications for android and one of them is called scrcpy.
If you look up 'genymotion scrcpy' the github link should be the first result.
A lot of people seem to dismiss it as not worth even using, I have no idea why, it's very easy to setup and use. It comes up quite often in XDA as well.
You install it on your PC, connect your phone, and then a mirror of your phone comes up on your desktop. It appears to be fully functional, I downloaded a game of the sorts that I play, and it worked despite the rending issues. I've also played some video that I recorded, no issues at all playing that.
I do have some rendering issues but I'm pretty sure that's an individual thing, I use MXLinux, and I know I have a java issue (as in personal setup, not MXLinux), the errors that are displayed in the terminal as it was running all relate to java.
I am still working through all of the possible solutions with the 'video out' converters and adapters, hopefully before too long, I'll be able to actually show you a working example, as I know that there aren't any out there at present, or not that I've seen anyway. And seeing it working is completely different to someone just saying that they have it working in a comment, with no offer of proof that they have.
I use an app called "vysor" on all my android phones. All you need to do is just download the pc app and follow instructions. Basically you just plug your phone to pc like you will transfer data or charge it. And usb debugging must be enabled. When you enable usb debugging and connect your phone to pc, Vysor will install latest android app and that is all. Sounds will come from the phone so i suggest you use a pair of speakers or earphones.
gsser said:
I use an app called "vysor" on all my android phones. All you need to do is just download the pc app and follow instructions. Basically you just plug your phone to pc like you will transfer data or charge it. And usb debugging must be enabled. When you enable usb debugging and connect your phone to pc, Vysor will install latest android app and that is all. Sounds will come from the phone so i suggest you use a pair of speakers or earphones.
Click to expand...
Click to collapse
That's the same as MirrorLink used by cheap anything Java that advertises screen mirroring. Used it on a low end Linux machine via browser, lag and distortion, worse than screencast for me
Edit: the native Linux appimage worked well enough,but is limited to 1 Mbps and the full version is rather pricey 40USD. I'm the end,you still need a machine running, not just a single cable solution. Might be worth it for some, maybe try a month first to see how well it works for you
And vysor does not have input options from the machine to android, (MirrorLink does I think) so you'll need extra BT peripherals for input.
edit2: have to enable USB input emulation in Dev settings for KB/M to work. And a free alternative exists, its called "scrcpy", with identical functionality, no need for App on android. Vysor is just an overpriced GUI for a free app imho, probably targeted at Apple users
What about a USB to VGA cable? Will it work?
Guys, bad news?
This is not yet supported on Poco X3. But there was a problem when I updated the software on this device. My X3 immediately went dark after that, I was quite alarmed because this is my new phone when I won the competition to play stickman fighter with my friends. What should I do now?

Huawei P30 Pro no longer USB Synching

I had my phone, a "Huawei P30 Pro" for about 9 months then at the beginning of the first lockdown (March 2020) I was called to Italy.
After a few days there I started to notice that I was having problems connecting my phone with my PC's & Mac's using Hisuite?
I tried revoking HDB Debugging mode, then re-enabling it, I went through all the recommendations that I found online but nothing worked.
I also uninstalled and reinstalled Hisuite, I reset all settings, I then wiped my phone completely and tried to reinstall it as a new phone hoping that would work,,,,it didn't.
Around about that time I bought a drone to do some ariel photography, I could never get the P30 Pro to recognize the drone it just kept saying that couldn't find/connect to the device, so I tried my partners P20 Pro which connected via the same USB cables I had been trying previously and they worked fine it also worked flawlessly with the drone?
I even went out of my way and bought a 'Huawei P smart Z' to test with and sure enough, it connected and worked perfectly with the drone and USB connection?
Now, even though I had called Huawei support on a few occasions within the warranty period they are now saying that it's out of time and there is nothing they can do.
I called them when I was in Italy during the lockdown where I was there for 9 months looking after my parents.
My thoughts are that it must be the synch port and perhaps tied into something on the logic board as it is not just USB synching but also when connecting 'Bluetooth?' to the drone which is strange as it connects to other Bluetooth devices, my watch, printer, TV, BPM, etc..
I love this phone especially the camera/video side to it but now I can no longer get my work off unless I send it to myself which is really cumbersome when you have 2-3 hours worth of 4K video recordings, which I do often.
The other thing is I really want to use this with my drone but how the heck can I get it to see the device and again I have tried just about everything and used other phones from other manufactures as well as Huawei and all connect/work fine with the drone and USB syncing.
I myself am a bit of a technical sleuth but this one has me hammered.
Is there anyone out there who can perhaps shed some light?
(I am looking for 3 questions answering here.)
1.what is the probable fault?
2.what is the repair solution?
3. how much could it cost?
Thank you
I will also try posting this request out on a few other boards and see what comes back.
i have the same problem

2022 WORKAROUND - PARSEC ON TABLETS - PLAY ANY PC GAME ON ANY TABLET WIRED/WIRELESS

2022 WORKAROUND TO PARSEC ON TABLETS
This guide is intended for anyone who is trying to get Parsec running on an Android or even Apple tablets. It would also apply to anyone really wanting to play ANY PC game on ANY tablet.
Disclaimer:
This IS a workaround and NOT a way to FIX the issues with Parsec Android.
If you are interested in how my Parsec Android testing went, and if your really want to give it a try see Parsec below for my suggestions.
Otherwise if you just want to skip to the good stuff head down to WORKAROUND
PARSEC ANDROID
Parsec Android is in the EXPERIMENTAL phase, and even after testing on multiple versions and variations of devices I could not get the decoding to work. Regardless of H.264 vs H.265, Frame Rate, Resolution, Overlay, or any other setting for that matter. I have seen that some capable people are playing around with settings in the actual configuration file, and I am sure SOME people have gotten it to work but I don’t not see it as a viable option as this point in time. More development is needed, and I am a WARP supporter of Parsec myself.
If you DO want to give it a try, I have personally found that the Android APK version V3.150.046.00 seemed to be the closest to working for me across all versions. (You can find it online from APK resources) Coincidentally I noticed that this version of the APK has a lot of options that FUTURE versions remove. Not sure why they decided to remove thinks like the H.265 vs H.264, probably because compatibility wise it was better to just force H.264 and remove the option. Not sure just guessing. I did not have a lot of luck with the current V3.150.078.00 version. Which was a little disappointing but hopefully they are working on it. Even the App resolution is worse, the login screen from .046.00 version looked amazing, now its looks very pixelated like they dropped the main menu resolution.
WORKAROUND
What you need:
A windows based Parsec Host Machine
A windows based Parsec Client Machine
An Android tablet within the last decade, or an Apple Ipad of any generation
A Bluetooth controller of some sort
Bluetooth Headset of some sort
A Bluetooth 5.0 receiver (Sorry Bluetooth 5.0 is leaps and bounds better, get a 5.0 dongle)
Basic Theory:
Parsec Windows works better than any version of Parsec, so we need to ensure that both the HOST and client machines are Windows based. Preferable Windows 10 as this is what used. The client machine does not have to be very powerful, a cheap laptop is a good option, the reason is we are going to be setting this to the resolution of our tablet. Which is most cases is relative low.
After you have your client and hosts setup the next step is the workaround part. As we have said Parsec android is still far from a stable version, so we need to find a way to work around it for now while still using the Parsec software.
Now you have two options here. I would suggest you use both option depending on the game you are playing. Regardless install the following programs to your CLIENT MACHINE as well as your TABLET/IPAD.
Software to Install;
Spacedesk (www.spacedesk.net)
Splashtop Wired XDisplay (https://www.splashtop.com/en-ca/wiredxdisplay)
Once both of those are installed on your CLIENT PC and your TABLET/IPAD. Do the following;
For Splashtop Wired XDisplay you need to turn on USB debugging mode. Google this for your specific device, very easy to do.
For Spacedesk you need to open the application on your CLIENT and read the IP address of this machine (It will be listed on the main page), then on your tablet enter this IP address in the APP to create the wireless connection between your tablet and your Client PC.
Now that both of these tools are configured here is the fun part;
Using Splashtop Wired XDisplay (Wired, HIGHEST RESOLUTION, ZERO LAG)
If you are playing games where FPS and LAG are very important, IE when I play warzone for example. Use Splashtop Wired XDisplay from your client machine to the tablet.
This will basically let you use the tablet as the PRIMARY MONITOR (Make sure to set this in windows display “Only on display 2”) for your client windows machine.
I realize that you could just use the laptop as a the client and not need the tablet, but personally speaking Id rather have a laptop under my couch and just connect a cable with the tablet on my lap then use the laptop itself. In my case my client is a very small M73 Tiny so it basically gives me a display that is just as compact.
…Not the point as we are about to get to the wireless part that you all really care about.
Using Spacedesk (Wireless, Decent resolution, Minor LAG)
I have used spacedesk to play games like CSgo and Warzone but there is a bit of lag, I would say its playable in my opinion as the lag isn’t brutally bad or anything. For basically NON-FPS games I have no issue with the amount of lag here, I play a lot of RPG games in this mode and have no issues.
Start the Spacedesk Host program on your Client PC.
Open the Android APP and connect to the Client PC that we setup earlier when we put in its IP address.
You should now see your full desktop of your client PC, and be able to click Parsec and load into your HOST PC as normal. Except you now have the video feed directly to the tablet by Spacedesk.
Caviate:
To get this to work well you NEED a Bluetooth 5.0 received on the Client PC. I have a 5.0 bluetooth dongle I got off Amazon in my M73T. You setup your controller AND your audio through the client PC directly to your Bluetooth device. So you do not have any addition input lag then you work using parsec on the client pc directly, same with audio.
This means that the only thing the Spacedesk app is taking care of the is the video signal to the device, all the input and audio is direct from the client PC instead of through the tablet.
It just means you need to have the client PC you use (Just buy a cheap laptop and keep it closed at all times, basically using it as a server for Parsec) Both of these tools can be initiated from power on so you don’t actually need any screen. Like in my case I have the M73T Tiny that I can carry around as it is the size of a book, full 64bit windows 10 capable. I just power it on wherever I want to play and walk away from it, the tablet automatically grabs the video feed and gives me the login screen.
I recognize this is not an idea solution, as the ideal solution would be a stable Parsec Android app, but who knows when that will be. So for the time being THIS does work for playing Games Wirelessly as long as you have a spare laptop, or willing to invest very little money.
My M73T Tiny was $80, and it came with a 1TB drive. So basically free lol. They are everywhere, highly recommended as a client machine. Even on my full size 55” TV I stream 1440P through parsec and its flawless.
Example of me running warzone wirelessly.
https://drive.google.com/file/d/1238JsH1vzgoMqtKXJzllPjKgCEqHy5DB/view?usp=sharing
with a wired Splashtop connection the quality is unreal. Try it.
Cheers,
Sniper Fox 22
Forgot to mention. Set your Parsec HOST resolution to that of your tablet. Set your client pc resolution to that of your tablet (most times this happens automatically when you connect to the apps on tablet) it helps that a tablets resolution is lower than most pcs as parsec will run smoother at lower resolutions. At this low a resolution switch from low latency to best quality on your HOST computer as well.

Question Desktop mode substitute help.

So how to begin. I've had the 10 pro for like 6 months and it's been good to me. I bought it primarely because I like taking photos, on the macro side, emulators (ps2 especially) and 5g support. I could've gotten the new Samsung, but I'm European, and I won't support exinos.
Recently my PC died and I want to play some xcloud game with minimal latency on my tv which means wired everything but the 10 pro doesn't really have a wired desktop mode (and I'm on oxygen os 13 stable) taskbar has been proven very difficult, any adb command I run that taskbar tells me to, doesn't work at all, so if it by chance runs, the resolution is just... not there. I could use a 4k resolution if possible. Can anyone properly guide me through all the steps to custom resolution and taskbar actually working? Tried second screen btw and although it's commands seem to be accepted by the adb thingies, it does nothing. I'm helpless :c

Categories

Resources