x264enc appears to not set byte-stream correctly
Andres Gonzalez
andres.agoralabs at gmail.com
Thu Aug 4 17:03:29 UTC 2016
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.
More information about the gstreamer-devel
mailing list