[gst-devel] Simulating a video camera with a file
katarina.balac at usi.ch
katarina.balac at usi.ch
Fri Feb 12 00:51:55 CET 2010
Great! Thank you so much Stefan and Tristan!
Katarina
> 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
> >
More information about the gstreamer-devel
mailing list