vdpau & vlc

*nix specific usage questions
xfn
New Cone
New Cone
Posts: 5
Joined: 14 Dec 2008 11:42

vdpau & vlc

Postby xfn » 17 Dec 2008 15:11

When we can espect a supporting of hardware decoding of video using Nvidia's vdpau in vlc?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vdpau & vlc

Postby Jean-Baptiste Kempf » 17 Dec 2008 18:38

Yes, two students are working on it.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

xfn
New Cone
New Cone
Posts: 5
Joined: 14 Dec 2008 11:42

Re: vdpau & vlc

Postby xfn » 18 Dec 2008 08:35

Merci :)

xfn
New Cone
New Cone
Posts: 5
Joined: 14 Dec 2008 11:42

Re: vdpau & vlc

Postby xfn » 19 Dec 2008 07:09

I forgot one more question:will there any special announcement about a merging source code into git on forum or anywhere?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vdpau & vlc

Postby Jean-Baptiste Kempf » 19 Dec 2008 10:04

I forgot one more question:will there any special announcement about a merging source code into git on forum or anywhere?
Normal releases.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

xfn
New Cone
New Cone
Posts: 5
Joined: 14 Dec 2008 11:42

Re: vdpau & vlc

Postby xfn » 28 Jan 2009 10:41

Quoi de neuf?

Rémi Denis-Courmont
Developer
Developer
Posts: 15272
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vdpau & vlc

Postby Rémi Denis-Courmont » 29 Jan 2009 17:53

For what it's worth, I have not seen any patch, not even an informal project announcement on the development mailing list.

I'm afraid this remains 100% vaporware at this point in time.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vdpau & vlc

Postby Jean-Baptiste Kempf » 30 Jan 2009 00:00

3 students are starting to work on it on monday, so you will have to wait, if they ever succeed :D
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ull
New Cone
New Cone
Posts: 1
Joined: 18 May 2009 19:27

Re: vdpau & vlc

Postby ull » 18 May 2009 19:30

Any progress on this since January? We're getting close to get out of that "ever" time constraint.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vdpau & vlc

Postby Jean-Baptiste Kempf » 19 May 2009 00:19

Take the libva and vaapi patches on VLC mailing lists. Works great.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Repto
Blank Cone
Blank Cone
Posts: 12
Joined: 14 Jun 2009 13:10

Re: vdpau & vlc

Postby Repto » 14 Jun 2009 13:12

Can you give the URL(s) please? In advance many thanks.

Repto
Blank Cone
Blank Cone
Posts: 12
Joined: 14 Jun 2009 13:10

Re: vdpau & vlc

Postby Repto » 14 Jun 2009 13:23

Google is my friend....
http://www.jbkempf.com/blog/post/2009/0 ... and-nVidia
Can the instructions be posted?
Also see http://www.splitted-desktop.com/~gbeauchesne/libva/
Now to see if I can get it going...

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vdpau & vlc

Postby Jean-Baptiste Kempf » 14 Jun 2009 18:24

Well, instructions are easy:
- Patch FFmpeg with H264_VAAPI patch
- Patch VLC with the vaapi patch from Mailing list or use VLC 1.1-git
- modify vlc-config with the va flags.
- compile.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Spulit
Blank Cone
Blank Cone
Posts: 11
Joined: 20 Nov 2008 18:29

Re: vdpau & vlc

Postby Spulit » 18 Jun 2009 17:18

Hi,

Is it possible to post here the full process in more detail, namely where to get the patches, how to apply them, etc?

Thanks

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vdpau & vlc

Postby Jean-Baptiste Kempf » 19 Jun 2009 17:24

When I have time.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ksng
New Cone
New Cone
Posts: 4
Joined: 19 Jun 2009 02:40

Re: vdpau & vlc

Postby ksng » 20 Jun 2009 02:12

Well, instructions are easy:
- modify vlc-config with the va flags.
.
Would you please elaborate more on where to modify in vlc-config! I couldn't find any va related flags in the file.

posthumecaver
New Cone
New Cone
Posts: 8
Joined: 20 Jun 2009 10:56

Re: vdpau & vlc

Postby posthumecaver » 20 Jun 2009 11:19

Hi,

may be I can write here what I have done and you can give us some pointers....

I followed the instructions from the http://wiki.videolan.org/Git and install and compile VLC (I am not sure this 1.1 version but anyway)

And this

http://www.jbkempf.com/blog/post/2009/0 ... 5-commands

Only thing I have to differently is...

I have to change the configure to this

../configure --disable-nls --enable-qt4 --prefix=/opt/vlc --exec-prefix=/usr

Now I am not sure I have to add the lva-x11 in the vlc-config under qt4 or xvideo, while I read somewhere that VLC 1.1 GIT is already patched another question would be that
I have to install the libva (http://www.splitted-desktop.com/~gbeauchesne/libva/) from here or 1.1 GIT is already installed or not?

;;
xvideo)
cppflags="${cppflags} "
libs="${libs} -lva-x11 -lXxf86vm -lXinerama -lSM -lICE -lX11 -lXext -lXv"
;;
xvmc)

Now I install the VLC without this last two steps, it replays the AVI files but the files that are 264 coded it gives a segmentation error...

I am guessing I have already ffm264 there because I already install mplayer with vdpau support and it functions perfectly from here

http://www.avenard.org/media/Ubuntu_Rep ... itory.html

