<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&#39;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">&lt;<a href="mailto:wim.taymans@gmail.com">wim.taymans@gmail.com</a>&gt;</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>
&gt; Hi,<br>
&gt; i was testing basic encode and decode chains.<br>
&gt;<br>
&gt; gst-launch videotestsrc ! ffmpegcolorspace ! theoraenc ! filesink<br>
&gt; location=/test_theoraenc.bin<br>
<br>
&gt; this created a file. &nbsp;then i tried<br>
&gt;<br>
&gt; gst-launch filesrc location=/test_theoraenc.bin ! theoradec !<br>
&gt; ffmpegcolorspace ! xvimagesink<br>
&gt;<br>
&gt; but this gave me following error:<br>
&gt; --------------------------------------------------------------------------------------------------<br>
&gt; ERROR: from element /pipeline0/theoradec0: Could not decode stream.<br>
&gt; Additional debug info:<br>
&gt; theoradec.c(1166): theora_handle_data_packet<br>
&gt; (): /pipeline0/theoradec0:<br>
&gt; no header sent yet<br>
&gt; --------------------------------------------------------------------------------------------------<br>
&gt;<br>
&gt; 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">&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Sachin<br>
&gt;<br>
&gt; -------------------------------------------------------------------------<br>
&gt; This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>
&gt; Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>
&gt; Grand prize is a trip for two to an Open Source event anywhere in the world<br>
&gt; <a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>
&gt; _______________________________________________ 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&#39;s challenge<br>
Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;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>