[gst-devel] no caps set on stream - how to set them?
Dave Johnston
dave.johnston at me.com
Mon Nov 22 15:36:18 CET 2010
Hi,
I'm have a few problems constructing a pipeline with gst-launch.
I initially created a pipeline that read from a custom src element (it reads data from a database) and then decoded and encoded the data before muxing it and writing to a file i.e.
gst-launch -evvv mycustomsrc ! jpegparse ! ffdec_mjpeg ! videorate ! ffenc_mjpeg ! ffmux_mp4 ! filesink location=/tmp/video_test.mp4
This pipeline works, MJPEG video is read from a database, parsed, decoded, re-encoded, muxed and written to a file. I can then playback video_test.mp4 using VLC.
My problem is when I try to modify the pipeline to scale the video i.e. add the videoscale element.
gst-launch -evvv mycustomsrc ! jpegparse ! ffdec_mjpeg ! videorate ! videoscale ! video/x-raw-yuv,width=320,height=240,framerate=5/1 ! ffenc_mjpeg ! ffmux_mp4 ! filesink location=/tmp/video_test.mp4
This piepline fails, I get the error:
0:00:00.057424331 30345 0x81a5a90 WARN basesrc gstbasesrc.c:2378:gst_base_src_loop:<mycustomsrc0> error: Internal data flow error.
0:00:00.057442875 30345 0x81a5a90 WARN basesrc gstbasesrc.c:2378:gst_base_src_loop:<mycustomsrc0> error: streaming task paused, reason not-negotiated (-4)
0:00:00.057499751 30345 0x81a5a90 WARN ffmpeg gstffmpegmux.c:467:gst_ffmpegmux_collected:<ffmux_mp40> error: no caps set on stream 0 (video)
ffmux_mp4 seems to indicate that no caps set on stream 0(video). How can I explicitly set caps for this ?
Any ideas are appreciated, thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20101122/fb95860b/attachment.htm>
More information about the gstreamer-devel
mailing list