<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hello,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I'm using a MacPorts build of ffmpeg 2.0.2. It passes most of our tests, except the one using the FFV1 codec. This seems independent of the file format chosen.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">How to reproduce the problem:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div>
<div style="font-family:arial,sans-serif;font-size:13px">1) Download the muxing example from the ffmpeg doxygen documentation (<a href="http://ffmpeg.org/doxygen/2.0/doc_2examples_2muxing_8c-example.html" target="_blank">http://ffmpeg.org/doxygen/2.0/doc_2examples_2muxing_8c-example.html</a>)</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">2) By the end of the application, replace the code:</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><span style="font-family:arial,sans-serif;font-size:13px">if (fmt->video_codec != AV_CODEC_ID_NONE) {</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">video_st = add_stream(oc, &video_codec, fmt->video_codec);</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">}</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">With:</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">video_st = add_stream(oc, &video_codec, AV_CODEC_ID_FFV1)</div><div style="font-family:arial,sans-serif;font-size:13px"><font face="arial, sans-serif"><br>
</font></div><div style="font-family:arial,sans-serif;font-size:13px"><font face="arial, sans-serif">So, that the FFV1 codec is forced.</font></div><div style="font-family:arial,sans-serif;font-size:13px"><font face="arial, sans-serif"><br>
</font></div><div style="font-family:arial,sans-serif;font-size:13px"><font face="arial, sans-serif">3) Compile the program (on OSX, that would be):</font></div><div style="font-family:arial,sans-serif;font-size:13px"><font face="arial, sans-serif"><br>
</font></div><div style="font-family:arial,sans-serif;font-size:13px">clang -I/opt/local/include test.c -L/opt/local/lib -lavutil -lavcodec -lavformat -lswscale -lswresample -o ffmpeg_test</div><div style="font-family:arial,sans-serif;font-size:13px">
<font face="arial, sans-serif"><br></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font face="arial, sans-serif">4) Run the program:</font></div><div style="font-family:arial,sans-serif;font-size:13px">
<font face="arial, sans-serif"><br></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font face="arial, sans-serif">./ffmpeg_test foo.avi</font></div><div style="font-family:arial,sans-serif;font-size:13px">
<font face="arial, sans-serif"><br></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font face="arial, sans-serif">to get:</font></div><div style="font-family:arial,sans-serif;font-size:13px"><font face="arial, sans-serif"><br>
</font></div><div style="font-family:arial,sans-serif;font-size:13px">[libmp3lame @ 0x7fa7d201f200] Channel layout not specified<br> Output #0, avi, to 'test.avi':<br>     Stream #0:0: Video: ffv1, yuv420p, 352x288, q=2-31, 400 kb/s, 90k tbn,<br>
 25 tbc<br>     Stream #0:1: Audio: mp3 (libmp3lame), 44100 Hz, 2 channels, fltp, 64<br> kb/s<br> Error encoding video frame: Invalid argument<font face="arial, sans-serif"><br></font></div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">Result: Bogus file, with error</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
Expected result: clean file with no errors.</div><div style="font-family:arial,sans-serif;font-size:13px"><font face="arial, sans-serif"><br></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font face="arial, sans-serif">Can anyone confirm this or provide some light on what I could possibly be doing wrong? A developer from MacPorts has confirmed the problem - it does not happen on 1.2.x. It does happen with 2.0.1 and 2.0.2 (<a href="https://trac.macports.org/ticket/40829" target="_blank">https://trac.macports.org/ticket/40829</a>).</font></div>
<div style="font-family:arial,sans-serif;font-size:13px"><font face="arial, sans-serif"><br></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font face="arial, sans-serif">Thanks in advance, A</font></div>
<br clear="all"><div><br></div>-- <br>André Anjos<br><a href="http://andreanjos.org" target="_blank">http://andreanjos.org</a>
</div>