nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Corrupted MPEG2 video playback with mplayer/VDPAU (http://www.nvnews.net/vbulletin/showthread.php?t=168731)

emilio.guijarro 11-16-11 05:29 AM

Corrupted MPEG2 video playback with mplayer/VDPAU
 
2 Attachment(s)
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.

sandipt 11-17-11 06:43 AM

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 ?

emilio.guijarro 11-18-11 01:23 AM

Re: Corrupted MPEG2 video playback with mplayer/VDPAU
 
1 Attachment(s)
Hi sandipt. Thanks for taking the time to review our issue.

Quote:

Originally Posted by sandipt (Post 2502732)
- 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 (Post 2502732)
- what exactly do you mean by `corrupted video playback` ? Can you please explain more?

Please see enclosed image.

Quote:

Originally Posted by sandipt (Post 2502732)
- Does issue reproduce if you configure xorg.conf with nvidia-xconfig --no-composite ?

Yes. Same problem.

emilio.guijarro 11-18-11 05:28 AM

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.

sandipt 11-21-11 03:28 AM

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?

emilio.guijarro 11-21-11 04:19 AM

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 11-23-11 01:31 AM

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.

sandipt 11-23-11 03:01 AM

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)

emilio.guijarro 11-23-11 03:07 AM

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.

johnc 11-27-11 03:48 AM

Re: Corrupted MPEG2 video playback with mplayer/VDPAU
 
Quote:

Originally Posted by emilio.guijarro (Post 2504652)
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.

emilio.guijarro 11-28-11 01:05 AM

Re: Corrupted MPEG2 video playback with mplayer/VDPAU
 
I guess you mean "main" profile:

ftp://download.nvidia.com/XFree86/Li...limits-decoder

johnc 11-28-11 11:15 AM

Re: Corrupted MPEG2 video playback with mplayer/VDPAU
 
Quote:

Originally Posted by emilio.guijarro (Post 2505791)

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.


All times are GMT -5. The time now is 03:47 AM.

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