[gst-devel] Gnonlin question: extract audio+video clip

shuyufu shuyufu at gmail.com
Mon Nov 29 10:23:59 CET 2010


Hi,

Recently, I try to play two video files as one (technically, I concatenate
those files. Each file has different start, duration, media-start and
media-duration) using gnonlin.

I found an example file (attached 
http://gstreamer-devel.966125.n4.nabble.com/file/n3063249/gnonlin-test.c
gnonlin-test.c ) does exactly what I want and It works well. However, I got
an error when I play the files using gst-launch.

Here is my gst-launch command:
gst-launch gnlcomposition name=comp \( gnlfilesource name=src1
location=big_buck_bunny_480p_h264.mov start=0 duration=10000000000
media-start=0 media-duration=10000000000 gnlfilesource name=src2
location=big_buck_bunny_480p_h264.mov start=10000000000 duration=10000000000
media-start=30000000000 media-duration=10000000000 \) ! ffmpegcolorspace !
autovideosink

It complains that
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...

(gst-launch-0.10:31803): GStreamer-WARNING **: adding flushing pad 'ghost0'
to running element 'bin0', you need to use gst_pad_set_active(pad,TRUE)
before adding it.
ERROR: from element
/GstPipeline:pipeline0/GstBin:bin0/GnlFileSource:src1/GstURIDecodeBin:internal-uridecodebin/GstDecodeBin2:decodebin21/GstQTDemux:qtdemux1:
GStreamer encountered a general stream error.
Additional debug info:
qtdemux.c(2980): gst_qtdemux_loop ():
/GstPipeline:pipeline0/GstBin:bin0/GnlFileSource:src1/GstURIDecodeBin:internal-uridecodebin/GstDecodeBin2:decodebin21/GstQTDemux:qtdemux1:
streaming stopped, reason not-linked
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

I don't understand why gst-launch complains "not-linked"?

Am I mis-understanding the gst-launch syntax? or gst-launch just can't?

Thank you for your time.
-- 
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Gnonlin-question-extract-audio-video-clip-tp2305307p3063249.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list