<div dir="ltr">Thanks Wim for this information, it works fine :)<br><br>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.<br>
<br><br><div class="gmail_quote">On Mon, Sep 1, 2008 at 6:29 PM, Wim Taymans <span dir="ltr"><<a href="mailto:wim.taymans@gmail.com">wim.taymans@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Mon, 2008-09-01 at 18:11 +0530, Sachin Pandhare wrote:<br>
> Hi,<br>
> i was testing basic encode and decode chains.<br>
><br>
> gst-launch videotestsrc ! ffmpegcolorspace ! theoraenc ! filesink<br>
> location=/test_theoraenc.bin<br>
<br>
> this created a file. then i tried<br>
><br>
> gst-launch filesrc location=/test_theoraenc.bin ! theoradec !<br>
> ffmpegcolorspace ! xvimagesink<br>
><br>
> but this gave me following error:<br>
> --------------------------------------------------------------------------------------------------<br>
> ERROR: from element /pipeline0/theoradec0: Could not decode stream.<br>
> Additional debug info:<br>
> theoradec.c(1166): theora_handle_data_packet<br>
> (): /pipeline0/theoradec0:<br>
> no header sent yet<br>
> --------------------------------------------------------------------------------------------------<br>
><br>
> was there any mistake in my commands?<br>
<br>
</div></div>yes, theora is a format that should be encapsulated into a container<br>
such as ogg, like this:<br>
<br>
gst-launch videotestsrc ! ffmpegcolorspace ! theoraenc ! oggmux !<br>
filesink location=/test_theoraenc.ogg<br>
<br>
and to play it back:<br>
<br>
gst-launch filesrc location=/test_theoraenc.ogg ! oggdemux ! theoradec !<br>
ffmpegcolorspace ! xvimagesink<br>
<br>
The reason is that theora relies on the container format to feed it<br>
exactly one encoded frame, there are no fame markers in the raw theora<br>
bitstream otherwise.<br>
<font color="#888888"><br>
Wim<br>
</font><div><div></div><div class="Wj3C7c">><br>
><br>
> Thanks,<br>
> Sachin<br>
><br>
> -------------------------------------------------------------------------<br>
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
> Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
> Grand prize is a trip for two to an Open Source event anywhere in the world<br>
> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
> _______________________________________________ gstreamer-devel mailing list <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div>