Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-21-11, 01:48 PM   #1
thecapsaicinkid
Registered User
 
Join Date: Aug 2010
Posts: 47
Default Distribution downgrade and now poor performance with h264/mplayer/vdpau on G210

I've just gone back from Ubuntu 11.04 to 10.04 LTS and am now unable to playback HD content recorded from my DVB-S2 tuner card (using MythTV) smoothly. Compiz is disabled. nvidia-settings is not loading on boot, it's pretty much a clean system. X is running at 1080p50.

Code:
mplayer -vo vdpau -vc ffh264vdpau -demuxer lavf myvid.mpg
The videos are h264 files from BBC HD/Channel 4 HD etc, they played smoothly before but am now getting massive audio desync with the following printed repeatedly

Code:
pts value < previousV: ...
It seems to be once the bitrate hits a certain point. One of the BBC HD files plays back ok until it shows the demo reel which I think is very high bitrate. Another file from Channel 4 HD is permanently slow.

My benchmark figures are as follows. I was playing back similar content (and BluRay) smoothly before. The only thing I can think of is TwinView was disabled previously.

Code:
qvdpautest 0.5.1
Intel(R) Core(TM)2 Duo CPU     E7300  @ 2.66GHz
NVIDIA GPU GeForce 210 (GT218) at PCI:2:0:0 (GPU-0)

VDPAU API version : 1
VDPAU implementation : NVIDIA VDPAU Driver Shared Library  195.36.24  Thu Apr 22 10:39:56 PDT 2010

SURFACE GET BITS: 1016.05 M/s
SURFACE PUT BITS: 620.327 M/s

MPEG DECODING (1920x1080): 67 frames/s
MPEG DECODING (1280x720): 162 frames/s
H264 DECODING (1920x1080): 61 frames/s
H264 DECODING (1280x720): 132 frames/s
VC1 DECODING (1440x1080): 78 frames/s
MPEG4 DECODING (1920x1080): 72 frames/s

MIXER WEAVE (1920x1080): 303 frames/s
MIXER BOB (1920x1080): 507 fields/s
MIXER TEMPORAL (1920x1080): 142 fields/s
MIXER TEMPORAL + IVTC (1920x1080): 93 fields/s
MIXER TEMPORAL + SKIP_CHROMA (1920x1080): 187 fields/s
MIXER TEMPORAL_SPATIAL (1920x1080): 60 fields/s
MIXER TEMPORAL_SPATIAL + IVTC (1920x1080): 47 fields/s
MIXER TEMPORAL_SPATIAL + SKIP_CHROMA (1920x1080): 68 fields/s
MIXER TEMPORAL_SPATIAL (720x576 video to 1920x1080 display): 210 fields/s
MIXER TEMPORAL_SPATIAL + HQSCALING (720x576 video to 1920x1080 display): 127 fields/s

MULTITHREADED MPEG DECODING (1920x1080): 62 frames/s
MULTITHREADED MIXER TEMPORAL (1920x1080): 93 fields/s
Attached Files
File Type: gz nvidia-bug-report.log.gz (37.1 KB, 34 views)
thecapsaicinkid is offline   Reply With Quote
Old 10-21-11, 03:48 PM   #2
thecapsaicinkid
Registered User
 
Join Date: Aug 2010
Posts: 47
Default Re: Distribution downgrade and now poor performance with h264/mplayer/vdpau on G210

I've just noticed, mplayer output is also full of
Code:
[h264_vdpau @ 0x7609900]number of reference frames exceeds max (probably corrupt input), discarding one
I've also tested a series of other HD sample videos (Bluray rips + high bitrate 1080p 50fps) and they all play back silky smooth.
thecapsaicinkid is offline   Reply With Quote
Old 10-21-11, 04:32 PM   #3
conky
Registered User
 
Join Date: Nov 2007
Posts: 70
Default Re: Distribution downgrade and now poor performance with h264/mplayer/vdpau on G210

"VDPAU implementation : NVIDIA VDPAU Driver Shared Library 195.36.24"

This is an old Nvidia driver (1.5 years old). This driver downgrade during your distro downgrade is probably what broken it. Try upgrading the Nvidia driver.
conky is offline   Reply With Quote
Old 10-22-11, 05:30 AM   #4
thecapsaicinkid
Registered User
 
Join Date: Aug 2010
Posts: 47
Default Re: Distribution downgrade and now poor performance with h264/mplayer/vdpau on G210

So I've tried;
  • Upgrading to latest nvidia driver v285.05.09 via PPA
  • Playback in MythTV player instead of mplayer (all VDPAU profiles low/normal/high)
  • Disabling compositing and enabling triple buffering in xorg.conf
  • Setting gpu+cpu scaling to max performance


Nothing works.

So, these HD DVB-S(2) recordings are interlaced right? If bluray rips and other progressive HD/high bitrate videos play back fine, then the problem lies with deinterlacing?

Even if I set MythTV plaback to use the low end deinterlacing, it makes no difference.
thecapsaicinkid is offline   Reply With Quote
Old 10-22-11, 09:34 AM   #5
thecapsaicinkid
Registered User
 
