Page 1 of 5
vdpau & vlc
Posted: 17 Dec 2008 15:11
by xfn
When we can espect a supporting of hardware decoding of video using Nvidia's vdpau in vlc?
Re: vdpau & vlc
Posted: 17 Dec 2008 18:38
by Jean-Baptiste Kempf
Yes, two students are working on it.
Re: vdpau & vlc
Posted: 18 Dec 2008 08:35
by xfn
Merci
Re: vdpau & vlc
Posted: 19 Dec 2008 07:09
by xfn
I forgot one more question:will there any special announcement about a merging source code into git on forum or anywhere?
Re: vdpau & vlc
Posted: 19 Dec 2008 10:04
by Jean-Baptiste Kempf
I forgot one more question:will there any special announcement about a merging source code into git on forum or anywhere?
Normal releases.
Re: vdpau & vlc
Posted: 28 Jan 2009 10:41
by xfn
Quoi de neuf?
Re: vdpau & vlc
Posted: 29 Jan 2009 17:53
by Rémi Denis-Courmont
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.
Re: vdpau & vlc
Posted: 30 Jan 2009 00:00
by Jean-Baptiste Kempf
3 students are starting to work on it on monday, so you will have to wait, if they ever succeed
Re: vdpau & vlc
Posted: 18 May 2009 19:30
by ull
Any progress on this since January? We're getting close to get out of that "ever" time constraint.
Re: vdpau & vlc
Posted: 19 May 2009 00:19
by Jean-Baptiste Kempf
Take the libva and vaapi patches on VLC mailing lists. Works great.
Re: vdpau & vlc
Posted: 14 Jun 2009 13:12
by Repto
Can you give the URL(s) please? In advance many thanks.
Re: vdpau & vlc
Posted: 14 Jun 2009 13:23
by Repto
Re: vdpau & vlc
Posted: 14 Jun 2009 18:24
by Jean-Baptiste Kempf
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.
Re: vdpau & vlc
Posted: 18 Jun 2009 17:18
by Spulit
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
Re: vdpau & vlc
Posted: 19 Jun 2009 17:24
by Jean-Baptiste Kempf
When I have time.
Re: vdpau & vlc
Posted: 20 Jun 2009 02:12
by ksng
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.
Re: vdpau & vlc
Posted: 20 Jun 2009 11:19
by posthumecaver
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.
Re: vdpau & vlc
Posted: 20 Jun 2009 21:00
by Jean-Baptiste Kempf
no, it is not in the xvideo where you add those flags, but in avcodec.
Re: vdpau & vlc
Posted: 20 Jun 2009 22:21
by posthumecaver
It works, thanks for the tips...
720p , H264, %20 (same as MPlayer with VDPAU) load was before %60-%70....
Thx for the tips...
Re: vdpau & vlc
Posted: 21 Jun 2009 12:52
by posthumecaver
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.
Re: vdpau & vlc
Posted: 21 Jun 2009 15:01
by Jean-Baptiste Kempf
--enable-matroska
You need libebml and libmatroska.
Re: vdpau & vlc
Posted: 21 Jun 2009 21:45
by posthumecaver
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?
Re: vdpau & vlc
Posted: 22 Jun 2009 00:38
by mc2man
not --enable-matroska , use --enable-mkv
If you get a chance post your complete configure
Re: vdpau & vlc
Posted: 22 Jun 2009 01:13
by posthumecaver
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....
Re: vdpau & vlc
Posted: 22 Jun 2009 11:31
by Jean-Baptiste Kempf
posthumecaver: Does everything works for you now?
Can you make a post of it?