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. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Did you trying using ffmpegcolorspace between capsfilter and ffenc_mjpeg ? Because it may be possible that videoscale is giving yuv data in certain format which it thinks faster to generate but ffenc_mjpeg does not support that format.
On Mon, Nov 22, 2010 at 2:36 PM, Dave Johnston <[hidden email]> wrote:
-- Regards, Sudarshan Bisht ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |