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

Newegg Daily Deals

Reply
 
Thread Tools
Old 11-26-08, 07:28 PM   #169
scowl
Registered User
 
Join Date: Aug 2004
Location: Portland, OR
Posts: 31
Default Re: mplayer vdpau

Also the code doesn't work. In the case of XvMCPutSurface of the bottom field with bottom field displayed first, the value of "field" should be 6, not 8.

XVMC_BOTTOM_FIELD = 2
XVMC_SECOND_FIELD = 4
XVMC_BOTTOM_FIELD | XVMC_SECOND_FIELD = 6

2 ^ 3 = 8

Technically with top field first, "field" should be 5, not 1, but the Nvidia driver apparently assumes top field first so it works by chance.
scowl is offline   Reply With Quote
Old 11-26-08, 07:44 PM   #170
jyavenard
MythTV developer
 
Join Date: Mar 2006
Posts: 413
Default Re: mplayer vdpau

Quote:
Originally Posted by scowl View Post
And it's a very slow trick to calculate a constant!
How is this calculating a constant ?

for (i = 1; i <= bob_deinterlace + 1; i++) {
int field = top_field_first ? i : i ^ 3;

Quote:
2 ^ 3 = 8
^ in C is XOR, not Power
so 2^3=1
jyavenard is offline   Reply With Quote
Old 11-27-08, 06:20 AM   #171
Duran
Registered User
 
Join Date: Nov 2008
Posts: 28
Default Re: mplayer vdpau

lol you bunch of nerds
Duran is offline   Reply With Quote
Old 11-28-08, 02:55 AM   #172
oxyis
Registered User
 
Join Date: May 2008
Posts: 7
Default Re: mplayer vdpau

Looks like the mplayer patches just got updated; ftp://download.nvidia.com/XFree86/vd...139462.tar.bz2

The README states that there was some fixes to handling MKV files. Looks like mkv playback is working now (x264). There where some stutters in playback of my sample file. Looks promising anyway.

Espen
oxyis is offline   Reply With Quote
Old 11-28-08, 03:52 AM   #173
theuni
Registered User
 
Join Date: Nov 2008
Posts: 27
Default Re: mplayer vdpau

An improvement indeed... my mkv files do seem to play now.

Though anything with "HIGH VDPAU acceleration" still fails. Is this currently being worked on?

TheUni
theuni is offline   Reply With Quote
Old 11-28-08, 04:33 AM   #174
etlamo
Registered User
 
Join Date: Nov 2008
Posts: 7
Default Re: mplayer vdpau

Great work, with new patches my mkv files are playing. But with many videos, frames seem to be swapped and video is trembling very much. Maybe because these videos encoded with B-frames or something else, I don't know.
etlamo is offline   Reply With Quote
Old 11-28-08, 05:19 AM   #175
mikerussellnz
Registered User
 
Join Date: Nov 2008
Posts: 4
Default Re: mplayer vdpau

With latest mplayer patches my MOV files work but still getting errors with MKV files:

VDec: vo config request - 1920 x 800 (preferred colorspace: H.264 HIGH VDPAU acceleration)
VDec: using H.264 HIGH VDPAU acceleration as output csp (no 2)
Movie-Aspect is 2.40:1 - prescaling to correct movie aspect.
VO: [vdpau] 1920x800 => 1920x800 H.264 HIGH VDPAU acceleration
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
Error 25 at libvo/vo_vdpau.c:849: -0.000 0/ 0 ??% ??% ??,?% 5 0
mikerussellnz is offline   Reply With Quote
Old 11-28-08, 06:11 AM   #176
jyavenard
MythTV developer
 
Join Date: Mar 2006
Posts: 413
Default Re: mplayer vdpau

Updated mplayer packages for Ubuntu.
I've split them between 64bits and 32 bits package, each in its own directory...

http://www.avenard.org/files/ubuntu/mplayer-x264/
jyavenard is offline   Reply With Quote

Old 11-28-08, 06:22 AM   #177
jyavenard
MythTV developer
 
Join Date: Mar 2006
Posts: 413
Default Re: mplayer vdpau

Quote:
Originally Posted by mikerussellnz View Post
With latest mplayer patches my MOV files work but still getting errors with MKV files:

VDec: vo config request - 1920 x 800 (preferred colorspace: H.264 HIGH VDPAU acceleration)
VDec: using H.264 HIGH VDPAU acceleration as output csp (no 2)
Movie-Aspect is 2.40:1 - prescaling to correct movie aspect.
VO: [vdpau] 1920x800 => 1920x800 H.264 HIGH VDPAU acceleration
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
Error 25 at libvo/vo_vdpau.c:849: -0.000 0/ 0 ??% ??% ??,?% 5 0
same here ..

no mkv for me either ...
jyavenard is offline   Reply With Quote
Old 11-28-08, 06:25 AM   #178
heldal
Registered User
 
Join Date: Dec 2004
Posts: 14
Default Re: mplayer vdpau

Using the latest patch I have problems demuxing H.264 from DVB-S2.

Using the default demuxer, mplayer incorrectly identifies the stream as mpeg2:

Code:
./mplayer -vo vdpau -vc ffh264vdpau /dev/dvb/adapter1/dvr0
MPlayer dev-SVN-r27960-4.3.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz (Family: 6, Model: 15, Stepping: 6)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Option msglevel: Unknown suboption 5
Warning unknown option msglevel at line 38

Playing /dev/dvb/adapter1/dvr0.
TS file format detected.
VIDEO MPEG2(pid=515) AUDIO MPA(pid=652) NO SUBS (yet)!  PROGRAM N. 0
When using "-demuxer lavf" mplayer identifies the video stream, but stutters with audio/video out of sync:

Code:
VIDEO:  [H264]  1920x1080  0bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
With this demuxer there's also a lot of messages like:

Code:
[h264_vdpau @ 0x88ba7f0]B picture before any references, skipping
[h264_vdpau @ 0x88ba7f0]decode_slice_header error
[h264_vdpau @ 0x88ba7f0]no frame!
Error while decoding frame!
A:46525.8 V:   0.0 A-V:46525.793 ct:  0.000   0/  0 ??% ??% ??,?% 1 0 ESC[J^M[h264_vdpau @ 0x88ba7f0]B picture before any references, skipping
[h264_vdpau @ 0x88ba7f0]decode_slice_header error
[h264_vdpau @ 0x88ba7f0]no frame!
Error while decoding frame!
pts value <= previous
A:46525.8 V:   0.0 A-V:46525.797 ct:  0.004   0/  0 ??% ??% ??,?% 2 0 ESC[J^M[h264_vdpau @ 0x88ba7f0]B picture before any references, skipping
[h264_vdpau @ 0x88ba7f0]decode_slice_header error
[h264_vdpau @ 0x88ba7f0]no frame!
Error while decoding frame!
pts value <= previous
A:46525.8 V:   0.0 A-V:46525.797 ct:  0.008   0/  0 ??% ??% ??,?% 3 0 ESC[J^M[h264_vdpau @ 0x88ba7f0]B picture before any references, skipping
The complete output from "./mplayer -demuxer lavf -vo vdpau -vc ffh264vdpau /dev/dvb/adapter1/dvr0 is attached".
Attached Files
File Type: txt dvb-output.txt (21.5 KB, 260 views)
heldal is offline   Reply With Quote
Old 11-28-08, 08:12 AM   #179
sensimilla
Registered User
 
Join Date: Nov 2007
Posts: 17
Default Re: mplayer vdpau

Seems like MAIN profile 720p h.264 mkv's will play now, but not HIGH profile ones, they just throw the libvo/vo_vdpau.c:849 error.

The ones that do work have the frame switching/micro-rewind problem.

Here is some info for one that works:

Video
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 2h 2mn
Bit rate : 4 258 Kbps
Nominal bit rate : 4 466 Kbps
Width : 1 280 pixels
Height : 528 pixels
Display aspect ratio : 2.424
Frame rate : 23.976 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.276
Writing library : x264 core 64 r987M e71168d
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x1:0 / me=dia / subme=2 / psy_rd=0.0:0.0 / brdo=0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / chroma_qp_offset=0 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / bime=1 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=2pass / bitrate=4466 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00


and this one doesn't :

Video
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 2h 5mn
Bit rate : 4 122 Kbps
Nominal bit rate : 4 325 Kbps
Width : 1 280 pixels
Height : 688 pixels
Display aspect ratio : 1.860
Frame rate : 23.976 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.205
Writing library : x264 core 60 r951 445d87e
Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=6 / brdo=1 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=0 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / bime=1 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=2pass / bitrate=4325 / ratetol=1.0 / rceq='blurCplx^(1-qComp)' / qcomp=1.00 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=2:1.00
sensimilla is offline   Reply With Quote
Old 11-28-08, 09:09 AM   #180
Gregoire.Favre
Registered User
 
Join Date: Nov 2004
Posts: 126
Default Re: mplayer vdpau

Here I can "play" mkv files, but it's replaying some parts and the whole speed is wrong all the time, but wvm don't play :
Code:
MPlayer dev-SVN-r27960-4.3.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz (Family: 6, Model: 15, Stepping: 6)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Playing test.wmv.
ASF file format detected.
[asfheader] Audio stream found, -aid 1
[asfheader] Video stream found, -vid 2
VIDEO:  [WMV3]  480x360  24bpp  1000.000 fps  443.0 kbps (54.1 kbyte/s)
==========================================================================
Forced video codec: ffwmv3vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] VDPAU accelerated codec.
Selected video codec: [ffwmv3vdpau] vfm: ffmpeg (FFmpeg WMV3/WMV9 (VDPAU))
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 48.1 kbit/3.41% (ratio: 6011->176400)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 480 x 360 (preferred colorspace: VC1 MAIN VDPAU acceleration)
VDec: using VC1 MAIN VDPAU acceleration as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 480x360 => 480x360 VC1 MAIN VDPAU acceleration  [fs]
Error 14 at libvo/vo_vdpau.c:658
Gregoire.Favre 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 12:04 PM
NVIDIA VDPAU Reference Benchmarks News Archived News Items 0 06-11-12 06:30 AM
VDPAU and KDE 4.8 compositing = slow Pie-rate NVIDIA Linux 30 05-23-12 08:07 AM
VDPAU testing tool crisalide NVIDIA Linux 392 04-29-12 07:01 PM
mplayer & xmms problems! replys2me NVIDIA Linux 5 09-06-02 03:34 PM

All times are GMT -5. The time now is 11:52 PM.


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