problem with play mp4(H264) with appsrc

Ugly Face xuchangxue365812 at 126.com
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,
    			NULL);

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 <http://gstreamer-devel.966125.n4.nabble.com/file/n4665558/test.c>  

thanks in advance. Gorge Y.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/problem-with-play-mp4-H264-with-appsrc-tp4665558.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list