Hello.
I've been trying forever to get FFmpeg to stream to a single Pi, but no matter what I do I can't get it working. The best thing I can manage is getting the Pi to print out the stream information (nb_streams, video_streams, format_name, blah blah) and it seems like it's reading the stream correctly, but it instantly just drops it and prints "have a nice day ;)". And believe it or not, but after doing this for hours and hours I'm not having a nice day at all. I am using the broadcast address for now just to get it working on my local network, and like I said the Pi IS detecting the stream.
What I'm trying to do is to stream my Windows computer's desktop to my Pi(s) using FFmpeg. Having no experience with FFmpeg, the learning curve is steep to say the least. I've managed to come up with the following command, frankensteined together from different internet resources:
ffmpeg -f gdigrab -show_region 1 -video_size 960x540 -framerate 24 -i desktop -f avi -an udp://
192.168.1.255:1234
pwomxplayer instantly detects it, prints the stream info (format_name = avi) and equally instantly dies in the burning glory of "have a nice day ;)". I also tried h264 instead with this command:
ffmpeg -f gdigrab -show_region 1 -video_size 960x540 -framerate 60 -i desktop -f h264 -preset ultrafast udp://
192.168.1.255:1234
This one takes pwomxplayer ~5 seconds to detect, but the result is the same as for avi. In a freak accident it actually went fullscreen once, showing a still picture of beautiful abstract art of random colors until I killed it with Ctrl-C. Hasn't happened since.
Can someone please help me find a working FFmpeg command? I just need ANYTHING so that I can get something on the screen, and I can probably work from there. It's just so frustrating getting the same non-error thrown in my face every single time and it still not working.
Thanks for your time!