View Full Version : LAV CUVID Decoder - High Quality Hardware decoding for NVIDIA
nevcairiel
16th September 2011, 14:41
Thats really your decision.
You can just disable the internal GPU, and use your NVIDIA. You can also use this "Virtu" software which switches the GPU depending on workload.
Whats the best decoder for you is rather subjective. :)
italospain
16th September 2011, 16:06
@nev
I will be buying a used z68 motherboard and i7 2600k cpu next week. From what I had read with the new generations of chipsets and processors, they have built-in GPU. I have GTX 560 Ti GPU. My question is, where will I connect my display then? And what is the best decoder for me, LAV CUVID or LAV Video? Thanks in advance.
I have a NVIDIA Optimus Notebook and i am forced to use LAV Video to get advanced hardware deinterlacing. LAV CUVID doesnt work because Optimus dont let you connect your Display to your NVIDIA hardware.
sneaker_ger
16th September 2011, 19:41
I have a NVIDIA Optimus Notebook and i am forced to use LAV Video to get advanced hardware deinterlacing. LAV CUVID doesnt work because Optimus dont let you connect your Display to your NVIDIA hardware.
Are you sure?
0.8 - 2011/06/05
- Support for using NVIDIA GPUs which have no connected display
CruNcher
16th September 2011, 21:43
Thats really your decision.
You can just disable the internal GPU, and use your NVIDIA. You can also use this "Virtu" software which switches the GPU depending on workload.
Whats the best decoder for you is rather subjective. :)
Yep thx to NT 6 making this possible though the mega craziest thing would be using everything together and combine the available hardware resources ;)
So for instance doing multiple HD Decodings utilizing both DSPs Intels @ Nvidias @ the same time or using Nvidias Shader performance to record the DWM and send those data for Encoding to Quicksync :D
italospain
16th September 2011, 21:58
Are you sure?
0.8 - 2011/06/05
- Support for using NVIDIA GPUs which have no connected display
Support doesnt mean you get advanced hardware deinterlacing
I would like to know if there is hope for Optimus User to get rid of this limitation.
ageback
20th September 2011, 12:54
My Video Card chip is GeForce 9300(Integrated with Motherboard).
I installed CUDA toolkit 3.2 and Developer Drivers for WinVista and Win7 (263.06).
Then I try to compile LAVCUVID,but errors reported:
2>src\LAVCUVID.cpp(616): error C2065: “CU_CTX_SCHED_BLOCKING_SYNC”: Undefined identifier ( 未声明的标识符)
2>src\LAVCUVID.cpp(653): error C2065: “CU_CTX_SCHED_BLOCKING_SYNC”: Undefined identifier ( 未声明的标识符)
What else should I do to compile it successfully?
roozhou
20th September 2011, 20:06
My Video Card chip is GeForce 9300(Integrated with Motherboard).
I installed CUDA toolkit 3.2 and Developer Drivers for WinVista and Win7 (263.06).
Then I try to compile LAVCUVID,but errors reported:
2>src\LAVCUVID.cpp(616): error C2065: “CU_CTX_SCHED_BLOCKING_SYNC”: Undefined identifier ( 未声明的标识符)
2>src\LAVCUVID.cpp(653): error C2065: “CU_CTX_SCHED_BLOCKING_SYNC”: Undefined identifier ( 未声明的标识符)
What else should I do to compile it successfully?
Install CUDA toolkit 4.0
nevcairiel
20th September 2011, 20:08
Hm yeah, i think they renamed that symbol in 4.0
Anyhow, this will be all irrelevant when i'm done integrating LAV CUVID into LAV Video.
Xaurus
20th September 2011, 20:28
Hm yeah, i think they renamed that symbol in 4.0
Anyhow, this will be all irrelevant when i'm done integrating LAV CUVID into LAV Video.
Ohh, so when's Christmas coming this year? :D
nevcairiel
20th September 2011, 20:29
In december, like every year, doh.
ageback
20th September 2011, 23:04
Hm yeah, i think they renamed that symbol in 4.0
Anyhow, this will be all irrelevant when i'm done integrating LAV CUVID into LAV Video.
Do you mean I shoud use toolkit 3.2?
But why that error occured?
ageback
20th September 2011, 23:18
After installing toolkit 4.0(both 32 and 64bit) I built win32 version successfully.
But x64 failed.Error report:
1>------ 已启动生成: 项目: LAVCUVID, 配置: Release x64 ------
1>LINK : fatal error LNK1181: 无法打开输入文件(cannot open input file)“cuda.lib”
========== 生成: 成功 0 个,失败 1 个,最新 1 个,跳过 0 个 ==========
EDIT:
At last I copied cuda.lib and nvcuvid.lib from SDK's lib folder to J:\lavcuvid\bin_x64\lib\ and I built x64 successfully.
sixor
24th September 2011, 01:06
this vid does not work ok, it all goes in fast motion crazy
General
Complete name : C:\Users\Maodesk\Desktop\Alexandra Stan - Mr. Saxo Beat HD 1080p HD(RaHuL {tHe HuNk})[Silver RG].mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 20.7 MiB
Duration : 3mn 13s
Overall bit rate : 898 Kbps
Writing application : Lavf53.6.0
Video
ID : 1
Format : MPEG-4 Visual
Format profile : Simple@L1
Format settings, BVOP : No
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Codec ID : 20
Duration : 3mn 13s
Bit rate mode : Constant
Bit rate : 765 Kbps
Width : 640 pixels
Height : 360 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.133
Stream size : 17.7 MiB (85%)
Writing library : Lavc53.10.0
Audio
ID : 2
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Mode : Joint stereo
Mode extension : MS Stereo
Codec ID : 6B
Duration : 3mn 13s
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 2.95 MiB (14%)
Writing library : LAME3.98.4
TheShadowRunner
25th September 2011, 06:30
Nev, I found a h264 stream that LAV CUVID doesn't seem to like at all / a CUDA decoding peformance issue.
http://www.megaupload.com/?d=A8BZORB1 (a 50 MB slice)
When decoding with CoreAVC 2.5.5 + CUDA (active, green icon), it runs perfect, please see: pic1 (http://videoff7.free.fr/bbccore.png).
When switching only the decoder in the chain to LAV CUVID, it's jerky, about 1 "rendering glitch" per second, please see: pic2 (http://videoff7.free.fr/bbccuivd.png).
Since they both use CUDA (confirmed by CPU 0-4%), how can this difference be explained?
The source is progressive.
Later,
TSR
nevcairiel
25th September 2011, 08:54
Try switching LAV CUVID into YV12 output mode, maybe that makes a difference? (CoreAVC outputs YV12)
Not sure why they would cause this, maybe madVRs NV12 input isn't working 100% properly.
I'll check the file when i get a chance.
Edit:
I just tried, and i get the same amount of glitches no matter which decoder i use. But its far less then you described, maybe 10 over the whole file.
Rendering times are the same for both.
Try turning off HQ DXVA processing and see if that makes a difference for you? (If you had it on, that is)
TheShadowRunner
25th September 2011, 09:39
Thanks for your answer.
No change if I set LAV CUVID to output YV12 instead of NV12.
And I had HQ DXVA off to begin with. (XP)
It's strange, it's the unique stream I came upon that exhibits this high number of madVR glitches with LAV CUVID. It happens consistently.
When I use CoreAVC, I have 0 glitches at all due to the decoder.(those 6 glitches on the CoreAVC pic are due to madVR's going in FSE.)
When I use other streams with LAV CUVID, no glitches either..
pankov
25th September 2011, 15:03
TSR,
I've tried your sample and I don't get any glitches but I've tweaked madVR a bit to prevent glitches - I've enabled "use a separate device for presentation" and "overshoot max frame latency" but these are only for Vista/Win 7 so I'm not sure if that helps you at all.
TheShadowRunner
25th September 2011, 21:29
pankov, thanks for the suggestion.
I've tried to enable "run presentation in a separate thread" / "limit rendering times to avoid glitches" (the last option has indeed no effect on XP) on madVR, but no difference either.
It seems LAV CUVID is just chocking on this specific 1080p/30.000fps stream.
Again with CoreAVC's CUDA, playback is perfect, without the need to enable any of the "glitch free playback" madVR features either.
Strange..
Xaurus
25th September 2011, 23:19
It seems LAV CUVID is just chocking on this specific 1080p/30.000fps stream.
With LAV CUVID I get no dropped frames, no delayed frames and no presentation glitches with this clip, or in other words: everything's OK.
TheShadowRunner
26th September 2011, 23:34
With LAV CUVID I get no dropped frames, no delayed frames and no presentation glitches with this clip, or in other words: everything's OK.
Thanks for testing. I still use a Haali splitter, starting to wonder if it makes any difference...
Xaurus
29th September 2011, 17:17
This from the man himself...
LAV Filters 0.36
LAV Splitter
- Improved support for ADTS AAC
- Fixed MPEG-2 timestamps in VOB
- Fixed MPEG-2 frame rate reporting for telecined/interlaced
LAV Video
- Integrated NVIDIA CUVID Hardware decoder
- Performance enhancements in 10bit decoding
- Support for Flash Screen Video (FSV1)
- Support for Apple ProRes
- Improved MPEG-2 playback
- Improved A/V sync with VC-1 and MPEG4-ASP
Note that LAV CUVID will basically be discontinued now, all its functionality is available through LAV Video. Only missing is MPEG4-ASP decoding through CUVID, but i don't believe the extra effort is really worth it.
mkanet
10th October 2011, 21:34
On my previous PC using Vista, I was never able to use LAV CUVID. No matter what I did, I couldnt connect an directshow pins to it. I was using an Nvidia 8500GT and latest possible WHQL tested drivers.
I now have a new PC using an Nvidia 545GT under Windows 7 64bit.
I installed the 32bit LAV splitter as well as 32bit LAVCUVID filters using their respective installers. Surprisingly, I see the same problem as on a completely different PC and setup. At this point, I'm presuming there is something I'm doing wrong.
All I did was installed LAVCUVID filter and in the properties, I selected all the file formats I want it to use, selected 50/60 frame rate, to use high quality decoding, and AR correction.
Now, I can connect the source file to LAVCUVID; but I can't connect LAVCUVID to anything else. It wont connect to EVR, VMR9 or anything else.
What am I doing wrong?
mkanet
10th October 2011, 21:42
Even after I connect LAVCUVID to the source file, when I select the prop page for it, all the settings are missing (even after I make the settings changes). What do I need to do for LAVCUVID to start working on a machine with all the necessary hardware and drivers?
I can find any instructions one what to do to get started.
http://i67.photobucket.com/albums/h283/mkanet/th_LAVCUVID.jpg (http://i67.photobucket.com/albums/h283/mkanet/LAVCUVID.jpg)
TheShadowRunner
10th October 2011, 21:47
hey mkanet, first, drop LAV CUVID and install LAV Video Decoder (from the LAV Filters 0.37 pack).
LAV CUVID is now integrated into LAV Video Dec.
The standalone LAV CUVID is pretty much discontinued.
Hopefully it works, otherwise see you on the other thread ;)
mkanet
10th October 2011, 21:52
Yes, I saw the news. I would still like this filter to work since I saw this same behavior on a completely different machine. I know other people have made this work and I'm doing something wrong. I would prefer to use this filter. Hopefully someone can help me just as if I asked this question a few weeks ago.
Thanks!!
hey mkanet, first, drop LAV CUVID and install LAV Video Decoder (from the LAV Filters 0.37 pack).
LAV CUVID is now integrated into LAV Video Dec.
The standalone LAV CUVID is pretty much discontinued.
Hopefully it works, otherwise see you on the other thread ;)
TheShadowRunner
10th October 2011, 22:08
Ah ok. But sorry I won't be of much help as I'm on XP and the issue seem to be permission related to me (empty decoder settings page hmm..).
Maybe you could try GraphStudio instead of Graphedit..
Also, do you have the latest directx runtimes (http://www.microsoft.com/download/en/details.aspx?id=35)installed?
mkanet
10th October 2011, 22:46
Thanks so much. It really doesnt make any sense why it does the same thing on completely two separate operating systems. I have the latest Directx runtimes already (from June). Graphstudio does the same thing as Graphedit.
I noticed in the settings page, it says LAV CUVID Decoder x.xx
Surely, someone has to have seen this out of all the users who have used this filter. This occurs even on a brand new extremely clean installation of Windows 7 64bit. I am using the 32bit bit version of both LAV splitter and LAV CUVID.
When this used to happen under Vista32 and my Geforce 8500GT, I thought it might be because I have a corrupted system component. However, when the same thing happens on a different machine, I know its something to do with how LAV CUVID works.
Where does LAVCUVID store it's settings? Maybe it has broken settings. I noticed that it stopped connecting to the EVR renderer after I saved my settings in LAVCUVID.
Ah ok. But sorry I won't be of much help as I'm on XP and the issue seem to be permission related to me (empty decoder settings page hmm..).
Maybe you could try GraphStudio instead of Graphedit..
Also, do you have the latest directx runtimes (http://www.microsoft.com/download/en/details.aspx?id=35)installed?
TheShadowRunner
10th October 2011, 22:52
LAV stores its settings in HKCU\Software\LAV
It's an uncommon issue indeed..
mkanet
10th October 2011, 23:11
My display adapter even has the highest specifications that LAVCUVID can even support. So, there's no chance that I have inadequate hardware or software.
I will try the new LAV Video filter. I am guessing it has all the CUDA features that LAVCUVID has...
LAV stores its settings in HKCU\Software\LAV
It's an uncommon issue indeed..
golagoda
12th October 2011, 13:57
My display adapter even has the highest specifications that LAVCUVID can even support. So, there's no chance that I have inadequate hardware or software.
I will try the new LAV Video filter. I am guessing it has all the CUDA features that LAVCUVID has...
iirc LAV CUVID as a stand alone filter has been superseded by LAV video since it's since been implemented into it.
Triplefun
12th October 2011, 21:15
Thanks for building a great codec
I run LAV on my W7/HTPC and get spectacular results
However, I would also like to use it on my WHS/PS3Mediaserver/PS3/1080p TV. I have added a GTS450 video card to the WHS although 98% of the time it runs headless. The PS3 is connected to the WHS server over a gigabit network.
I initially tried loading the LAV codec using the Shark007 codec pack but could not get it to recognise cuda.
I then loaded LAV 0.37 and found PS3Mediaserver (SB50) recognises it as an FFmpeg codec accessed via AviSynth 2.5.
When playing HD content (VC-1 and H264) I get:
1. lots of video stuttering (Q8400 CPU is running 20%)
2. sound running 3x the video speed
I have tried adding the TMT5 audio codec with no change - can I use the dll that comes loaded with Windows7 and do I need to rename it when I add it to the LAV directory
I have tried changing the LAV and PS3Mediaserver settings without much success. PS3Mediasever seems to run best (least stuttering) when I set:
1. the LAV video output format settings to 16 bit only
2. the LAV video display mode 25p/30p
3. the LAV deinterlacing algorithm 'none'
4. PS3Mediaserver 'lossless quality'
What more can I do to get the video and audio playing properly ?
Also when I go 'headless' GPU-Z shows the CUDA processing is not available - how do I get CUDA to run headless ?
Mixer73
12th October 2011, 23:41
Also when I go 'headless' GPU-Z shows the CUDA processing is not available - how do I get CUDA to run headless ?
You need to either connect it to an input on your TV that you are not using, or create a dummy plug which is just some resistors on 3 pins of a VGA socket.
BatKnight
13th October 2011, 11:15
Since LAV CUVID is now part of LAV Filters, I think that this thread should be closed.
Further discussion would be done on the LAV Filters' thread. This would prevent dispersion of information.
What do you think, nevcariel?
Bat
THX-UltraII
15th October 2011, 19:19
whats the mowt recommended card to use with LAV CUVID to get the best PQ?
Portioli
16th October 2011, 00:42
440 1GB GDDR5 is the minimum Requirement for MAx Settings.
Many people have reported than they play even with a 430 with memory GDDR3@1600 without problems
TPoise
16th October 2011, 17:47
Might be too late, but is it possible to keep the LAV CUVID filter seperate from the other filters? For us notebook users who have two GPUs, installing filter packs can be incredibly troublesome.
LAV CUVID is great on my machine. Normal DXVA on my GT525M shows about 20% GPU usage on any 720p or 1080p movie. With LAV CUVID, usage goes down to 8-9%. This helps to reduce my power requirements and thus I can get longer battery life and my GPU fan doesn't ramp up either.
pankov
16th October 2011, 17:57
TPoise,
don't be so sure that you are actually reducing power usage when using LAV CUVID Decoder. Measure it to be sure. In general video cards have higher TDP than CPUs and if the card jumps into higher power state (even only P8 (video decoding)) it may happen that it's actually using more power - only not through the CPU.
Andy o
16th October 2011, 17:57
It's not an actual "filter pack", but anyway just install LAV video if you want.
Andy o
16th October 2011, 18:01
TPoise,
don't be so sure that you are actually reducing power usage when using LAV CUVID Decoder. Measure it to be sure. In general video cards have higher TDP than CPUs and if the card jumps into higher power state (even only P8 (video decoding)) it may happen that it's actually using more power - only not through the CPU.
This is true but not exactly his problem, he's comparing DXVA with CUVID. The actual problem there is that DXVA locks at P8 while CUVID ramps it up to P0, that's probably why he sees less GPU usage.
rica
16th October 2011, 23:22
since lav cuvid is now part of lav filters, i think that this thread should be closed.
Further discussion would be done on the lav filters' thread. This would prevent dispersion of information.
What do you think, nevcariel?
Bat
+1
_ _ _ _ _
Nicola
18th October 2011, 16:24
mmm, I noticed I have issue seekinh with videos with 9 / 16 ref frames, the image disappears. I'm using cpu decoding and I hardly hit 20%, so I can't understand. Can someone help please?
Nicola
18th October 2011, 16:25
mmm, I noticed I have issue seeking with videos with 9 / 16 ref frames, the image disappears. I'm using cpu decoding and I hardly hit 20%, so I can't understand. Can someone help please?
rica
20th October 2011, 00:40
Nicola, you are welcome but repetition of the same post doesn't mean you gonna get the right answer immediately.
Nicola
20th October 2011, 07:10
oooops, I didn't noticed I made 2 post... well, how I delete one? wait for a mod?
Andy o
20th October 2011, 11:22
There are several things on your short post that might not make people too eager to bother helping you: You're using CPU decoding, this is the LAV CUVID thread. Second, you didn't bother to read even the last few posts, in this very page. LAV CUVID has been integrated with LAV Video, so go to the LAV filters thread if you decide LAV CUVID decoding is the problem, which since you're using CPU decoding, it's probably not. And third, you don't list anything relevant for people to be able to help you. Player? Filters? OS? GPU? CPU? etc, etc.
Nicola
20th October 2011, 12:52
ok, ok, scrap those post of mine, I'll ask in the proper thread instead.
Dogway
27th October 2011, 19:13
Nvidia 9600M GT - driver 267.24 beta
Core2Duo 2.53 T9400 1066FSB. 4Gb DDR3 533Mhz
Laptop WinXP SP3 x86
Another up to date of my post (http://forum.doom9.org/showthread.php?p=1499497#post1499497) of decoding speeds for different decoders. Just after a reformat of a very optimized WinXP.
Using the AVC sample of yesgrey's post (http://forum.doom9.org/showthread.php?p=1493275#post1493275). Using graphstudio, and LAVSplitter 0.37.
All in weave. 3 passes
ffdshow libavcodec @ 30fps 52.7 fps
LAVCUVID 0.13 @ 60fps 15.2 fps
LAVCUVID 0.13 @ 30fps 39.26 fps
Lincoln Burrows
2nd November 2011, 17:49
This thing is amazing! I can finally watch VC-1 videos with no lag!
But how can we adjust the brightness/contrast for example? I am using Media Player Classic Home Cinema.
My video card is 8800 GTS 512 MB EVGA/Geforce.
oddball
2nd November 2011, 18:53
This thing is amazing! I can finally watch VC-1 videos with no lag!
But how can we adjust the brightness/contrast for example? I am using Media Player Classic Home Cinema.
My video card is 8800 GTS 512 MB EVGA/Geforce.
In two words. You don't. Really your display should be correctly calibrated to begin with.
Lincoln Burrows
2nd November 2011, 21:32
In two words. You don't. Really your display should be correctly calibrated to begin with.That's right! I completely missed the fact that I don't need ffdshow (Video Decoder) settings or to adjust this everytime I watch a video (that can't use ffdshow), it was a matter of simply configuring NVidia's control panel to not let the players to do the job, but use Nvidia settings.
At first I believed that the settings used for my desktop and players were not apart from each other. So if I changed the contrast used for Firefox for example I would be changing what I see watching a video. That's not the case, what I have configured for the rest (in this case, using the monitor buttons) remains the same and what I have configured here is only valid for MPC-HC/etc:
http://i.imgur.com/FVP76.png
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.