[gst-devel] Bugs in ffenc_*/ffdec_*?

Felipe Contreras felipe.contreras at gmail.com
Tue Aug 15 17:47:44 CEST 2006


On 8/14/06, Edward Hervey <bilboed at gmail.com> wrote:
> Hi,
>
> On 8/14/06, Deeptendu Bikash <dbikash at gmail.com> wrote:
> > Hi,
> >
> >  Are there known bugs with ffenc/ffdec pair? If I encode a file with a ffenc
> > of a particular codec, then I should be able to decode the file using ffdec
> > of the same codec, right?
> >
> >  I tried with h263 and mpeg4, but got the same result:
> >
> >  gst-launch  videotestsrc ! ffenc_mpeg4 ! filesink location=videotestsrc.m4v
> >  gst-launch filesrc location=videotestsrc.m4v ! caps="video/mpeg,
> > width=(int)320, height=(int)240, framerate=(fraction)30/1,
> > mpegversion=(int)4, systemstream=(boolean)false" ffdec_mpeg4 !
> > ffmpegcolorspace ! xvimagesink
>
>   Saving compressed video in a file will never be playable, except for
> some specific formats that create buffers with headers that can be
> parsed outside of a container. You need to put it in a container
> format, like avi, mov or ogg. Try using avimux/avidemux.

That's not quite right. Try this:

gst-launch filesrc location=videotestsrc.m4v !
video/mpeg,width=320,height=240,framerate=30/1,mpegversion=4,systemstream=\(boolean\)false
! ffdec_mpeg4 ! ffmpegcolorspace ! xvimagesink

-- 
Felipe Contreras




More information about the gstreamer-devel mailing list