I’m trying to stream my webcam over UDP using FFmpeg and connecting to it from an iOS device using VLC.
This is what I currently have:
#!/usr/bin/env bash
ffmpeg -f v4l2
-input_format mjpeg
-framerate 60
-video_size 1920x1080
-i /dev/video0
-f mjpeg udp://client-ip:1234
I’m successfully connecting to it on my phone, but 90% of the stream is green. I’m assuming it has to do with corrupted data or encoding issues.
What do I need to change for it to work?
I don’t necessarily care about the protocol or which client I use; what I want is a decent-quality stream with low latency.