<div dir="ltr"><div class="gmail_default" style="font-size:small">The file must be somewhat valid as it can be played by many android devices and Windows Media Player.</div><div class="gmail_default" style="font-size:small">Is it possible to inform avformat_open_input() about the header size?</div><div class="gmail_default" style="font-size:small">How should I set the probe size?  Should I set this to the total file size or to the 20-byte minimum header of the WAV format?</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><span style="font-family:arial,helvetica,sans-serif;font-size:12.8px"><br></span></div><div><span style="font-family:arial,helvetica,sans-serif;font-size:12.8px">Jeff Archer</span><br style="font-family:arial,helvetica,sans-serif;font-size:12.8px"><a href="mailto:jarcher7@yahoo.com" style="font-family:arial,helvetica,sans-serif;font-size:12.8px" target="_blank">jeffarcher7@gmail.com</a><br style="font-family:arial,helvetica,sans-serif;font-size:12.8px"><font face="arial, helvetica, sans-serif"><br></font></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Jan 23, 2017 at 2:10 PM, Anton Shekhovtsov <span dir="ltr"><<a href="mailto:shekh.anton@gmail.com" target="_blank">shekh.anton@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi, it seems you have an invalid file<br></div>The simplest WAV that can be opened with ffmpeg consists of the following:<br></div>20-byte header ('WAVEfmt'...)<br></div>WAVEFORMAT compatible format descriptor<br></div>8-byte empty data block ('data'...)<br><br></div>or maybe you just need to increase probe size<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2017-01-23 20:50 GMT+02:00 Jeff Archer <span dir="ltr"><<a href="mailto:jeffarcher7@gmail.com" target="_blank">jeffarcher7@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hello all,<br></div><div class="gmail_default" style="font-size:small">I am attempting to use FFmpeg from JNI code of my Android app.</div><div class="gmail_default" style="font-size:small">I have what I thought are .WAV files but now not so certain.  On many(most) Android devices the code extracts this data and writes it to a file and then gives that file to the Android MediaPlayer to play.  On some devices I get the exception java.io.IOException: setDataSourceFD failed.: status=0x80000000.  I believe these devices do not have an appropriate codec. So, I wish to use FFmpeg API to convert the file to .mp3 or other format that can work on all devices. These files can be supplied by end user so cannot simply convert files ahead of time.  End user will of course expect to be able to use any file that can be played on other device or Windows.  Thus, I need to use FFmpeg APi to convert file just before playing.  </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">What is happening is that during the call to avformat_open_input() the following messages are coming through av_log_callback()</div><div class="gmail_default">av_log: Format wav probed with size=2048 and score=99</div><div class="gmail_default">av_log: no 'data' tag found</div><div class="gmail_default">av_log: Statistics: 3732 bytes read, 0 seeks</div><div class="gmail_default">And avformat_open_input() is returning: -1094995529[0xBEBBB1B7]</div><div class="gmail_default">Which yields the following from av_strerror(): Invalid data found when processing input<br></div><div class="gmail_default"><br></div><div class="gmail_default">It seems like I may be missing some required step or flag or something...</div><div class="gmail_default"><br></div><div class="gmail_default" style="font-size:small">Any help or suggestion is most appreciated. </div><span class="m_7158282288420335951HOEnZb"><font color="#888888"><div><div class="m_7158282288420335951m_8138122902478592058gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><span style="font-family:arial,helvetica,sans-serif;font-size:12.8px"><br></span></div><div><span style="font-family:arial,helvetica,sans-serif;font-size:12.8px">Jeff Archer</span><br style="font-family:arial,helvetica,sans-serif;font-size:12.8px"><a href="mailto:jarcher7@yahoo.com" style="font-family:arial,helvetica,sans-serif;font-size:12.8px" target="_blank">jeffarcher7@gmail.com</a><br style="font-family:arial,helvetica,sans-serif;font-size:12.8px"><font face="arial, helvetica, sans-serif"><br></font></div></div></div></div></div></div></div></div>
</font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/list<wbr>info/libav-user</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/<wbr>listinfo/libav-user</a><br>
<br></blockquote></div><br></div>