[gst-devel] no caps set on stream - how to set them?

sudarshan bisht bisht.sudarshan at gmail.com
Mon Nov 22 20:20:00 CET 2010


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 <dave.johnston at me.com> wrote:

> 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
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>


-- 
Regards,

Sudarshan Bisht
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20101122/a485bc2f/attachment.htm>


More information about the gstreamer-devel mailing list