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

Newegg Daily Deals

Reply
 
Thread Tools
Old 11-16-11, 05:29 AM   #1
emilio.guijarro
Registered User
 
Join Date: Nov 2011
Posts: 9
Question Corrupted MPEG2 video playback with mplayer/VDPAU

Hi,

we are currently experiencing corrupted video playback under Linux, using both a custom-made VDPAU application and mplayer:

$ mplayer -vo vdpau -vc ffmpeg12vdpau clip.mpg

clip.mpg is an MPEG-2 YUV422P video stream, wrapped in a transport stream. I've just finished uploading it to vdpau@partners.ftp.nvidia.com.

Also, I've attached mplayer's output with VDPAU_TRACE=1 and VDPAU_NVIDIA_DEBUG=3 environment variables, and a nvidia-bug-report information package for my machine.

Tested so far on GeForce 8600 GTS and Quadro FX 880M, with similar results.

Update: video plays fine with mplayer's software decoder.
Attached Files
File Type: txt mplayer.txt (76.5 KB, 75 views)
File Type: gz nvidia-bug-report.log.gz (45.5 KB, 55 views)
emilio.guijarro is offline   Reply With Quote
Old 11-17-11, 06:43 AM   #2
sandipt
NVIDIA Corporation
 
sandipt's Avatar
 
Join Date: Dec 2010
Posts: 260
Default Re: Corrupted MPEG2 video playback with mplayer/VDPAU

- Are you using latest mplayer from http://www.mplayerhq.hu/MPlayer/rele...apshot.tar.bz2 ?
- what exactly do you mean by `corrupted video playback` ? Can you please explain more?
- Does issue reproduce if you configure xorg.conf with nvidia-xconfig --no-composite ?
sandipt is offline   Reply With Quote
Old 11-18-11, 01:23 AM   #3
emilio.guijarro
Registered User
 
Join Date: Nov 2011
Posts: 9
Default Re: Corrupted MPEG2 video playback with mplayer/VDPAU

Hi sandipt. Thanks for taking the time to review our issue.

Quote:
Originally Posted by sandipt View Post
- Are you using latest mplayer from http://www.mplayerhq.hu/MPlayer/rele...apshot.tar.bz2 ?
Now I am . Newest mplayer refuses to play the video, apparently due to a colorspace incompatibility:

Code:
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Is perhaps VDPAU unable to decode YUV422P MPEG-2 streams? does this depend on the GPU model?

Quote:
Originally Posted by sandipt View Post
- what exactly do you mean by `corrupted video playback` ? Can you please explain more?
Please see enclosed image.

Quote:
Originally Posted by sandipt View Post
- Does issue reproduce if you configure xorg.conf with nvidia-xconfig --no-composite ?
Yes. Same problem.
Attached Thumbnails
Click image for larger version

Name:	corrupted.jpg
Views:	159
Size:	54.9 KB
ID:	43426  
emilio.guijarro is offline   Reply With Quote
Old 11-18-11, 05:28 AM   #4
emilio.guijarro
Registered User
 
Join Date: Nov 2011
Posts: 9
Default Re: Corrupted MPEG2 video playback with mplayer/VDPAU

vdpausupport.html:

Quote:
In all cases, VdpDecoder objects solely support 8-bit 4:2:0 streams, and only support writing to VDP_CHROMA_TYPE_420 surfaces.
So, since our stream is definitively 4:2:2, I guess the question is settled.
emilio.guijarro is offline   Reply With Quote
Old 11-21-11, 03:28 AM   #5
sandipt
NVIDIA Corporation
 
sandipt's Avatar
 
Join Date: Dec 2010
Posts: 260
Default Re: Corrupted MPEG2 video playback with mplayer/VDPAU

Could you please attach video clip you are using here OR send it to linux-bugs@nvidia.com?
sandipt is offline   Reply With Quote
Old 11-21-11, 04:19 AM   #6
emilio.guijarro
Registered User
 
Join Date: Nov 2011
Posts: 9
Default Re: Corrupted MPEG2 video playback with mplayer/VDPAU