So can you give us some pointers to figure out where is this segmentation falut come from for h264 codengs.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vdpau & vlc

Postby Jean-Baptiste Kempf » 20 Jun 2009 21:00

no, it is not in the xvideo where you add those flags, but in avcodec.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

posthumecaver
New Cone
New Cone
Posts: 8
Joined: 20 Jun 2009 10:56

Re: vdpau & vlc

Postby posthumecaver » 20 Jun 2009 22:21

It works, thanks for the tips...

720p , H264, %20 (same as MPlayer with VDPAU) load was before %60-%70....

Thx for the tips...

posthumecaver
New Cone
New Cone
Posts: 8
Joined: 20 Jun 2009 10:56

Re: vdpau & vlc

Postby posthumecaver » 21 Jun 2009 12:52

Ok,

It was little bit too early to celebrate...

I have a success to play one file that was crashing before but some others are still crashing with segmentation fault may be I have to add this flags to other places in VLC-config...

The file codecs looks like this for fixed fie from VLC

Stream 0
Type:Video
Codec: H264 – MPEG-4 AVC(part 10)(avc1)
Language: English
Resoulution: 1280 x 534
Display Resolution: 1280 x 534
Frame rate: 24

But I can get more information if I play the file with MPlayer and it looks like this....

[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "x264@High Profile L4.1 720p", -vid 0

[mkv] Track ID 2: audio (A_DTS) "DTS5.1 1536Kbps from LPCM5.1", -aid 0, -alang eng

[mkv] Track ID 3: subtitles (S_TEXT/UTF8) "English", -sid 0, -slang eng

[mkv] Track ID 4: subtitles (S_TEXT/UTF8) "Simplified Chinese", -sid 1, -slang chi

[mkv] Will play video track 1.

Matroska file format detected.

VIDEO: [avc1] 1280x534 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)

==========================================================================

Forced video codec: ffh264vdpau

Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family

[VD_FFMPEG] XVMC-accelerated MPEG-2.

Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))

==========================================================================

==========================================================================

Opening audio decoder: [libdca] DTS decoding with libdca

Stream with high frequencies VQ coding

AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)

Selected audio codec: [dts] afm: libdca (DTS-libdca)

==========================================================================

AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)

Starting playback...

[VD_FFMPEG] XVMC-accelerated MPEG-2.

VDec: vo config request - 1280 x 534 (preferred colorspace: H.264 VDPAU acceleration)

VDec: using H.264 VDPAU acceleration as output csp (no 0)

Movie-Aspect is 2.40:1 - prescaling to correct movie aspect.

VO: [vdpau] 1280x534 => 1280x534 H.264 VDPAU acceleration



And this crashing file looks like this...

libavformat file format detected.

[lavf] Video stream found, -vid 0

[lavf] Audio stream found, -aid 1

VIDEO: [avc1] 1264x704 24bpp 59.940 fps 0.0 kbps ( 0.0 kbyte/s)

==========================================================================

Forced video codec: ffh264vdpau

Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family

[VD_FFMPEG] XVMC-accelerated MPEG-2.

Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))

==========================================================================

==========================================================================

Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)

FAAD: compressed input bitrate missing, assuming 128kbit/s!

AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)

Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))

==========================================================================

AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)

Starting playback...

[VD_FFMPEG] XVMC-accelerated MPEG-2.

VDec: vo config request - 1264 x 704 (preferred colorspace: H.264 VDPAU acceleration)

VDec: using H.264 VDPAU acceleration as output csp (no 0)

Movie-Aspect is 1.80:1 - prescaling to correct movie aspect.

VO: [vdpau] 1264x704 => 1264x704 H.264 VDPAU acceleration


Main difference that I see is one identified as 'Matroska file format detected.' and the other one as 'libavformat file format detected.'..

Do I have to configure something else for libavformat?

Thx agan for the answers.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vdpau & vlc

Postby Jean-Baptiste Kempf » 21 Jun 2009 15:01

--enable-matroska

You need libebml and libmatroska.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

posthumecaver
New Cone
New Cone
Posts: 8
Joined: 20 Jun 2009 10:56

Re: vdpau & vlc

Postby posthumecaver » 21 Jun 2009 21:45

Now I have a very stupid question somehow libva was not installed correctly by me....

When I look to vainfo, it is complaining that /usr/lib/va/drivers/nvidia_drv_video.so is not there and it is not there....

But I can find such library anywhere in the filesystem and under the libva directories...

What is the trick here?

An another interesting point when I configure the vlc with --enable-matroska option it is complaining me that is an invalid option...

configure: WARNING: unrecognized options: --enable-matroska

is this not valid for VLC 1.1 GIT?

mc2man
Blank Cone
Blank Cone
Posts: 51
Joined: 26 Jan 2009 03:42

Re: vdpau & vlc

Postby mc2man » 22 Jun 2009 00:38

not --enable-matroska , use --enable-mkv

If you get a chance post your complete configure

posthumecaver
New Cone
New Cone
Posts: 8
Joined: 20 Jun 2009 10:56

Re: vdpau & vlc

Postby posthumecaver » 22 Jun 2009 01:13

Sorry my bad,

I did not understand quickly that I have to install also

http://www.splitted-desktop.com/~gbeauc ... pau-video/

Thx again,

eveything is working fine now....

:)

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vdpau & vlc

Postby Jean-Baptiste Kempf » 22 Jun 2009 11:31

posthumecaver: Does everything works for you now?

Can you make a post of it?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 7 guests