Rpi: v4l2src + omxh264enc + tcpserversink
nicolas.dufresne at collabora.com
Wed Jun 3 11:08:16 PDT 2015
Le Wednesday 03 June 2015 à 18:25 +0300, Krutskikh Ivan a écrit :
> gst-launch-1.0 v4l2src device=/dev/video0 ! videoscale ! videoconvert
> ! videorate ! omxh264enc target-bitrate=1000000 control-rate=1 !
> “video/x-h264,profile=high" ! h264parse ! mpegtsmux ! tcpserversink
> host=0.0.0.0 port=5000
The problem is most likely that v4l2src does not allocate enough buffer
for the encoder. I'm not sure which version of GStreamer this is, hence
not able to give better advices. In 1.4, v4l2src should be copying out
buffers as soon as the local queue is near empty. Then on 1.5+ it will
try and be a little smarter. On 1.2, it would most likely just stall.
One generic change you could do is to try and select a lower profile
(like constrained-baseline), this will disable b-frames, hence reduce
the number of buffer required. It will also reduce your latency.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 181 bytes
Desc: This is a digitally signed message part
More information about the gstreamer-devel