[gst-devel] encode / decode chain didn't work
Sachin Pandhare
sachinpandhare at gmail.com
Tue Sep 2 07:00:19 CEST 2008
Thanks Wim for this information, it works fine :)
Sudarshan, I was able to encode the data in the file with the command that i
used and terminate it with Ctrl+C. but as i was missing the container it
didn't decode data correctly.
On Mon, Sep 1, 2008 at 6:29 PM, Wim Taymans <wim.taymans at gmail.com> wrote:
> On Mon, 2008-09-01 at 18:11 +0530, Sachin Pandhare wrote:
> > Hi,
> > i was testing basic encode and decode chains.
> >
> > gst-launch videotestsrc ! ffmpegcolorspace ! theoraenc ! filesink
> > location=/test_theoraenc.bin
>
> > this created a file. then i tried
> >
> > gst-launch filesrc location=/test_theoraenc.bin ! theoradec !
> > ffmpegcolorspace ! xvimagesink
> >
> > but this gave me following error:
> >
> --------------------------------------------------------------------------------------------------
> > ERROR: from element /pipeline0/theoradec0: Could not decode stream.
> > Additional debug info:
> > theoradec.c(1166): theora_handle_data_packet
> > (): /pipeline0/theoradec0:
> > no header sent yet
> >
> --------------------------------------------------------------------------------------------------
> >
> > was there any mistake in my commands?
>
> yes, theora is a format that should be encapsulated into a container
> such as ogg, like this:
>
> gst-launch videotestsrc ! ffmpegcolorspace ! theoraenc ! oggmux !
> filesink location=/test_theoraenc.ogg
>
> and to play it back:
>
> gst-launch filesrc location=/test_theoraenc.ogg ! oggdemux ! theoradec !
> ffmpegcolorspace ! xvimagesink
>
> The reason is that theora relies on the container format to feed it
> exactly one encoded frame, there are no fame markers in the raw theora
> bitstream otherwise.
>
> Wim
> >
> >
> > Thanks,
> > Sachin
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________ gstreamer-devel mailing
> list gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20080902/bed87a41/attachment.htm>
More information about the gstreamer-devel
mailing list