Issue with openh264enc

Sebastian Dröge sebastian at centricular.com
Tue Sep 20 14:32:18 UTC 2016


On Di, 2016-09-20 at 16:22 +0200, Andoni Galdos wrote:
> 
> [...]
> Sender pipeline with x264enc:
> 
>     gst-launch-1.0 -e videotestsrc horizontal-speed=5 ! x264enc !
> tcpclientsink port=5555 host=52.29.128.23
> 
> Sender pipeline with openh264enc:
> 
>     gst-launch-1.0 -e videotestsrc horizontal-speed=5 ! openh264enc !
> tcpclientsink port=5555 host=52.29.128.23
> 
> 
> 
> Why is this happening? how can I solve it?

openh264enc (in 1.8 and before) creates h264 in the AVC stream-format,
which is not streamable without a container. You have to add a
h264parse element after the encoder, and then force it to byte-stream,
e.g.

... ! openh264enc ! h264parse ! video/x-h264,stream-format=byte-stream ! ...

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 967 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160920/3c83e31f/attachment-0001.sig>


More information about the gstreamer-devel mailing list