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

Newegg Daily Deals

Reply
 
Thread Tools
Old 12-21-09, 11:25 PM   #1
Lost Dog
Registered User
 
Join Date: Aug 2007
Posts: 151
Default VDPAU error with "A Christmas Story"

I'm not sure if this is a mythtv VDPAU implementation issue or a driver issue. This is the first time I've seen this problem. Many other movies I've watched do not have this issue.

Playing the DVD with ffmpeg / xv works fine.

The DVD of "A Christmas Story" will not play using VDPAU and the internal mythtv player. When I try to play it I get an error that states "Serious error detected in video output" and it drops back to the mythtv play DVD menu. Occasionally it will say "Failed to initialize A/V sync".

This is with a 8400GS (512Mb) and 190.53 drivers.
From the log...

This type of error repeats:

Code:
2009-12-21 21:12:48.123 Dec: Trying to reselect track
2009-12-21 21:12:48.123 Dec: Selected track #1 in the Unknown language(0)
2009-12-21 21:12:48.127 VDPAU Error: Error at util-vdpau.cpp:1044 (#23, The system does not have enough resources to complete the requested operation at this time.)
2009-12-21 21:12:48.127 VDPAU: WARNING - please read the following carefully:-

* The VDPAU device has reported that you have run out of video memory.   *
* MythTV requires at least 512Mb of video memory for full functionality. *
* If you are using an integrated GPU, please ensure you have allocated   *
* the maximum amount of shared memory in the BIOS settings.              *
* Systems with only 256Mb of video memory are not supported.             *

* If this message continues to appear and you have at least 512Mb of     *
* video memory:-                                                         *
*  - reduce the number of VDPAU video buffers by adding                  *
*    'vdpaubuffersize=X' to your Playback Profile custom filter entry,   *
*    where X is a value between 6 (minimum) and 17 (default). Playback   *
*    of certain H.264 streams will fail with a reduced buffer size.      *
*  - disable any VDPAU options (e.g. deinterlacing, sharpen and denoise) *
*  - ensure the composite extension is disabled in your xorg.conf        *
*  - disable the use of OpenGL Vsync (Setup->TV Settings->Playback)      *
*  - use the Qt Paint Engine (Setup->Appearance)                         *
*  - switch to a 'lightweight' theme such as MythCenter                  *
*  - run MythTV at a lower screen resolution                             *
Then this one:

Code:
2009-12-21 21:12:48.174 NVP(1), Error: Failed to initialize A/V Sync
2009-12-21 21:12:48.174 VidOutVDPAU Error: IsErrored() in ProcessFrame()
2009-12-21 21:12:48.174 NVP(1), Error: AVSync: Unknown error in videoOutput, aborting playback.
It ends with this:

Code:
2009-12-21 21:12:48.175 ~OpenGLVideoSync() -- closing opengl vsync
2009-12-21 21:12:48.175 GLCtx: Deleting OpenGL Resources
2009-12-21 21:12:48.175 GLCtx: Unmapping gl window
2009-12-21 21:12:48.175 GLCtx: Destroying gl window
2009-12-21 21:12:48.175 GLCtx: Destroying glx context
2009-12-21 21:12:48.180 GLCtx: Closing display
2009-12-21 21:12:48.181 VidOutVDPAU: DiscardFrames(1)
2009-12-21 21:12:48.181 VideoBuffers::DiscardFrames(1): AAAAAAAAAAaAALaAA
2009-12-21 21:12:48.181 VideoBuffers::DiscardFrames(): AAAAAAAAAAAAAAAAA -- done()
2009-12-21 21:12:48.181 VideoBuffers::DiscardFrames(1): AAAAAAAAAAAAAAAAA -- done
2009-12-21 21:12:48.181 VidOutVDPAU: DiscardFrames() 3: AAAAAAAAAAAAAAAAA -- done()
2009-12-21 21:12:48.294 TV: HandleStateChange(0) -- begin
2009-12-21 21:12:48.294 TV: Attempting to change from Watching DVD to None
2009-12-21 21:12:48.295 TV: StopStuff() for player ctx 0 -- begin
2009-12-21 21:12:48.295 TV: SetActive(0,w/o OSD) 0 -> 0 -- begin
2009-12-21 21:12:48.295 TV: SetActive(0,w/o OSD) 0 -> 0 -- end
2009-12-21 21:12:48.295 TV:  StopStuff() -- get dvd player out of still frame or wait status
2009-12-21 21:12:48.295 TV: StopStuff(): stopping ring buffer
2009-12-21 21:12:48.295 TV: StopStuff(): stopping player
2009-12-21 21:12:48.295 TV: StopStuff() -- end
2009-12-21 21:12:48.295 TV: Changing from Watching DVD to None
2009-12-21 21:12:48.295 TV: HandleStateChange(0) -- end
2009-12-21 21:12:48.295 TV: StartTV -- process events end
2009-12-21 21:12:48.295 TV: tv->Playback() -- begin
2009-12-21 21:12:48.297 TV: tv->Playback() -- end
2009-12-21 21:12:48.297 TV: StartTV -- process events begin
2009-12-21 21:12:48.297 ScreenSaverX11Private: DPMS Reactivated 1
2009-12-21 21:12:48.317 TV: HandleStateChange(0) -- begin
2009-12-21 21:12:48.317 TV: Attempting to change from None to Watching DVD
2009-12-21 21:12:48.318 RingBuf(dvd://dev/dvd): OpenFile(dvd://dev/dvd, 12)
2009-12-21 21:12:48.318 OpenFile() trying DVD at /dev/dvd
libdvdnav: Using dvdnav version svnR1169
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav: DVD Title: A_CHRISTMAS_STORY
libdvdnav: DVD Serial Number: 2F1B9431
libdvdnav: DVD Title (Alternative): A_CHRISTMAS_STORY
libdvdnav: Unable to find map file '/home/mythtv/.dvdnav/A_CHRISTMAS_STORY.map'
libdvdnav: DVD disk reports itself with Region mask 0x00f60000. Regions: 1 4
2009-12-21 21:12:48.400 Opened DVD device at /dev/dvd
libdvdnav: Suspected RCE Region Protection!!!
2009-12-21 21:12:48.400 There are 11 titles on the disk
2009-12-21 21:12:48.400 Title 0 has 0 parts.
2009-12-21 21:12:48.400 Title 1 has 32 parts.
2009-12-21 21:12:48.400 Title 2 has 1 parts.
2009-12-21 21:12:48.400 Title 3 has 1 parts.
2009-12-21 21:12:48.400 Title 4 has 1 parts.
2009-12-21 21:12:48.400 Title 5 has 19 parts.
2009-12-21 21:12:48.400 Title 6 has 32 parts.
2009-12-21 21:12:48.400 Title 7 has 1 parts.
2009-12-21 21:12:48.400 Title 8 has 1 parts.
2009-12-21 21:12:48.400 Title 9 has 1 parts.
2009-12-21 21:12:48.400 Title 10 has 1 parts.
2009-12-21 21:12:48.408 DVD Serial Number 2F1B9431
2009-12-21 21:12:48.408 RingBuf(/dev/dvd): CalcReadAheadThresh(4000 KB)
			 -> threshhold(64 KB) min read(32 KB) blk size(64 KB)
2009-12-21 21:12:48.469 TV: StartPlayer(0, Watching DVD, main) -- begin
2009-12-21 21:12:48.469 playCtx, Error: Attempting to setup a player, but it already exists.
2009-12-21 21:12:48.469 TV: StartPlayer(0, Watching DVD, main) -- end error
2009-12-21 21:12:48.469 TV: HandleStateChange(0) -- end
If you need anything else let me know... I could run a nvidia bug report but this is the only DVD I've had an issue with. All other HDTV, etc works great.
Lost Dog is offline   Reply With Quote
Old 12-22-09, 12:29 PM   #2
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: VDPAU error with "A Christmas Story"

That sounds strange.

Just so I'm clear, if you perform this exact same set of actions on a variety of regular DVDs:

* Reboot
* Start MythTV
* Go straight to playing the DVD using the same exact set of menu options etc. each time

Then this one DVD causes a problem, but any other DVD works?

If so, an nvidia-bug-report will be useful. Also, please set the following environment variables before running MythTV:

export VDPAU_NVIDIA_DEBUG=3
export VDPAU_TRACE=1

and capture the resulting debug messages.

Can you also give complete details re: the DVD. In particular, which region code is it, what's the ASIN/UPC/... number, which audio track are you playing.

Finally, can you reproduce this problem using other VDPAU-based applications?

Thanks.
Stephen Warren is offline   Reply With Quote
Old 12-22-09, 12:30 PM   #3
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: VDPAU error with "A Christmas Story"

Oh, and which MythTV version are you using; from source, from a repository, ...?
Stephen Warren is offline   Reply With Quote
Old 12-22-09, 07:47 PM   #4
Lost Dog
Registered User
 
Join Date: Aug 2007
Posts: 151
Default Re: VDPAU error with "A Christmas Story"

Quote:
Originally Posted by Stephen Warren View Post
Oh, and which MythTV version are you using; from source, from a repository, ...?
Here are they mythtv details (I compile from source):

Code:
mythtv@htpc:~$ mythfrontend --version
Please include all output in bug reports.
MythTV Version   : 22974M
MythTV Branch    : branches/release-0-22-fixes
Network Protocol : 50
Library API      : 0.22.20091023-1
QT Version       : 4.4.3
Options compiled in:
 linux release using_oss using_alsa using_pulse using_arts using_jack using_backend using_directfb using_dvb using_frontend using_hdhomerun using_hdpvr using_iptv using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_live using_mheg
You are correct. I can restart mythtv and go directly to the DVD (Region code 1) and I get this error. I've never seen it before on any other DVD that I've played.

As soon as I get a chance I'll run the debug. I'm out of town for a few days so I'll get you the DVD UPC code, etc when I return.

Thanks,

Neil
Lost Dog is offline   Reply With Quote
Old 12-26-09, 07:42 PM   #5
Lost Dog
Registered User
 
Join Date: Aug 2007
Posts: 151
Default Re: VDPAU error with "A Christmas Story"

Here is an update...

For the life of my I cannot get xserver to start and enable more verbose logging. When I try to startx all I get is a gray screen with the "X" cursor in the center. I tried setting up a .xinitrc in ~/ but that didn't work either.

I can still run the bug report with default logging if you'd like.

The DVD's UPC code is 12569 57642. Region code is 1.

The audio track is whatever starts up when the disk begins to play. In Mythtv you don't see anything at all... it just dumps back to the menu screen with the error message stated earlier.

Running with xine is a different story. Immediately when the disk starts you get green/blocky corruption then after a second it goes to the Warner Brothers logo screen and the disk will continue to work. Whatever error is seen is in the first few seconds of the intro.

I'll run a bug report in a little while...
Lost Dog is offline   Reply With Quote
Old 12-31-09, 07:32 PM   #6
Lost Dog
Registered User
 
Join Date: Aug 2007
Posts: 151
Default Re: VDPAU error with "A Christmas Story"

Ok, finally got around to running the bug report....
Attached Files
File Type: gz Christmas_story_srror.txt.gz (6.0 KB, 89 views)
File Type: gz nvidia-bug-report.log.gz (55.8 KB, 85 views)
Lost Dog is offline   Reply With Quote
Old 12-31-09, 07:39 PM   #7
ragejg
nV News Alumni
 
ragejg's Avatar
 
Join Date: Sep 2002
Location: Finger Lakes of Hell, NY
Posts: 5,399
Send a message via AIM to ragejg
Default Re: VDPAU error with "A Christmas Story"

ahh, the "You Shot Your Eye Out" error.

__________________

2010-2011 Reviews: GTX 570 | GTX 580 | GTS 450 | GTX 460 | GTX 465
Pre-2010 Reviews: 6600 GT | XMS 4400 DDR | SilenX Cooler | 6800 | 5900 XT | Personal Cinema | 5900 NU


______________________________________________
Phenom II x6 1090t @ 4.0 ghz | Asus M498TD-EVO Am3 SLI nForce 980a | 2x EVGA GTX 560 SLI | 2x4gb DDR3-1333 | Antec EarthWatts EA650 PSU | 60gb Mushkin Calisto Enhanced Sandforce SSD | 2x WD2500KS RAID 0 | Sunbeam Tuniq 3 case | 24" Asus 19x10 LED LCD | 26" Panasonic 720p TV | Sidewinder X5 mouse | Logitech MX5500 & Revolution mouse | Altec Lansing 5.1 THX-Certified audio | Win 7 Ultimate | desk | couch


ragejg is offline   Reply With Quote
Old 01-04-10, 01:21 PM   #8
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: VDPAU error with "A Christmas Story"

Thanks for Christmas_story_srror.txt.gz; it highlights the problem.

Encoded video data can be broken up into "slices"; essentially small regions of the picture. The VDPAU driver has a limit on the number of slices that can be supported, based on media format and resolution. The picture in question exceeds this limit and hence the VdpDecoderRender function fails.

I'll go investigate why our limits are set to the specific value they are, and whether it's reasonable to increase them. I'm surprised that the picture has as many slices as it does (314), so the DVD may have simply been encoded incorrectly/strangely.

Separately from this, MythTV's error-handling could be relaxed to simply ignore errors (or at least errors other than display preemption) from VdpDecoderRender. The worst that could happen in this case is corrupted video. Judging by your experiments with xine, that's what xine is doing.
Stephen Warren is offline   Reply With Quote

Old 01-04-10, 03:42 PM   #9
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: VDPAU error with "A Christmas Story"

It looks like we'll solve this by raising the limit on the maximum number of slices that the driver can handle. We'll note this change in the changelog of some future driver.
Stephen Warren is offline   Reply With Quote
Old 01-04-10, 04:18 PM   #10
Lost Dog
Registered User
 
Join Date: Aug 2007
Posts: 151
Default Re: VDPAU error with "A Christmas Story"

Quote:
Originally Posted by Stephen Warren View Post
It looks like we'll solve this by raising the limit on the maximum number of slices that the driver can handle. We'll note this change in the changelog of some future driver.
That is excellent! Thanks for the quick investigation!

I've noticed a few other DVD's we've gotten from Netflix that have crashed in similar ways. Unfortunately they went back before I had a chance to copy anything from them. If I see more I'll let you know.

I own the Christmas Story DVD so when a update driver is out I'll play it again and let you know what happens.

Neil
Lost Dog 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 02:19 PM.


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