Join Date: Aug 2010
Posts: 47
Default Re: Distribution downgrade and now poor performance with h264/mplayer/vdpau on G210

Sussed it!

It's Pulseaudio (*spit*) causing it. Went back to Alsa (or rather the Alsa plugin and not the native pulse driver) and everything is roses.
thecapsaicinkid is offline   Reply With Quote
Old 10-22-11, 02:16 PM   #6
thecapsaicinkid
Registered User
 
Join Date: Aug 2010
Posts: 47
Default Re: Distribution downgrade and now poor performance with h264/mplayer/vdpau on G210

Well, half solved it.

For these particular videos, mplayer won't play smoothly regardless of audio output, even set to null and it's still jerky. Mythfrontend plays the same video fine when alsa is set but laggy when pulseaudio is set.


Confused.
thecapsaicinkid is offline   Reply With Quote
Old 10-24-11, 03:58 AM   #7
thecapsaicinkid
Registered User
 
Join Date: Aug 2010
Posts: 47
Default Re: Distribution downgrade and now poor performance with h264/mplayer/vdpau on G210

Upgrading mplayer has sorted this problem but now I have a different issue with frames being dropped rapidly at certain points in the video, will post a more specific thread on that issue.
thecapsaicinkid is offline   Reply With Quote
Old 10-26-11, 10:27 PM   #8
uau
Registered User
 
Join Date: Sep 2009
Posts: 45
Default Re: Distribution downgrade and now poor performance with h264/mplayer/vdpau on G210

With X running at 50 FPS and deinterlacing enabled you're probably hitting a VDPAU limitation that prevents it from switching frames more than once per monitor refresh. Try using mplayer2 instead of mplayer (1); the better VDPAU driver in mplayer2 should be able to work around that.
uau is offline   Reply With Quote

Old 10-27-11, 02:13 PM   #9
thecapsaicinkid
Registered User
 
Join Date: Aug 2010
Posts: 47
Default Re: Distribution downgrade and now poor performance with h264/mplayer/vdpau on G210

Upgrading mplayer did indeed solve this issue, but the other still persists even at 60Hz. Driving me nuts.
thecapsaicinkid is offline   Reply With Quote
Old 10-27-11, 06:05 PM   #10
uau
Registered User
 
Join Date: Sep 2009
Posts: 45
Default Re: Distribution downgrade and now poor performance with h264/mplayer/vdpau on G210

The config you pasted in another thread showed questionable settings in your config file. Try at least without the autosync and af surround/pan settings.

Probably not directly related to the problem described here but still wrong/questionable are also
"demuxer=lavf" (it's not the best demuxer for ALL formats; lavf is already the default for most of the formats it is appropriate for in mplayer2)
the ac/afm settings (What exactly is the goal of those? What problem are you trying to avoid?)
forcedsubsonly (does this really make sense as the default for all files?)
vfm=ffmpeg is mostly pointless, libavcodec decoders are already used for most formats.

Do you really want to enable deinterlacing for all videos by default, so that it's active even for non-interlaced ones?

Also a saner way to write "nojoystick=yes" would be "joystick=no" (there was a bug related to this in mplayer1, but it should work fine in mplayer2).
uau is offline   Reply With Quote
Old 10-28-11, 12:32 PM   #11
thecapsaicinkid
Registered User
 
Join Date: Aug 2010
Posts: 47
Default Re: Distribution downgrade and now poor performance with h264/mplayer/vdpau on G210

I have tried with --noconfig.

The mplayer config I posted gives me what I want for all the different types of media I play without having to explicitly set anything.

lavf, because it's been successful with files that were problematic yet hasn't given problems with any other file so I kept it as default.

codec settings so codecs are chosen in order of my preference (blu-ray namely)

forcedsubs, why would I not want this to be there? I'm not deaf nor am I bi-lingual. This is the default behaviour for a regular hardware dvd player. Having it there for media that doesn't need it does nothing, why would I want to have to specify it manually when I play a dvd for example? Same goes for de-interlacing (and surround), correct me if I'm wrong, if it's progressive it does nothing.
thecapsaicinkid is offline   Reply With Quote
Old 10-28-11, 09:57 PM   #12
uau
Registered User
 
Join Date: Sep 2009
Posts: 45
Default Re: Distribution downgrade and now poor performance with h264/mplayer/vdpau on G210

demuxer=lavf does cause problems with some file types, and as I said lavf is already default for most appropriate types in mplayer2.
What "preferences" would those audio codec settings achieve? Many of those are the default decoder for the corresponding format already; adding such stuff explicitly to the config file is only asking for trouble in the future. Was there ever an actual problem solved by each of those?
The forcedsubs setting means that in many cases English subtitles would not be visible for videos with foreign-language audio.
Enabling de-interlacing does have an effect regardless of whether the content was originally interlaced or progressive, and enabling it for non-interlaced videos is definitely a bad idea.
The surround filter will have no effect if the number of input channels is not 2. In the stereo case it will modify audio whether it was actually matrix-encoded or not.

Setting autosync is generally a bad idea unless you have a specific audio output problem requiring it.
uau is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:40 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.