Kodi Community Forum

Full Version: XBMC process nice not being adjusted, causing airplay playback stutter?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Having experienced significant stutter when using Airplay I have played around the renicing the XBMC process.

What I found is very strange, and probably only a developer can answer.

renice xbmc.bin process to -1:
#rock solid AV performance (e.g. movies playback from ipad native player)
#highly irregular audio only playback (e.g. from iphone native music app)

renice xbmc.bin process to 10
# Highly irregular AV performance, frequent stutters, and unsmooth playback
# rock solid audio performance

Can anyone give me a clue as to why this is happening, and how I stabilize both? Is there a different process associated with just Audio playback which I need to prioritize also?

or is there a flag I can collect via python/script which allows me to determine which media type is running and adjust the nice accordingly?


Further to the above I see in the log that bmc is attempting to change the priority but seems to fail.

is this related?

6:24:04 T:2861560896 NOTICE: Opening video stream: 0 source: 256
16:24:04 T:2861560896 NOTICE: Creating video thread
16:24:04 T:2727208000 NOTICE: Thread COMXPlayerVideo start, auto delete: false
16:24:04 T:2861560896 ERROR: SetPriority: error Permission denied
16:24:04 T:2861560896 NOTICE: Opening audio stream: 2 source: 256
16:24:04 T:2861560896 NOTICE: Creating audio thread
16:24:04 T:2869949504 NOTICE: Thread COMXPlayerAudio start, auto delete: false
16:24:04 T:2861560896 ERROR: SetPriority: error Permission denied
16:24:04 T:2861560896 NOTICE: Opening Subtitle stream: 3 source: 256
16:24:05 T:2861560896 NOTICE: OMXClock using audio as reference
16:24:06 T:2727208000 NOTICE: Display resolution ADJUST : 1920x1080 @ 24.00 - Full Screen (23) (weight: 0.001)
16:24:06 T:3041010208 NOTICE: Using GL_TEXTURE_2D
16:24:06 T:3041010208 NOTICE: GL: Using BYPASS render method
16:24:06 T:3041010208 NOTICE: GL: NPOT texture support detected
16:24:25 T:3041010208 NOTICE: COMXPlayer::CloseFile
16:24:25 T:3041010208 NOTICE: COMXPlayer: waiting for threads to exit
16:24:25 T:2861560896 NOTICE: COMXPlayer::OnExit()
16:24:25 T:2861560896 NOTICE: OMXPlayer: closing audio stream
16:24:25 T:2861560896 NOTICE: Closing audio stream
16:24:25 T:2869949504 NOTICE: thread end: OMXPlayerAudio::OnExit()
16:24:25 T:2861560896 NOTICE: OMXPlayer: closing video stream
16:24:25 T:2861560896 NOTICE: Closing video stream
16:24:25 T:2727208000 NOTICE: thread end: video_thread
16:24:26 T:2861560896 NOTICE: OMXPlayer: closing subtitle stream
16:24:26 T:2861560896 NOTICE: Closing subtitle stream
16:24:26 T:2861560896 NOTICE: COMXPlayer::OnExit() deleting demuxer
16:24:26 T:2861560896 NOTICE: COMXPlayer::OnExit() deleting input stream
16:24:26 T:3041010208 NOTICE: DVDPlayer: finished waiting
16:24:26 T:3041010208 NOTICE: COMXPlayer::CloseFile
16:24:26 T:3041010208 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
16:24:26 T:3041010208 NOTICE: COMXPlayer: waiting for threads to exit
16:24:26 T:3041010208 NOTICE: DVDPlayer: finished waiting
^C
root@slurver:/home/pi# tail .xbmc/temp/xbmc.log -f
16:24:53 T:3041010208 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
16:24:53 T:2664424512 NOTICE: Thread COMXPlayer start, auto delete: false
16:24:53 T:2664424512 NOTICE: Creating InputStream
16:24:53 T:2664424512 NOTICE: Creating Demuxer
16:24:53 T:2664424512 NOTICE: Opening audio stream: 0 source: 256
16:24:53 T:2664424512 NOTICE: Creating audio thread
16:24:53 T:2727208000 NOTICE: Thread COMXPlayerAudio start, auto delete: false
16:24:53 T:2664424512 ERROR: SetPriority: error Permission denied