<p dir="ltr"><br>
On Oct 11, 2013 12:40 AM, "sirvo" <<a href="mailto:sylviojalves@gmail.com">sylviojalves@gmail.com</a>> wrote:<br>
><br>
> Hi.<br>
><br>
> We develop an android player using ffmpeg lib. It plays .ts files but when<br>
> it comes to 1080p files, it runs really slow (like 10~15 fps). The problem<br>
> is that sws_scale() and avcodec_video_decoder2() takes to much time to get<br>
> it done (> 30ms).<br>
><br>
> Then, I've compiled ffmpeg with libstagefright_h264 support for android.<br>
><br>
> It still plays .ts files and also in slow mode with 1080p.</p>
<p dir="ltr">Which device did you try? Older devices may have no hardware capable of 1080p,  main profile. </p>
<p dir="ltr">> How do I check if hw accel is being used?</p>
<p dir="ltr">The easiest check would be to look at the logcat for OMX related messages. </p>
<p dir="ltr">> I've tried changing the avcodec_find_decoder like bellow but not success:<br>
><br>
> codec = avcodec_find_decoder(codecCtx->codec_id);<br>
> OR<br>
> codec = avcodec_find_decoder_by_name("h264");<br>
> OR<br>
> codec = avcodec_find_decoder_by_name("libstagefright_h264");<br>
><br>
> Is it necessary to init() something or use that AVHWACCEL from ffmpeg?<br>
><br>
> Thanks!<br>
><br>
> Sylvio<br>
 <br>
BR,<br>
Alex Cohn</p>