problem with play mp4(H264) with appsrc

Ugly Face xuchangxue365812 at
Thu Feb 27 00:43:34 PST 2014

sorry to bother you again, but I really feel desperated.
My goal is to play a mp4 file with pipeline like this:(I can not replace
appsrc with filesrc for some other reasons)

appsrc ! h264parse ! queue ! ffdec_h264 ! xvimagesink 

I configure appsrc with caps like this:
caps = gst_caps_new_simple ("video/x-h264",
    			"framerate", GST_TYPE_FRACTION, 30, 1,
    			"stream-format", G_TYPE_STRING, "avc",
    			"alignment", G_TYPE_STRING, "nal",
    			"width", G_TYPE_INT, 1920,
    			"height", G_TYPE_INT, 1080,

I get NALUs from mp4 file(recorded by android device). And I push each of
them to appsrc . and get warning below with no play window coming up.

starting pipeline
0:00:00.036061203 10406      0x175c560 WARN                     bin
gstbin.c:2399:gst_bin_do_latency_func:<pipeline0> failed to query latency
Start feeding
Stop feeding
Start feeding

My c file is this:
test.c <>  

thanks in advance. Gorge Y.

View this message in context:
Sent from the GStreamer-devel mailing list archive at

More information about the gstreamer-devel mailing list