[Libav-user] Serious Issue
kevin.c.dixon at gmail.com
Mon Dec 16 20:54:26 CET 2013
On Fri, Dec 13, 2013 at 12:14 PM, Alex Cohn <alexcohn at netvision.net.il> wrote:
> On Thu, Dec 12, 2013 at 1:21 PM, Yamusani Vinay <yamusanivinay at gmail.com> wrote:
>> Hi All,
>> I am using ffmpeg..in my android application..The main problem what I am
>> facing is if I navigate to another application or if do another
>> activity..the song breaks means i will get some shutters and pops in the
>> song.So Please let me know how to resolve this issue..
>> I am facing this issue when I am applying filters ln my code..If I do not
>> apply any filters and play normally it is working fine..Even I checked my
>> code inside a thread still I am facing problem.
>> So please resolve this issue..
>> Thanks & Regards,
> There is very little that ffmpeg libraries can do to help you here.
> Probably, filters require more CPU than normal playback. You can keep
> the thread priority high, even if the app that hosts it goes to
> background, but that's an entirely Android-specific issue.
> Alex Cohn
> Libav-user mailing list
> Libav-user at ffmpeg.org
You should consider putting your audio processing in an Android Service
You can even run the Service as a separate process if that is not good
enough for you, by assigning the
android:process="..." attribute in the AndroidManifest.xml for your
I suspect that when your activity is backgrounded, the context switch
is very expensive. You might see messages in logcat from Choreographer
process complaining about dropping frames
More information about the Libav-user