x264enc appears to not set byte-stream correctly

Carlos Rafael Giani dv at pseudoterminal.org
Thu Aug 4 18:05:00 UTC 2016


Try the same trick with the capsfiler. Perhaps h264parse does not try to 
retain the same caps as much as possible, and just picks the first 
stream format that is available.


On 2016-08-04 19:03, Andres Gonzalez wrote:
> Carlos, thank you for your reply and suggestion...it worked....sort of....
>
> I added the capsfilters and indeed the src pad on x264enc is now correct:
>
> /GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:src: caps =
> "video/x-h264\,\ *stream-format\=\(string\)byte-stream*\,\
> alignment\=\(string\)au\,\ level\=\(string\)4\,\
> profile\=\(string\)high-4:2:2\,\ width\=\(int\)1920\,\
> height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\
> framerate\=\(fraction\)30/1"
>
> However, the next element in my pipeline is an h264parse, and it changes it
> back to avc:
>
> /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps =
> "video/x-h264\,\ *stream-format\=\(string\)byte-stream*\,\
> alignment\=\(string\)au\,\ level\=\(string\)4\,\
> profile\=\(string\)high-4:2:2\,\ width\=\(int\)1920\,\
> height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\
> framerate\=\(fraction\)30/1"
> /GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps =
> "video/x-h264\,\ *stream-format\=\(string\)avc*\,\
> alignment\=\(string\)au\,\ level\=\(string\)4\,\
> profile\=\(string\)high-4:2:2\,\ width\=\(int\)1920\,\
> height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\
> framerate\=\(fraction\)30/1\,\ parsed\=\(boolean\)true\,\
> codec_data\=\(buffer\)017a0028ffe1001b677a0028bcd940780227e270110000030001000003003c8f18319601000568ebecb22c"
>
> So it appears that the h264parse element has a mind of its own and for some
> reason wants/requires avc.
>
> I also tried adding an additional queue element before the h264parse element
> but it still changed back to avc.
>
> -Andres
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/x264enc-appears-to-not-set-byte-stream-correctly-tp4678963p4678966.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list