[gst-devel] Simulating a video camera with a file

Tristan Matthews tristan at sat.qc.ca
Thu Feb 11 22:51:33 CET 2010


2010/2/11 Stefan Kost <ensonic at hora-obscura.de>

> katarina.balac at usi.ch wrote:
> > Hello,
> >
> > I am trying to read raw video data from a file and then encode it using
> theora encoder. I would like to use standard test videos such as these:
> > http://media.xiph.org/video/derf/  (uncompressed YUV4MPEG, says it is
> the format accepted by the Theora encoder tools)
> > http://trace.eas.asu.edu/yuv/
> >
> > I have tried with a pipeline like this: filesrc | ffmpegcolorspace |
> theoraenc | oggmux | filesink and the videos from the links above but I am
> getting the Error: not negotiated.
> >
>
> Use videoparse for raw files.
>
>
Great tip, I wish I'd known about that element before. Here's the working
launch line:

 gst-launch -v filesrc location=akiyo_qcif.yuv ! videoparse width=176
height=144 !  xvimagesink

You can also set the format property as needed (for other colorspaces).
-Tristan

Stefan
>
> > Everything works if I substitute the file source with the test source
> videotestsrc or a webcam v4l2src but this does not allow me to use standard
> test videos.
> > Is something missing in my pipeline or am I using the wrong format?
> > Any suggestions will be appreciated.
> >
> > Thank you in advance,
> > Katarina
> >
> >
> ------------------------------------------------------------------------------
> > The Planet: dedicated and managed hosting, cloud storage, colocation
> > Stay online with enterprise data centers and the best network in the
> business
> > Choose flexible plans and management services without long-term contracts
> > Personal 24x7 support from experience hosting pros just a phone call
> away.
> > http://p.sf.net/sfu/theplanet-com
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> >
>
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



-- 
Tristan Matthews
email: tristan at sat.qc.ca
web: http://tristanswork.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100211/d45da42a/attachment.htm>


More information about the gstreamer-devel mailing list