Gstreamer with h264 annex b

Sebastian Dröge sebastian at centricular.com
Thu Mar 5 04:27:33 PST 2015


On Do, 2015-03-05 at 04:06 -0800, sivan wrote:
> Here is my command to gstreamer :
> 
> gst-launch-1.0 -v --gst-debug-level=3 v4l2src device=/dev/video0 !
> 'video/x-raw,width=640,height=480' ! x264enc byte-stream=true !
> video/x-h264,stream-format=byte-stream,alignment=au, profile=baseline !
> rtph264pay ! udpsink host=192.168.1.170 port=4320 sync=0
> 
> When I open it with wireshark, I see the format is different then annex b:
> 
> I don't see the 00 00 00 01 sequence that suppose to be in the beginning of
> each frame

Check the beginning of the dump here:
gst-launch-1.0 videotestsrc ! x264enc ! "video/x-h264,stream-format=byte-stream" ! fakesink dump=true num-buffers=3

It contains the 00 00 00 01 sequence at the beginning of each buffer.

If you put it into RTP, it will be in the RTP mapping which will not
have that sequence at the beginning of every RTP packet... and
rtph264depay can output stream-format=byte-stream or avc, where the
latter would also not have that sequence.

-- 
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: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150305/8ce677eb/attachment-0001.sig>


More information about the gstreamer-devel mailing list