<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/25 Alex Cohn <span dir="ltr"><<a href="mailto:alexcohn@netvision.net.il" target="_blank">alexcohn@netvision.net.il</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">On Tue, Jun 25, 2013 at 1:22 PM, Licheng Niu <<a href="mailto:niulicheng@gmail.com">niulicheng@gmail.com</a>> wrote:<br>
> I am not familiar with libstagefright in ffmpeg and I believe it works well<br>
> on most devices. But since libstagefright uses Openmax IL api, I guess there<br>
> would be some incompatible issues.<br>
> The most frequently happened problem is color format incompatible. However,<br>
> color format incompatible doesn't affect decoding.<br>
> Another problem for example: On TI Tegra II cpu, there is a special way to<br>
> use openmax api.<br>
<br>
</div>The advantage of stagefright is to provide a cros-device interface,<br>
and compensate for OpenMax IL incompatibilities. This said, there<br>
still may be hw-specific quirks, especially when using older devices.<br>
<br>
BR,<br>
Alex<br>
<div class=""><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra" style>I've just executed the ffmpeg app on Android and it raises a Segmentation Fault. The line I executed was:</div>
<div class="gmail_extra" style><br></div><div class="gmail_extra" style>./ffmpeg -i /sdcard/Download/video.mov -f image2 -vf fps=fps=1 /sdcard/Download/out%d.png<br></div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>
I attach the result of the execution, as you can see, no frame was decoded successfully. I also attach the backtrace given by logcat. The Android version is 4.2.2 (JDQ39) and the device is a LG Nexus 4.</div><div class="gmail_extra" style>
<br></div><div class="gmail_extra" style>As you can see, I had to enable the memalgin-hack to get the app built. I did it because without that flag, the file libavutil/mem.c didn't compile successfully, due to there is no posix_memalign function in Android. I don't know if this could be related with the crash, but it surprised me, because the FFmpeg configure file is able to detect the posix_memalign function and, therefore, it defines HAVE_POSIX_MEMALIGN 1.</div>
<div class="gmail_extra" style><br></div><div class="gmail_extra" style><br></div></div>