Kodi Community Forum
Linux HOW-TO achieve perfect playback at 23.97 or 59.94 Hz with NVIDIA GPU hardware - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Tips, tricks, and step by step guides (https://forum.kodi.tv/forumdisplay.php?fid=110)
+--- Thread: Linux HOW-TO achieve perfect playback at 23.97 or 59.94 Hz with NVIDIA GPU hardware (/showthread.php?tid=70068)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36


- JumJum - 2010-04-08

boba23 Wrote:@JumJum,

man you should seriously update your guide.

The line in post #1, which sets the variables for the nvidia-settings tool, activates flipping there ...
With flipping activated, I DO GET servere stutter with h264 vdpau playback. As soon as I turn it off, that stuttering is gone.
I doubt that's only me experiencing that behaviour.
Also for me it makes no sense, that you would turn off flipping in xorg.conf, and then again activate it in nvidia-settings?

boba

The option in xorg.conf is "NoFlip" "false" which means flipping is enabled, so everything is in order there. An understandable mistake, but it opens the question what flipping setting acctually causes your problems; NoFlip enabled or disabled.


- User 29008 - 2010-04-08

JumJum Wrote:The option in xorg.conf is "NoFlip" "false" which means flipping is enabled, so everything is in order there. An understandable mistake, but it opens the question what flipping setting acctually causes your problems; NoFlip enabled or disabled.

Oh alright, my bad then. But definately, activating "Allow flipping" in Nvidia-Settings gives me bad stutter.
What is the difference between activating/disabling flipping in xorg.conf and nvidia-settings?

boba


- Haohmaru - 2010-04-09

This script saved me a lot of time to set the refresh mode properly for videos with different frame rates. I must say its an awesome work !
I don't know why but after using this sript if I start a video most of the times the first few secs will be kind of greenish/pixels a disorted. (Running 28256, vdpau GF8400GS)
Any Idea how to solve this ?


- bobo1on1 - 2010-04-09

boba23 Wrote:Oh alright, my bad then. But definately, activating "Allow flipping" in Nvidia-Settings gives me bad stutter.
What is the difference between activating/disabling flipping in xorg.conf and nvidia-settings?

boba

Flipping means that the backbuffer and frontbuffer are swapped by changing a pointer, instead of copying the backbuffer to the frontbuffer which is a lot slower.
It's something you want to have enabled.


- User 29008 - 2010-04-09

bobo1on1 Wrote:Flipping means that the backbuffer and frontbuffer are swapped by changing a pointer, instead of copying the backbuffer to the frontbuffer which is a lot slower.
It's something you want to have enabled.

Alright, understood. So that means enabling it in both, xorg.conf AND nvidia-settings is the way to go?

boba


- bobo1on1 - 2010-04-09

I'm pretty sure those two settings do the same thing, might as well turn them both on to be safe.


- DDM123 - 2010-04-09

Haohmaru Wrote:This script saved me a lot of time to set the refresh mode properly for videos with different frame rates. I must say its an awesome work !
I don't know why but after using this sript if I start a video most of the times the first few secs will be kind of greenish/pixels a disorted. (Running 28256, vdpau GF8400GS)
Any Idea how to solve this ?

I think that's a vdpau issue, rather than something caused by the changes to xorg.conf from this thread. I have this problem too and hopefully there is a fix for it somewhere.


- furii - 2010-04-09

Haohmaru Wrote:This script saved me a lot of time to set the refresh mode properly for videos with different frame rates. I must say its an awesome work !
I don't know why but after using this sript if I start a video most of the times the first few secs will be kind of greenish/pixels a disorted. (Running 28256, vdpau GF8400GS)
Any Idea how to solve this ?

DDM123 Wrote:I think that's a vdpau issue, rather than something caused by the changes to xorg.conf from this thread. I have this problem too and hopefully there is a fix for it somewhere.

i just did a little testing on this because it's something that i've noticed and annoys me as well. i know xbmc live played without the green screen on a clean install, but then i used jumjum's script and built the latest svn and i wasn't sure which of these caused the problem.

so, using the files stored in ~/old/ i restored my original settings and xbmc played fine without the green screen. i ran jumjum's script again, went and played a file and the green screen was back. after turning off sync playback to display the problem was still there. however after turning off adjust display refresh rate to match video the green screen problem disappeared.

after figuring that out i once again restored my old settings to see if turning that feature on on a stock build would exhibit the same problem. it did not. now i really have no clue where that leaves us. i'm hoping that jumjum and/or bobo1on1 might have some idea.

the green screen goes away after the next key frame (i assume) so it's not a huge deal. you can also just jump back when you start playing a file and that solves it too. but i won't lie and say that it's not annoying to see it come up every time you start or resume a file.


- DDM123 - 2010-04-10

I'll give that a shot when I get home later. Thanks.


- TheDoughboy - 2010-04-10

JumJum - THANK YOU!!!!! LaughRoflLaugh

I just got a Phillips HDTV and after working out the sound issue through HDMI I had the jutter issue.

This fixed it!

My kids and I thank you!


- rickardkk - 2010-04-10

I have a TV that supports both 24Hz and 23.976Hz.
And some of my blu-rays (remuxed) are mastered at 24fps.

Will running this script let XBMC pick 24Hz for 24fps movies and 23.976Hz for 23.976fps movies?

(I'm running Windows now just because I could not stand the judder)


- biggles - 2010-04-10

I am pretty sue the answer is know. Xrandr can't use decimal numbers, so it cannot distinguish between 23.976 and 24. So you'll have to choose one of them..


same problem as boba23 - stefano85 - 2010-04-13

hi guys, here i have the same problem as boba23, i have followed this guide and i have stutter if i set enable to "allow flipping" option in nvidia settings.anyway i see it only in 24/23.976 hz movie. Also the problem is that if i set it off when see a movie without black bars (totally fullscreen) i notice a tearing problem in upside screen always in the same point. maybe a problem with "allow flipping" disabled, but at least there's no more little stutter every 1-2 minutes. sorry for the bad english, hope there's a solution to this.
i have ubuntu 9.10 32bit with nvidia 195.36.15, asrock ion 330 pro (via HDMI) xbmc last svn, samsung 40 b7000 led tv correctly configured in xorg.conf.


Not so perfect playback at the moment - tkainusa - 2010-04-15

JumJum:

First of all, thanks for a good script. Anyway, I have some minor twitching issue when playing 23.976/24 material. Most of the time video is quite perfect, but sometimes small twitching occur.

Installation procedure:
XBMCfreaks live-cd V13 and then I executed your script.

Here is my xorg.conf:

Quote:Section "Device"
Identifier "nvidia"
Driver "nvidia"
Option "NoLogo" "true"
Option "DynamicTwinView" "false"
Option "NoFlip" "false"
Option "FlatPanelProperties" "Scaling = Native"
Option "ModeValidation" "NoVesaModes, NoXServerModes, NoVertRefreshCheck, NoHorizSyncCheck"
Option "UseDisplayDevice" "DFP-1"
Option "ModeDebug" "true"
Option "HWCursor" "false"
EndSection

Section "Screen"
Identifier "screen"
Device "nvidia"
SubSection "Display"
Modes "1920x1080_60_0" "1920x1080_24"
EndSubSection
EndSection

Section "Extensions"
Option "Composite" "false"
EndSection


# --- Modes in ModePool for SAMSUNG (DFP-1) ---
# "nvidia-auto-select" : 1920 x 1080 @ 60.0 Hz
# "1920x1080" : 1920 x 1080 @ 60.0 Hz
# "1920x1080_60" : 1920 x 1080 @ 60.0 Hz
# "1920x1080_60_0" : 1920 x 1080 @ 59.94/60 Hz (CEA-861B Format 16)
# "1920x1080_50" : 1920 x 1080 @ 50 Hz (CEA-861B Format 31)
# "1920x1080_30" : 1920 x 1080 @ 29.97/30 Hz (CEA-861B Format 34)
# "1920x1080_25" : 1920 x 1080 @ 25 Hz (CEA-861B Format 33)
# "1920x1080_24" : 1920 x 1080 @ 23.97/24 Hz (CEA-861B Format 32)
# "1920x1080_60i" : 1920 x 1080 @ 59.94/60 Hz (CEA-861B Format 5)
# "1920x1080_50i" : 1920 x 1080 @ 50.0 Hz Interlace
# "1680x1050" : 1680 x 1050 @ 60.0 Hz
# "1680x1050_60" : 1680 x 1050 @ 60.0 Hz
# "1440x900" : 1440 x 900 @ 75.0 Hz
# "1440x900_75" : 1440 x 900 @ 75.0 Hz
# "1440x900_60" : 1440 x 900 @ 59.9 Hz
# "1360x768" : 1360 x 768 @ 60.0 Hz
# "1360x768_60" : 1360 x 768 @ 60.0 Hz
# "1280x1024" : 1280 x 1024 @ 75.0 Hz
# "1280x1024_75" : 1280 x 1024 @ 75.0 Hz
# "1280x1024_60" : 1280 x 1024 @ 60.0 Hz
# "1280x960" : 1280 x 960 @ 60.0 Hz
# "1280x960_60" : 1280 x 960 @ 60.0 Hz
# "1280x800" : 1280 x 800 @ 59.8 Hz
# "1280x800_60" : 1280 x 800 @ 59.8 Hz
# "1280x720" : 1280 x 720 @ 60.0 Hz
# "1280x720_60" : 1280 x 720 @ 60.0 Hz
# "1280x720_60_0" : 1280 x 720 @ 59.94/60 Hz (CEA-861B Format 4)
# "1280x720_50" : 1280 x 720 @ 50.0 Hz
# "1152x864" : 1152 x 864 @ 75.0 Hz
# "1152x864_75" : 1152 x 864 @ 75.0 Hz
# "1024x768" : 1024 x 768 @ 75.0 Hz
# "1024x768_75" : 1024 x 768 @ 75.0 Hz
# "1024x768_70" : 1024 x 768 @ 70.1 Hz
# "1024x768_60" : 1024 x 768 @ 60.0 Hz
# "800x600" : 800 x 600 @ 75.0 Hz
# "800x600_75" : 800 x 600 @ 75.0 Hz
# "800x600_72" : 800 x 600 @ 72.2 Hz
# "800x600_60" : 800 x 600 @ 60.3 Hz
# "720x576" : 720 x 576 @ 50 Hz (CEA-861B Format 18)
# "720x576_50" : 720 x 576 @ 50 Hz (CEA-861B Format 18)
# "720x480" : 720 x 480 @ 59.94/60 Hz (CEA-861B Format 3)
# "720x480_60" : 720 x 480 @ 59.94/60 Hz (CEA-861B Format 3)
# "640x480" : 640 x 480 @ 75.0 Hz
# "640x480_75" : 640 x 480 @ 75.0 Hz
# "640x480_73" : 640 x 480 @ 72.8 Hz
# "640x480_60" : 640 x 480 @ 60.0 Hz
# --- End of ModePool for SAMSUNG (DFP-1): ---

Do you or someone else have any thoughts what could be tried to achieve the perfect playback?

Edit. I tried to play the "bird" 40mbit/s mkv, here is my xbmc log:

http://cl1p.net/xbmc_log/

That file didn't play perfectly. Does the log show problems?


- phearless-d - 2010-04-21

Thanks your script worked great. nice smooth playback now.