这有效:
gst-launch-0.10 \
videotestsrc ! ffmpegcolorspace ! 'video/x-raw-yuv' ! mux. \
audiotestsrc ! audioconvert ! 'audio/x-raw-int,rate=44100,channels=1' ! mux. \
avimux name=mux ! filesink location=gst.avi
我可以让它运行一段时间,杀死它,然后totem gst.avi
显示一张漂亮的带有音调的测试卡。
但是,尝试做一些更有用的事情,例如
gst-launch-0.10 \
filesrc location=MVI_2034.AVI ! decodebin name=dec \
dec. ! ffmpegcolorspace ! 'video/x-raw-yuv' ! mux. \
dec. ! audioconvert ! 'audio/x-raw-int,rate=44100,channels=1' ! mux. \
avimux name=mux ! filesink location=gst.avi
它只是显示
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
然后无限期停止。
使用 decodebin 滚动获取版本的诀窍是什么?