Negotiation failed ( h264parse -> avidemux )

Tim-Philipp Müller t.i.m at zen.co.uk
Tue Mar 5 03:55:21 PST 2013


On Tue, 2013-03-05 at 12:40 +0100, Kishore Arepalli wrote:

> The below pipeline fails to go to pause because of negotiation problem
> between h264parse and avimux.
> 
> 
> gst-launch-1.0 avimux name=mux ! filesink location=test.avi filesrc
> location=test.ts ! tsdemux ! queue ! h264parse ! mux.video_0 -v 
> 
> 
> h264parse0.GstPad:sink: caps = video/x-h264,
> stream-format=(string)byte-stream, alignment=(string)nal
> 
> 
> h264parse0.GstPad:src: caps = video/x-h264,
> stream-format=(string)byte-stream, alignment=(string)au
> 
> 
> avimux video pad caps =       
> 
> 
> video/x-h264
>           stream-format: byte-stream
>               alignment: au
>                   width: [ 16, 4096 ]
>                  height: [ 16, 4096 ]
>               framerate: [ 0/1, 2147483647/1 ]
> 
> 
> Please find the attached log file.
> 
> 
> Is it a bug? or any solution to mux h264 content to avifile?

It looks like a bug. The reason is probably that h264parse's output caps
don't contain width/height/framerate, which avimux requires. h264parse
should wait for an input SPS/PPS before outputting anything or setting
caps. I thought it did that these days (there was a bug feeding
byte-stream data via h264parse into qtmux), but perhaps not in this code
path.

Cheers
 -Tim




More information about the gstreamer-devel mailing list