XBMC (live) en de smoothvideo functie

July 13, 2009 by at 15:18 3 Comments

Voor de mensen die gebruik maken van de SVN branch (zie eerdere posts) is er de mogelijkheid om gebruik te maken van smoothvideo. Sommige video’s bestaan namelijk uit 24 frames per seconde terwijl de tv het beeld doorgeeft in 50hz. Er ontstaat dus een probleem wanneer de 24 frames naar afgeleide van 50hz doorgegeven moet worden. In de laatste versies van XBMC zit de optie smoothvideo die dit probleem kan oplossen.

Om te beginnen moet het bestand /etc/X11/xorg.conf worden aangepast. De ”TripleBuffer” moet uit staan, anders zal de X server crashen:

Section “Screen”
Identifier     “Screen0″
Device         “Device0″
Monitor        ”Monitor0″
DefaultDepth    24
Option         “NoLogo” “True”
#Option         “TripleBuffer” “True”
SubSection     “Display”
Depth       24
Option     “DynamicTwinView” “false”
EndSubSection
EndSection
Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "NoLogo" "True"
    #Option         "TripleBuffer" "True"
    SubSection     "Display"
        Depth       24
        Option     "DynamicTwinView" "false"
    EndSubSection
EndSection

Daarna is het mogelijk om de optie aan te zetten onder Settings->Videos->Player.

Hier staan verschillende opties. Mijn advies is te kijken welke optie het beste resultaat geeft. Dit kan namelijk verschillen of er wel of geen gebruik gemaakt gaat worden van een receiver. Om zeker te weten dat het werkt moet de tekst “CVideoReferenceClock” in de logfiles staan:

(T: XBMCLive)xbmc@XBMCLive:~$ cat /home/xbmc/.xbmc/temp/xbmc.log | grep CVideoReferenceClock
15:07:07 T:2782903184 M:1332822016 DEBUG: CVideoReferenceClock: Setting up GLX
15:07:08 T:2782903184 M:1331630080 DEBUG: CVideoReferenceClock: output of nvidia-settings -nt -q RefreshRate 2>&1: 59.94 Hz
15:07:08 T:2782903184 M:1331630080 DEBUG: CVideoReferenceClock: Detected refreshrate by nvidia-settings: 59.940000 hertz, rounding to 60 hertz
15:07:09 T:2774510480 M:1255821312 DEBUG: CVideoReferenceClock: Clock speed 100.099997%
(T: XBMCLive)xbmc@XBMCLive:~$

Comments

  1. us1111 says:

    Allereerst moet ik zeggen dat ik dit een super blog vind.. Er goed werk!

    Maar qua smoothvideo, zie ik deze optie in xbmc nergens terug. Is dit hetzelfde als de synchronize to audio optie?

  2. admin says:

    Het is de optie; Sync playback to display.

    Daarin heb je drie opties:

    - A/V Sync method
    You can set this to Audio Clock, Video Clock(resample audio) or Video Clock(Drop/Dupe Audio)
    Resample audio does not work when passthrough is selected.

    - Resample quality
    Quality of the resampler, goes from low to really high, the default is medium which should be fine for anyone. The higher the quality of the resampler, the more cpu it will use. You can look at the resampler types at libsamplerate

    - Maximum Resample Amount (%)
    The maximum percentage the speed of the video can be changed to fit the refreshrate, the default is 5% to allow cinema to PAL speedup (24 to 25 fps, 4%), this is only available when resampling (a small speed change will still happen without resampling).

    Ik heb gewoon de default gebruikt, de eerste optie die in beeld komt als je smoothvideo dus aan zet. Meer info is trouwens hier te vinden:

    http://xbmc.org/forum/showthread.php?p=336538

Leave a Comment

*