GUI setting option to disable inloop deblocking (skip loop filter) for H.264 content? - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Feature Suggestions (/forumdisplay.php?fid=9)
+--- Thread: GUI setting option to disable inloop deblocking (skip loop filter) for H.264 content? (/showthread.php?tid=32572)
GUI setting option to disable inloop deblocking (skip loop filter) for H.264 content? - jack83 - 2008-04-12 21:18
I build my HTPC especially for playing highdef content on my FullHD display. While playing a 720p h264 mkv file is no problem, 1080p does hardly work if the bitrate goes above ~8mbit. I tried it with XBMC, mplayer and vlc, nothing worked so far.
I did a little researche in the ubuntu forum and found this:
It describes how to disable the loopback (filter?) to gain a speedup in decoding h264. (Of course you will lose some quality)
I tried it with the mplayer and it works. Now, is there a possibility to use these parameters in xbmc for decoding 1080p h264 content? I added the parameters to the mplayer.conf file, but they did not have any effect.
Athon64 X2 5000
Onboard Geforce 7050
- jmarshall - 2008-04-12 23:45
XBMC for linux doesn't use mplayer.
- Gamester17 - 2008-04-13 00:38
...and I think you mean "inloop" (or "in-loop") filter, not "loopback" filter.
XBMC for Linux uses XBMC's own in-house developed video-player that we call "DVDPlayer" that is based on FFmpeg.
PS! FYI; Elan tested disabling "inloop" filtering for FFmpeg inside DVDPlayer in XBMC for Mac OS X and it did not yeild much speed gain (only one frame per socond or so IIRC).
- jack83 - 2008-04-13 04:52
jmarshall Wrote:XBMC for linux doesn't use mplayer.That explains why mplayer.conf is not working
you are right, its called inloop. I don't know where I read "loopback".
The available FFmpeg options for this are called:
I just checkt XBMC's DVDPlayer source code myself, the option is already in there but commented out. It says that the option has nearly no impact on the performance cause of the multi-threading patch that XBMC uses ;(
It seems that I have to wait for a big ffmpeg update.
- mpw222 - 2008-04-13 06:24
I can't play all 1080p content on a Core 2 Duo@2.2Ghz which is probably a bit (~5%) faster than the x2 5000: http://www23.tomshardware.com/cpu_2007.html?modelx=33&model1=928&model2=878&chart=431 shows a 2.13GHz Core 2 Duo basically even with an x2 5000.
I'd be interested to hear if you manage to improve performance, but as far as I know, your CPU may not be fast enough.
GUI option for enabling lavdopts=skiploopfilter=bidir - JPSiemer - 2008-06-09 09:14
I recently discovered that adding lavdopts=skiploopfilter=bidir, or lavdopts=skiploopfilter=all, or lavdopts=skiploopfilter=nonref to the mplayer.conf file turns off different deblocking modes in MPlayer.
My question is: does this affect all codecs or are there only certain ones that this affects? Ideally I would like to have this setting only affect H.264 playback, and all other video playback be unaffected...
Also, is there any way we can get this added to the GUI, so the setting can be changed very quickly? This setting drastically improves the playback of H.264 files encoded with the deblocking filter with various changes in quality. the "bidir" setting seems to look the best, while still reducing dropped frames by more than 50%!!! If the file has no deblocking, then it is more likely it will playback better, with no reduced quality.
If this were a GUI setting...
+ None (Default)
+ All (BiDir + NonRef)
Easy as that... half the H.264 playback issues solved with a simple little setting provided conveniently to the user! Let's push this!
- kraqh3d - 2008-06-09 15:26
I think you meant "lavcopts"
But, to answer your question, I'm pretty sure this will affect everything that's decoded using libavcodec (which is a part of ffmpeg.)
For MPlayer (in XBMC for Xbox) you can create conf files that are used for specific files. If you have moviename.avi, xbmc will look for moviename.avi.conf.
- JPSiemer - 2008-06-09 18:30
I'm pretty sure I meant "lavdopts", just like the thread title... IDK... maybe they both do the same thing, but a Google search of "lavdopts" yields 450 results, and "lavcopts" only yields 4.
.conf files for each movie is a little overboard IMO. There's no way to only have this turned on during H.264 playback? I'm sure there's a way -- anything is possible!
- Gamester17 - 2008-06-09 19:04
FYI; the "skiploopfilter" option (to disable in-loop deblocking) has been discussed before here:
PS! IIRC skiploopfilter currenly only affects H.264 decoding in MPlayer/FFmpeg but check mplayerhq.hu and ffmpeg.org to confirm (e-mail their user-list, not the development-list)
- kraqh3d - 2008-06-09 19:36
Apologies. I originally thought that was a typo as I'd never seen it before. A little research shows the lavdopts are just additional libavcodec debugging parameters. According to the man page, this parameter only applies to H264.