<div dir="ltr"><div>Hi Kevin Dixon,</div><div>Thanks for your reply,</div><div>I did the same thing what you mentioned above..Still I am facing problem.If I play normally without applying any filters it is working properly.But If I apply filters and play the song.Then I am facing problem..which was mentioned above.</div>
<div><br></div><div>Thanks & Regards,</div><div>Bitfield.<br><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 17, 2013 at 12:07 PM, Yamusani Vinay <span dir="ltr"><<a href="mailto:yamusanivinay@gmail.com" target="_blank">yamusanivinay@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 class="HOEnZb"><div class="h5"><div dir="ltr"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Dec 17, 2013 at 1:24 AM, Kevin Dixon <span dir="ltr"><<a href="mailto:kevin.c.dixon@gmail.com" target="_blank">kevin.c.dixon@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><div>On Fri, Dec 13, 2013 at 12:14 PM, Alex Cohn <<a href="mailto:alexcohn@netvision.net.il" target="_blank">alexcohn@netvision.net.il</a>> wrote:<br>


> On Thu, Dec 12, 2013 at 1:21 PM, Yamusani Vinay <<a href="mailto:yamusanivinay@gmail.com" target="_blank">yamusanivinay@gmail.com</a>> wrote:<br>
>> Hi All,<br>
>><br>
>>     I am using ffmpeg..in my android application..The main problem what I am<br>
>> facing is if I navigate to another application or if do another<br>
>> activity..the song breaks means i will get some shutters and pops in the<br>
>> song.So Please let me know how to resolve this issue..<br>
>><br>
>>   I am facing this issue when I am applying filters ln my code..If I do not<br>
>> apply any filters and play normally it is working fine..Even I checked my<br>
>> code inside a thread still I am facing problem.<br>
>><br>
>>   So please resolve this issue..<br>
>><br>
>> Thanks & Regards,<br>
>> Bitfield.<br>
><br>
> There is very little that ffmpeg libraries can do to help you here.<br>
> Probably, filters require more CPU than normal playback. You can keep<br>
> the thread priority high, even if the app that hosts it goes to<br>
> background, but that's an entirely Android-specific issue.<br>
><br>
> BR,<br>
> Alex Cohn<br>
> _______________________________________________<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" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
<br>
</div></div>Hi Yamusani,<br>
<br>
You should consider putting your audio processing in an Android Service<br>
<a href="http://developer.android.com/reference/android/app/Service.html" target="_blank">http://developer.android.com/reference/android/app/Service.html</a><br>
You can even run the Service as a separate process if that is not good<br>
enough for you, by assigning the<br>
android:process="..." attribute in the AndroidManifest.xml for your<br>
<service> element.<br>
<br>
I suspect that when your activity is backgrounded, the context switch<br>
is very expensive. You might see messages in logcat from Choreographer<br>
process complaining about dropping frames<br>
<span><font color="#888888"><br>
Kevin<br>
</font></span><div><div>_______________________________________________<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" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>