I've already uploaded it to vdpau@partners.ftp.nvidia.com . It is called "clip.mpg" an weights around 20 mb's.
emilio.guijarro is offline   Reply With Quote
Old 11-23-11, 01:31 AM   #7
emilio.guijarro
Registered User
 
Join Date: Nov 2011
Posts: 9
Default Re: Corrupted MPEG2 video playback with mplayer/VDPAU

sandipt, did you manage to get the video file? please let me know if it suits you better to have it transferred over a different medium.
emilio.guijarro is offline   Reply With Quote
Old 11-23-11, 03:01 AM   #8
sandipt
NVIDIA Corporation
 
sandipt's Avatar
 
Join Date: Dec 2010
Posts: 260
Default Re: Corrupted MPEG2 video playback with mplayer/VDPAU

I am able to install mplayer on Desktop system with g84 card and Ubuntu 11.04 O.S (285.05.09) but at the time of playing with command
“mplayer -vo vdpau -vc ffmpeg12vdpau clip.mpg “ it showing error” FATAL: Could not initialize video filters (-vf) or video output (-vo)”


root@ad:/usr/local/bin# ./mplayer -vo vdpau -vc ffmpeg12vdpau /root/Desktop/clip.mpg
MPlayer SVN-r34354-snapshot-4.5.2 (C) 2000-2011 MPlayer Team

Playing /root/Desktop/clip.mpg.
TS file format detected.
VIDEO MPEG2(pid=49) NO AUDIO! (try increasing -tsprobe) NO SUBS (yet)! PROGRAM N. 2
VIDEO: MPEG2 1920x1072 (aspect 3) 29.970 fps 60000.0 kbps (7500.0 kbyte/s)
Load subtitles in /root/Desktop/
================================================== ========================
Forced video codec: ffmpeg12vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg12vdpau] vfm: ffmpeg (FFmpeg MPEG-1/2 (VDPAU))
================================================== ========================
Audio: no sound
Starting playback...
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.

FATAL: Could not initialize video filters (-vf) or video output (-vo).


Exiting... (End of file)
sandipt is offline   Reply With Quote

Old 11-23-11, 03:07 AM   #9
emilio.guijarro
Registered User
 
Join Date: Nov 2011
Posts: 9
Default Re: Corrupted MPEG2 video playback with mplayer/VDPAU

Yes. That's what I'm getting too with the current version of Mplayer (see post #3). Older versions play the file but the output is corrupted.

Now could you please confirm where the problem is?, we guess 4:2:2 streams are not supported by VDPAU, but an official confirmation on your side would be more than appreciated.
emilio.guijarro is offline   Reply With Quote
Old 11-27-11, 03:48 AM   #10
johnc
Registered User
 
Join Date: May 2011
Posts: 92
Default Re: Corrupted MPEG2 video playback with mplayer/VDPAU

Quote:
Originally Posted by emilio.guijarro View Post
Yes. That's what I'm getting too with the current version of Mplayer (see post #3). Older versions play the file but the output is corrupted.

Now could you please confirm where the problem is?, we guess 4:2:2 streams are not supported by VDPAU, but an official confirmation on your side would be more than appreciated.
I can't speak to the Quadro card, but the GeForces don't support anything higher than high profile streams.
johnc is offline   Reply With Quote
Old 11-28-11, 01:05 AM   #11
emilio.guijarro
Registered User
 
Join Date: Nov 2011
Posts: 9
Default Re: Corrupted MPEG2 video playback with mplayer/VDPAU

I guess you mean "main" profile:

ftp://download.nvidia.com/XFree86/Li...limits-decoder
emilio.guijarro is offline   Reply With Quote
Old 11-28-11, 11:15 AM   #12
johnc
Registered User
 
Join Date: May 2011
Posts: 92
Default Re: Corrupted MPEG2 video playback with mplayer/VDPAU

Quote:
Originally Posted by emilio.guijarro View Post
Yes, I forgot you mentioned the 8600 which only has Feature Set A support. For that and MPEG-2, it's main profile. Sorry for the confusion, but that link spells it out pretty well.
johnc 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 09:05 PM.


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