2013-01-11, 19:47
Hi. I compiled Frodo RC3 (XBMC 12.0-RC3 Git:20130102-7a6cb7f) with --enable-external-ffmpeg flag but XBMC does not decode h264 video the same way ffplay does. I am particularly interested in getting XBMC to play video using all CPU cores available. On XBMC 11 this used to work fine and I was able to play 1080p x264 files without any "choppyness".
I'm on Arch Linux x86_64. If I play a file with ffplay, it is played using more than one core smoothly. But if I open the same file with XBMC, playback is choppy in CPU intensive parts (frames are dropped): only one core is used (to 100%).
This line of xbmc.log is particularly interesting:
Hardware: Intel® Atom CPU D510 @ 1.66GHz (no external GPU, only the one included on die, which is pretty bad)
Linux 3.6.11
ffmpeg 1.0.1 with pthreads
x264 20121113-1
File codecs:
Stream #0:0(eng), 3, 1/1000: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 1001/48000, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0:1(eng), 8, 1/1000: Audio: ac3, 48000 Hz, 5.1(side), s16, 640 kb/s (default)
Is there any way to modify XBMC's code to allow decoding of h264 video with more than one thread?
I'm on Arch Linux x86_64. If I play a file with ffplay, it is played using more than one core smoothly. But if I open the same file with XBMC, playback is choppy in CPU intensive parts (frames are dropped): only one core is used (to 100%).
This line of xbmc.log is particularly interesting:
Code:
INFO: ffmpeg[E9FFB700]: [h264] Cannot parallelize deblocking type 1, decoding such frames in sequential order
Hardware: Intel® Atom CPU D510 @ 1.66GHz (no external GPU, only the one included on die, which is pretty bad)
Linux 3.6.11
ffmpeg 1.0.1 with pthreads
x264 20121113-1
File codecs:
Stream #0:0(eng), 3, 1/1000: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 1001/48000, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0:1(eng), 8, 1/1000: Audio: ac3, 48000 Hz, 5.1(side), s16, 640 kb/s (default)
Is there any way to modify XBMC's code to allow decoding of h264 video with more than one thread?