I'm trying to debug a problem that is causing video corruption when streaming the Pi's video over the network. Recording locally works fine, I only see video corruption when streaming, so it looks like a problem with the NIC either dropping packets or taking too long to send them.
I am using this command to send the stream over the network:
Code: Select all
v4l2-ctl -v width=1296,height=972,pixelformat=H264 \
--set-ctrl=exposure_dynamic_framerate=1 \
--set-ctrl=video_bitrate=3000000 \
--set-ctrl=scene_mode=8
ffmpeg -f h264 -probesize 32 -r 30 -i /dev/video0 -vcodec copy -an -f rtp_mpegts udp://224.0.1.2:5004 -loglevel fatal
Code: Select all
ffplay -sync ext -an -fast -framedrop -probesize 32 udp://224.0.1.2:5004
Has anyone else seen this type of behaviour? Is there anything I can do to tweak the B+ NIC or USB configuration that might result in fewer dropped packets?
I'm seeing this same issue on both the build in Ethernet and a USB wifi stick, so it's possible it's more a USB problem rather than Ethernet.
Any suggestions on where I can find details about what options there are as far as tweaking the USB/Ethernet controller?
Many thanks!
