Hi,<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">I wanted to ask if any encoder / decoder is implemented for CODEC_ID_TEXT in ffmpeg 0.7.1.<br>
I always get an error when I try to do avcodec_find_encoder(CODEC_ID_TEXT).
In one forum I found the statement that this codec is not implemented
for version 0.5. Now I'm not sure if my code is not correct or if the
codec is still not implemented.<br></blockquote>as I understand CODEC_ID_TEXT is just a plain text and doesn't require decoder (and probably encoder) at all<br><br>So 'decoding' will looked like this:<br><br>
<span style="font-family: courier new,monospace;">void decode(const AVStream* theStream,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> const AVPacket* thePacket) {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> const char* aText = (const char* )thePacket->data;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> double aPts = av_q2d(theStream->time_base) * thePacket->pts;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> double aDuration = av_q2d(theStream->time_base) * thePacket->convergence_duration;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">}</span><br>
<br><div class="gmail_quote">On Thu, Aug 4, 2011 at 11:50 AM, Sabine B <span dir="ltr"><<a href="mailto:sabine565@gmail.com">sabine565@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi!<br><br>I try to include a data stream into mpeg (ts).<br>I wanted to ask if any encoder / decoder is implemented for CODEC_ID_TEXT in ffmpeg 0.7.1.<br>I always get an error when I try to do avcodec_find_encoder(CODEC_ID_TEXT). In one forum I found the statement that this codec is not implemented for version 0.5. Now I'm not sure if my code is not correct or if the codec is still not implemented.<br>
<br>Thanks for your help!<br><br>Br,<br><font color="#888888">Sabine<br>
</font><br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><span style="color:rgb(192, 192, 192)">-----------------------------------------------</span><br style="color:rgb(192, 192, 192)"><span style="color:rgb(192, 192, 192)">Kirill Gavrilov,</span><br style="color:rgb(192, 192, 192)">
<span style="color:rgb(192, 192, 192)">Software designer.</span><br><a href="mailto:kirill@sview.ru" target="_blank"></a><br>