View Full Version : LAV Filters - DirectShow Media Splitter and Decoders
nevcairiel
5th April 2012, 15:36
:sly:Why PotPlayer do that?
Because its evil. :o
CruNcher
5th April 2012, 15:42
Maybe it makes the keys itself and if it doesn't find them in their own key registry system (look in the player for associations) it deletes them on start thinking you never wanted to have them (only thinking in their own application space), would be illogical though todo that this way it's like forcing a browser as standard without asking the user ;)
wanezhiling
5th April 2012, 15:54
So I should do something.. Hope they'll give a logical explanation tomorrow Friday.:o
BetA13
5th April 2012, 15:57
Hy all again,
i just tryed that "Ducks take off" quad HD video...Isnt it supposed to get rendered via teh GPU (CUVID) ?
Cause when i test it, it uses AVCODEC via CPU, all 4 cores @ 100% = 2 FPS...:(
i did set up LAV Filters liek they should..im using a gtx460 here and win 7.
anyone can help me out here? Or isnt CUVID supporting quad hd thingy?
Thanks for any Help...
greetz BetA
edit:
heres a screen of it...its the same with EVR as output...
http://i.imgur.com/27NBX.png
nevcairiel
5th April 2012, 15:58
The GTX 460 does not support QHD (4K)
You need a VP5 card (VDPAU Feature Set D), right now thats only the GT 520 and the GTX 680, and some mobile cards.
PS:
You must have an incredibly slow CPU if you can only get 2 FPS out of it. o.O
BetA13
5th April 2012, 16:06
The GTX 460 does not support QHD (4K)
You need a VP5 card (VDPAU Feature Set D), right now thats only the GT 520 and the GTX 680, and some mobile cards.
PS:
You must have an incredibly slow CPU if you can only get 2 FPS out of it. o.O
well..my cpu isnt slow at all..its old but still rocking the Battlefield, ehhe..
Q9550 @ 3.8 GHZ...
should i have more FPS? When the ducks take off and the water starts to ripple, then the frames go to 1-3 FPS...Before that, when the water is still, i have around 20 fps....
And thank u for teh fast Answer :)
kalston
5th April 2012, 17:06
I think you should have more FPS yes. Tried fullscreen exclusive mode? Windowed stutters a bit for me (i5 2500k@4.5ghz) but exclusive (old path) is butter smooth. 36% CPU usage, never used CUVID but I don't think 4k would work on my GTX 275.
DragonQ
5th April 2012, 17:16
I can play that quad HD video using software decoding on my i7-920 @ 3.8 GHz with MadVR. CPU usage is ~85% though and it's not smooth all the way through (doubled/dropped frame once or twice during the 17 seconds).
I also have to open it in MPC-HC (which auto-plays it), then stop it and manually start playing it again otherwise I get like 1 FPS. Might be cos it's on a network share and not a local drive.
BetA13
5th April 2012, 17:20
I think you should have more FPS yes. Tried fullscreen exclusive mode? Windowed stutters a bit for me (i5 2500k@4.5ghz) but exclusive (old path) is butter smooth. 36% CPU usage, never used CUVID but I don't think 4k would work on my GTX 275.
using exclusive mode here also..
i tried teh 1080p one, and it uses CUVID there, but when the ripple starts teh gpu usage goes down and also the FPS..i dont really understand..i can playback 1080p Game videos from Fraps, etc..with a much higher bitrate..and that smooth...
Could u please PM me or post here ur settings in MADVR, LAV and mpchc? maybe i have set something wrong here...
greetings, BetA
chros
5th April 2012, 17:40
well..my cpu isnt slow at all..its old but still rocking the Battlefield, ehhe..
Q9550 @ 3.8 GHZ...
should i have more FPS?
Try with different renderer, like EVR or EVR CP. I think MadVR is eating up your GPU via resizing ...
BetA13
5th April 2012, 17:45
Try with different renderer, like EVR or EVR CP. I think MadVR is eating up your GPU via resizing ...
Its the same, with EVR etc...only diff is that MADVR looks way better..
but its only with the ducks take off MKV..no matter if quad HD or 1080p. i tested my AVATAR Blueray (50GB) and this one is super smooth with 100fps+ (56% GPU Usage @ 405mhz GPU) (2% CPU Usage)
kalston
5th April 2012, 18:00
My settings:
In LAV I got the same as you (except I only use software decoding and ordered dithering).
In madVR : downscaling (that should matter with 4k on a 1080p display) http://i.imgur.com/i4wZB.png
general : http://i.imgur.com/KcZ1U.png (I never have Aero ON)
exclusive mode : http://i.imgur.com/901YL.png I use the same flush settings in windowed mode (with the default ones I had performance issues with some high fps files)
and last: http://i.imgur.com/CUDld.png
It seems that 4k playback is sometimes a little buggy in MPC when I switch from windowed to fullscreen and vice versa, so the most reliable way for me is to pause, go fullscreen and then restart the playback.
Windowed actually only struggles at the beginning of the file you're using, it's smooth past the early seconds. On my other 4k sample I got (life in the garden, it's on youtube too), windowed never struggles and seems to be about as smooth as exclusive (0 dropped/delayed frames).
BetA13
5th April 2012, 18:05
Thanks kalston..
i see we use the same settings..only that i use spline | 4 taps..
Still doesnt change it here... :(
well, as lng as my other stuff is smooth i guess its ok...
Still i cant wrap my head around it..i just hate when something isnt right and i cant figure it out, haha..
greetz BetA
This here (also QUAD HD or even more..)Runs fine here..40 FPS..
Download it from YOutube and use the original size..
http://youtu.be/8lvv4M_AtV8?hd=1
CruNcher
5th April 2012, 18:08
@Nev
http://www.mediafire.com/?4n6j8ut3gv72tql
Lav Splitter = Seek fails
AV Splitter = work
Pat357
5th April 2012, 18:14
The DirectShow AVI Decompressor is a decoder, it should work in conjunction with any splitter. If you use the MS AVI Splitter or LAV Splitter should not matter.
If something works with the MS AVI Splitter and not with LAV, then thats a bug and should be handled as such.
Nev,
I've done some more testing with the HYMT in AVI, and here is what I found :
1. LAV splitter source --> not working, because it can't load the file. I tried also in graphstudioNext and there it also fails to load the file.
Is this because of the "unknown codec" from the stream inside the AVI ?
2. LAV-splitter also fails because it won't connect to the "File Source (Async)". Same result in GraphstudioNext.
Here are the results from different sources/splitters I've tested :
LAV-splitter-source --> FAILS (reason see above)
File Source + LAV-splitter --> FAILS (reason see above)
Haali HMS --> plays fine
File Source + HMS (AR) --> plays fine
File Source + MPC AVI-splitter --> plays fine
AV source + AVI decompresser --> plays fine
File source + AV-splitter + AVI decompresser -> plays fine
It seems like a source-splitter like Haali doesn't care about the unknown codec, it just splits the AVI container and passes the FourCC to the decoder, in this case AVI decompresser.
For LAV splitter and LAV splitter-source, it seems that the "unknown codec" makes that they will not even connect/ or will not even load the file...
Is the codec from the compression a condition in LAV-splitter-(source) to make even a connection to a previous filter or even to load a file or not ?
I created a new sample for you in case you want to look at it :
http://www.mediafire.com/?3nejf9pak972lb7
or
http://www.mediafire.com/file/3nejf9pak972lb7/huffyuv_mt_HYMT.7z
(note : to be able to play the file, you need the Huffyuv_mt compressor/decoder package : see http://forum.doom9.org/showthread.php?p=1566451#post1566451)
nevcairiel
5th April 2012, 18:43
@Nev
http://www.mediafire.com/?4n6j8ut3gv72tql
Lav Splitter = Seek fails
AV Splitter = work
Fixed
nevcairiel
5th April 2012, 19:29
1. LAV splitter source --> not working, because it can't load the file. I tried also in graphstudioNext and there it also fails to load the file.
Is this because of the "unknown codec" from the stream inside the AVI ?
2. LAV-splitter also fails because it won't connect to the "File Source (Async)". Same result in GraphstudioNext.
I fixed it so that it'll not fail completely and offer the unknown codec to an decoder.
I did however not test with the actual decoder, didn't feel like installing it.
If you want, test with this:
http://files.1f0.de/lavf/LAVFilters-0.50.1-19-gb79b609.zip
DragonQ
5th April 2012, 19:38
Nev,
There's quite a lot of issues with seeking in TS-Doctor when using LAV Splitter. Haali Splitter works fine but doesn't support LATM AAC, which makes it useless for dealing with UK Freeview HD broadcasts. Basically jumping forward or backwards a single frame only sometimes works, jumping forwards or backwards to the nearest I-frame sometimes works...basically it's just flaky.
Do you know if this is just something inherent to how LAV Splitter works (designed for playback and not frame-accurate seeking) or if it's maybe fixable?
Thanks.
nevcairiel
5th April 2012, 20:11
Thats something inherent to how TS files work. They are not meant for random access. Its a broadcast/streaming format.
While doing frame accurate seeking in TS file is possible with a lot of effort, its not in my focus.
Patches welcome. :p
PS:
If your app there uses a seek to jump one frame forward, its just broken. It should just read one more frame. :)
Of course backward is another matter.
DragonQ
5th April 2012, 20:15
Aww OK. Thanks for the quick reply.
Pat357
5th April 2012, 21:04
I fixed it so that it'll not fail completely and offer the unknown codec to an decoder.
I did however not test with the actual decoder, didn't feel like installing it.
If you want, test with this:
http://files.1f0.de/lavf/LAVFilters-0.50.1-19-gb79b609.zip
Thanks a lot for fixing it !
I just tested it and it works perfect. :D
Please include this changes also in your next release version.
nevcairiel
5th April 2012, 21:05
Just to clarify a bit on the seeking situation.
Personally, i really only use LAV to actually watch stuff. I don't do editing or encoding, so i don't need any fancy features for that.
IMHO, seeking is working well enough for simple watching. It could probably be a bit better in some situations, but overall its not completely awful (iow. "good enough")
Now the problem is, i'm the only developer working on the project, and there is more things to do then i have time for, and my main motivation comes from doing things that i find interesting and challenging.
In the end, that means i work on things that either i want to use myself, or that i think would be fun working on.
I have always been open to someone else contributing, but so far i've only maybe gotten 1-2 very minor patches.
If someone wants to improve parts of LAV that i personally don't focus on (like frame accurate seeking), and has the expertise to do so, i would be happy to help getting him (or her) started and assist in their work.
So, thats that.
CruNcher
5th April 2012, 22:27
Nev,
There's quite a lot of issues with seeking in TS-Doctor when using LAV Splitter. Haali Splitter works fine but doesn't support LATM AAC, which makes it useless for dealing with UK Freeview HD broadcasts. Basically jumping forward or backwards a single frame only sometimes works, jumping forwards or backwards to the nearest I-frame sometimes works...basically it's just flaky.
Do you know if this is just something inherent to how LAV Splitter works (designed for playback and not frame-accurate seeking) or if it's maybe fixable?
Thanks.
Mainconcept can do it too very accurate but as Nev said it's a lot of work and for normal playback not usable @ all :)
DragonQ
5th April 2012, 23:10
Mainconcept can do it too very accurate but as Nev said it's a lot of work and for normal playback not usable @ all :)
Well the reason I wanna use LAV Splitter is that it supports LATM AAC. Are there any splitters that support frame-accurate seeking in TS files and also LATM AAC?
kolak
5th April 2012, 23:53
Any reason why dragging ProRes MOV to graphstudio does not build video decoding chain automatically?
I have to add lav video decoder manually. This causes one of my tools not working, as it build graph automatically.
It works fine on my other PC. Tried reinstalling LAV filters, but no luck :(
Sebastiii
6th April 2012, 00:17
Just to clarify a bit on the seeking situation.
Personally, i really only use LAV to actually watch stuff. I don't do editing or encoding, so i don't need any fancy features for that.
IMHO, seeking is working well enough for simple watching. It could probably be a bit better in some situations, but overall its not completely awful (iow. "good enough")
Now the problem is, i'm the only developer working on the project, and there is more things to do then i have time for, and my main motivation comes from doing things that i find interesting and challenging.
In the end, that means i work on things that either i want to use myself, or that i think would be fun working on.
I have always been open to someone else contributing, but so far i've only maybe gotten 1-2 very minor patches.
If someone wants to improve parts of LAV that i personally don't focus on (like frame accurate seeking), and has the expertise to do so, i would be happy to help getting him (or her) started and assist in their work.
So, thats that.
+1 and thanks for your work :)
Personaly i'm not enough strong but i hope that a good dev can supply patch for whatever :)
I/We really appreciate your LAV Suite :)
Cheers.
CruNcher
6th April 2012, 00:21
It's one of the major differentiators also for ffmpeg the day it will support frame accuracy could be troublesome for some other products, and most good devs able to implement it would most probably even hurt themselves, so why not just leave it how it is ;)
@Nev
dxva mbaff issues it seems
http://www.mediafire.com/?iom08m712fa01xt
Lav Video DXVA = heavily fails green screen echo
MPC-HC DXVA = works better only 1 glitch @ the start
Potplayer DXVA = same 1 glitch as MPC-HC
VLC GIT DXVA= Catastrophe
good old friend ;)
http://www.mediafire.com/?ri4sdpjlafxxrry
Lav Video DXVA = green screen
MPC-HC DXVA = no issues
Potplayer DXVA = no issues
VLC GIT DXVA = parser fails
betaking
6th April 2012, 04:15
TO NEV can not compile last GIT!
1>LINK : fatal error LNK1181: 无法打开输入文件“avformat-lav.lib”
1>已完成生成项目“C:\lavfsplitter\decoder\LAVAudio\LAVAudio.vcxproj”(rebuild 个目标)的操作 - 失败。
1>LINK : fatal error LNK1181: 无法打开输入文件“avformat-lav.lib”
1>已完成生成项目“C:\lavfsplitter\demuxer\LAVSplitter\LAVSplitter.vcxproj”(rebuild 个目标)的操作 - 失败。
1>LINK : fatal error LNK1181: 无法打开输入文件“avutil-lav.lib”
1>已完成生成项目“C:\lavfsplitter\decoder\LAVVideo\LAVVideo.vcxproj”(rebuild 个目标)的操作 - 失败。
CruNcher
6th April 2012, 06:40
@Nev
Microsofts DTV Decoder never fails on Intel with H.264 and DXVA it seems it has not 1 of the issues the other DXVA implementation show, not even with the heaviest Ref Frames, hmm or is Intel tunneling it through Quicksync ;)
Funny i think they do it shows the same decoding issue on exactly the same frame in decodinerror.ts as the Quicksync API, where DXVA implementations generally show no issue or like Lav Video DXVA different for the whole stream :)
Mercury_22
6th April 2012, 07:35
@Nev just FYI after latest changes from "git clone git://git.1f0.de/lavfsplitter.git" I'm getting "lavfsplitter" (it was lavfilters before) and from https://code.google.com/p/lavfilters/ I'm getting lavfilters:p
P.S. No more failed though ;)
nevcairiel
6th April 2012, 08:15
The repository is named as it always has been, you must be doing something wrong. :p
Mercury_22
6th April 2012, 08:33
The repository is named as it always has been, you must be doing something wrong. :p
I'm using git clone git://git.1f0.de/lavfsplitter.git as I've always used :confused:
C:\Users\Administrator>cd\
C:\>git clone git://git.1f0.de/lavfsplitter.git
Cloning into 'lavfsplitter'...
remote: Counting objects: 12888, done.
remote: Compressing objects: 100% (7810/7810), done.
remote: Total 12888 (delta 8726), reused 7102 (delta 4827)
Receiving objects: 100% (12888/12888), 4.78 MiB | 681 KiB/s, done.
Resolving deltas: 100% (8726/8726), done.
C:\>cd C:\LAVFilters
The system cannot find the path specified.
C:\>git submodule update --init
fatal: Not a git repository (or any of the parent directories): .git
C:\>Pause
Press any key to continue . . .
nevcairiel
6th April 2012, 08:34
the name of the repository specifys the name of the folder it creates, so since i never renamed it, it would always have created a "lavfsplitter" folder.
Mercury_22
6th April 2012, 08:39
the name of the repository specifys the name of the folder it creates, so since i never renamed it, it would always have created a "lavfsplitter" folder.
I haven't change my bat file so I'm sure it was LAVFilters
BUT it's not important ;)
wanezhiling
6th April 2012, 08:39
So I should do something.. Hope they'll give a logical explanation tomorrow Friday.:o
http://i.imgur.com/tKQfs.png
:o...
Sebastiii
6th April 2012, 09:15
the name of the repository specifys the name of the folder it creates, so since i never renamed it, it would always have created a "lavfsplitter" folder.
For me it create "lavfsplitter" folder :)
egur
6th April 2012, 12:11
@Nev
Microsofts DTV Decoder never fails on Intel with H.264 and DXVA it seems it has not 1 of the issues the other DXVA implementation show, not even with the heaviest Ref Frames, hmm or is Intel tunneling it through Quicksync ;)
Funny i think they do it shows the same decoding issue on exactly the same frame in decodinerror.ts as the Quicksync API, where DXVA implementations generally show no issue or like Lav Video DXVA different for the whole stream :)
Microsoft DTV Decoder most likely uses DXVA2.
It might use low level DDI calls but that would make very little sense.
The DTV decoder probably initializes the DXVA device differently somehow. It may also parse SPS/PPS headers for errors and try to recover them.
Part of the QuickSync feature set is exposed via the DXVA2 API (decode, vpp), the rest (encode) is done via DDI calls as DXVA2 doesn't support encode.
There's no official QuickSync API. The APIs used under Windows are Media SDK, DXVA2, DDI.
Pat357
6th April 2012, 17:11
Nev,
Minor issue, but anyway :
What is the active decoder ?
http://www.mediafire.com/conv/d42e3a4e7c4964476737d057b035fb5f262fe19a0a94eeab30e87949f47261366g.jpg
or
http://www.mediafire.com/i/?lg2l58qdrfb5c0v
nevcairiel
6th April 2012, 17:13
Obviously DXVA2 Native is active, as indicated by the active decoder text.
The "Active" text just shows if a hardware decoder is currently active. It would be kind of hard to change that behavior, because the function that supplys that data is needed elsewhere as well.
I could remove that "Active" mode and just make it show "Available" like in config when not playing something, if its confusing people. :P
Alexey1975
7th April 2012, 09:02
I could remove that "Active" mode and just make it show "Available" like in config when not playing something, if its confusing people. :P
It would be very useful if the LAV Video decoder appeared to tab "Info", which would have displayed information about the decoded stream, such as input/output color space, frame rate, codec profile, resolution, etc. - more is better!
chuuey
7th April 2012, 12:22
isn't there such information in mpc-hc anyway? Unless you don't use that ;)
kalston
7th April 2012, 13:40
In mpc-hc yeah, but not in JRiver for example :(
STaRGaZeR
7th April 2012, 13:43
It would be very useful if the LAV Video decoder appeared to tab "Info", which would have displayed information about the decoded stream, such as input/output color space, frame rate, codec profile, resolution, etc. - more is better!
+1 on the info tab.
wanezhiling
7th April 2012, 17:13
http://www.mediafire.com/?6l48hj5frbmjr06
48:
MPC-HC SW (http://i.imgur.com/WDhCs.png)
ffdshow (http://i.imgur.com/awUaV.png)
LAV (http://i.imgur.com/bvRPl.png)
And PotPlayer DXVA, CyberLink DXVA, ArcSoft DXVA are all 48.
24:
MPC-HC DXVA (http://i.imgur.com/gTCL1.png)
ffdshow DXVA (http://i.imgur.com/8RzMJ.png)
CoreAVC hw deinterlacing (http://i.imgur.com/CeYsb.png)
MS DXVA (http://i.imgur.com/Ub6f3.png)
:)
nevcairiel
7th April 2012, 18:05
All the frames in that file are encoded as interlaced, so 48 is the correct thing to do.
wanezhiling
7th April 2012, 18:18
I just wanna an expert to confirm it.
:thanks: a lot.
Mercury_22
7th April 2012, 19:08
Forced subtitles don't work.
Sample (http://www22.zippyshare.com/v/85544593/file.html)
Let me know if you need the other files (e.g. index.bdmv) too
nevcairiel
7th April 2012, 19:31
Forced subtitles don't work.
Sample (http://www22.zippyshare.com/v/85544593/file.html)
Let me know if you need the other files (e.g. index.bdmv) too
The 6th stream in that file is Forced Subtitles only.
Its impossible for LAV to determine this automatically.
The automatic "Forced subtitles" option only works on discs where the forced subs and normal subs are mixed in one stream, and there is no dedicated Forced Subtitle stream. In that case, the subs have a flag if they are forced or not (for every subtitle frame), but if there is a dedicated forced stream, they are no longer flagged.
Mercury_22
7th April 2012, 19:49
The 6th stream in that file is Forced Subtitles only.
Its impossible for LAV to determine this automatically.
The automatic "Forced subtitles" option only works on discs where the forced subs and normal subs are mixed in one stream, and there is no dedicated Forced Subtitle stream. In that case, the subs have a flag if they are forced or not (for every subtitle frame), but if there is a dedicated forced stream, they are no longer flagged.
So if I understand correctly there's no way for that stream to be identified at least in the menu as anything else but simple "English" as the others "English" stream ?
Cause when I'm using DSLibBluray (http://forum.doom9.org/showthread.php?t=164314) I can select only "English" or "English SDH" there's no third "English" stream and the forced subs are working with "None" selected
nevcairiel
7th April 2012, 20:00
The menu obviously knows which track to use for forced subtitles, but that information is deeply hidden in there.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.