View Full Version : LAV Filters - DirectShow Media Splitter and Decoders
powder21
20th May 2012, 10:38
OK. I give up. I've been trying my best to get my uncle's HTPC setup without having to ask any questions (this thread has been a WEALTH of information btw). Unfortunately, I've run into a problem that I cannot find a solution for by using searches...an answer may be here, but I just can't take the time to read all 500 pages. And yes, I have used google extensively :)
When I play my DTS/AC3/Whatever multichannel encoded content without Reclock, it works. Status in the LAV audio shows it's playing back all channels. Problem is, I want WASAPI exclusive. When I try playback using Reclock as the renderer with WASAPI selected for PCM, I'm getting the infamous "audio format not supported by hardware / driver" error. I have 24bit padded to 32 selected and it works fine if I use AC3 to downmix the audio, so I think it has something to do with the fact that in Windows audio properties, max channels is listed as two. This doesn't make any sense to me. I thought maybe it's because the HDMI is plugged directly into the TV...
...That part warrants a bit of explanation. I'm not currently using the VSX-33 reciever we have because we don't have a surround setup yet, but there's a vizio soundbar connected to the TV with an optical audio input and the TV supports up to 7.1 PCM through it's optical audio output. Thus, it shouldn't be telling the HDMI Audio that there's no surround sound device connected...
So, I'm stumped. If somebody can please lend me a hand here I would greatly appreciate it.
On a side note: I see LAV filters gets updated quite frequently. I have experienced a couple crashes which I will try to work out after I get this fixed, but I'm wondering what the best method of updating is without losing any settings. I use the installer method to install. Thanks again.
Some helpful info:
ATI Radeon HD 5750/6750 vid card
GIGABYTE GA-890FXA-UD5 board with RealTek ALC889 onboard chip
Using all latest drivers (updated today) including the Realtek ATI HDMI Audio Driver
Even in Realtek Sound Manager, only stereo shows up under speaker config (for HDMI) and is greyed out. Other output devices have no speaker config I assume because nothing is connected to them.
Using MPC-HC with LAV filters + audio/video decoders as the only filters. Settings mostly match up with the Advanced setup guide on the AVS forum (with a few minor tweaks which shouldn't have any impact on this issue)
Also use MadVR as vid renderer
Absolutely zero other codecs/packs installed (already removed AC3, just used it to test the theory above).
I like minimalistic approaches :)
Better than converting to Islam I guess.
Dude.. no need for that.. thank you.
Mosley
20th May 2012, 11:30
In LAV Splitter I've used the following sintax to enable ENG language and ENG subtitles in "Advanced" mode (I want to exclude forced subs), or ITA subs if ENG subs aren't available:
eng:eng|d;eng:ita|d
or
eng|d;ita|d
But it doesn't work. No sub track is enabled. In "Default" mode the ENG flag always enable forced subs, but I want the full text and not forced subs. I think it's a problem of sintax error. Any advice?
Thanks... ;)
nevcairiel
20th May 2012, 11:41
If you use "Default" mode and just put "eng" into the box, it should always enable full english subs (technically, the first english subtitle stream it finds).
I could probably add some kind of modifier to only use "normal" streams, meaning not-forced and not-default, so you could do say "eng|dn" (normal and default, but not forced)
aufkrawall
20th May 2012, 12:04
Its working as intended, from where i'm standing.
I think so too.
Converting to Rec709 matrix with Avisynth is always a good idea for such videos.
Mosley
20th May 2012, 16:02
If you use "Default" mode and just put "eng" into the box, it should always enable full english subs (technically, the first english subtitle stream it finds).
I've tried it, but almost always subs which are loaded are those forced. And it's correct, as usually forced subs are flagged as "default".
I could probably add some kind of modifier to only use "normal" streams, meaning not-forced and not-default, so you could do say "eng|dn" (normal and default, but not forced)
Very good. It will be very useful. ;)
nevcairiel
20th May 2012, 16:31
I've tried it, but almost always subs which are loaded are those forced. And it's correct, as usually forced subs are flagged as "default".
Then your file is flagged wrong.
"Default" is not the right flag for "Forced" subtitles.
dukey
20th May 2012, 22:31
I got a problem with some VC1 files and CUDA. Using lav splitter and CUDA decoder. The stream ends up quite broken.
http://i.imgur.com/i6K9h.jpg
I'll upload a sample
I get the same error with DMO mode if seek in the stream to that point
http://i.imgur.com/RSsEn.jpg
Sample http://www.mediafire.com/download.php?5xpn9jl7csicv5b
Pat357
21st May 2012, 01:13
I get the same error with DMO mode if seek in the stream to that point
http://i.imgur.com/RSsEn.jpg
Sample http://www.mediafire.com/download.php?5xpn9jl7csicv5b
Maybe the sample is just broken....
What makes you think that the sample should be OK ?
Andy o
21st May 2012, 07:14
When I try playback using Reclock as the renderer with WASAPI selected for PCM, I'm getting the infamous "audio format not supported by hardware / driver" error. I have 24bit padded to 32 selected and it works fine if I use AC3 to downmix the audio, so I think it has something to do with the fact that in Windows audio properties, max channels is listed as two. This doesn't make any sense to me. I thought maybe it's because the HDMI is plugged directly into the TV...This is exactly your problem, and it makes perfect sense. Your TV can only accept stereo through its HDMI input and it's telling that to the AMD device.
...That part warrants a bit of explanation. I'm not currently using the VSX-33 reciever we have because we don't have a surround setup yet, but there's a vizio soundbar connected to the TV with an optical audio input and the TV supports up to 7.1 PCM through it's optical audio output. Thus, it shouldn't be telling the HDMI Audio that there's no surround sound device connected...I don't know what kind of processing the sound bar does, but there's no such thing as 7.1 through optical for consumer products. There's 5.1 DD and DTS, and 6.1 DTS, but those are lossy-compressed, not LPCM.
In any case, the Vizio sound bar on their website doesn't seem to support multichannel input (doesn't have a DD or DTS decoder), so it's moot. You're only limited to stereo output from your PC now from where you're standing. And with stereo-only, there's no need for WASAPI exclusive. Just use DirectSound output from ReClock, until you get your multichannel speakers for the VSX-33.
Using all latest drivers (updated today) including the Realtek ATI HDMI Audio DriverThis doesn't have anything to do with the problem, but at this point the Realtek drivers aren't recommended. Just use the ones that come with the AMD Catalyst drivers.
And obviously, this doesn't have anything to do with LAV filters, so if there's somewhere else where you're asking or discussing this, we can take it there.
Diegotimmy
21st May 2012, 07:56
I asked this question over at the AVS forums but didn't receive a reply:
Wondered if anyone here could help.
How can I get the lav splitter to prefer the secondary audio stream by default rather than the hearing impaired stream?
Annoyingly the hearing impaired stream is 256kbps compared to the default of 192kbps in my .WTV recordings, so i guess this is why it is being selected by default. In addition to this, playback freezes until I select the correct stream in MPC HC.
Thanks
Anyone? I can't seem to make a flag for it to choose the secondary audio stream.
Heres the view of the splitter during playback:
http://img254.imageshack.us/img254/5846/examplevb.png
chros
21st May 2012, 08:08
NVIDIA Launches Fermi Based GeForce GT 610, GT 620, GT 630 Into Retail (http://www.anandtech.com/show/5845/nvidia-launches-fermi-based-geforce-gt-610-gt-620-gt-630-into-retail)
Rebadging, rebadging and rebadging...
But VP5 for all this time ? (http://en.wikipedia.org/wiki/GeForce_600_Series#New_features)
Does it worth to switch for Nvidia with these cards ?
That is what interesting me too. I've got an 9600GT now (with vp2, 64 cuda cores, 256 bit memory interface).
So is it worth to switch to a GT 630 with GDDR5 (96 cuda, 128 bit memory!!!)? Is it inlcludes vp5?
(The other 2 (610,620) are very bad. I know that these are the low end cards now.)
Thanks
nevcairiel
21st May 2012, 10:06
Anyone? I can't seem to make a flag for it to choose the secondary audio stream.
There is no way to do that.
Even if the first stream would have the same bitrate as the second stream, it will always prefer the first stream in a file. A rule like "always use the second" just doesn't make much sense.
Its possible that i can add an option to ignore streams marked as hearing impaired in the future, but for now you will have to change it manually.
DragonQ
21st May 2012, 10:28
Anyone? I can't seem to make a flag for it to choose the secondary audio stream.
Heres the view of the splitter during playback:
http://img254.imageshack.us/img254/5846/examplevb.png
Can't you just remux the file into MKV and select the second track as the default (or remove the first track altogether and save some disk space)?
The same problem used to exist with UK satellite broadcasts in MediaPortal because the "audio description" stream is first for some reason. Luckily, they are always MP2 and the normal audio is always AC3 so they just added a "prefer AC3" option.
GTPVHD
21st May 2012, 10:52
That is what interesting me too. I've got an 9600GT now (with vp2, 64 cuda cores, 256 bit memory interface).
So is it worth to switch to a GT 630 with GDDR5 (96 cuda, 128 bit memory!!!)? Is it inlcludes vp5?
(The other 2 (610,620) are very bad. I know that these are the low end cards now.)
Thanks
Only Kepler GPUs have VP5, if you buy any of the Fermi rebrands(GT 610/620/630/645), you will NOT get VP5 and other improvements that come with Kepler GPUs. Avoid them and wait for the Kepler GT 640/650 (GK107) retail card.
glorp
21st May 2012, 16:01
Anyone? I can't seem to make a flag for it to choose the secondary audio stream.
Heres the view of the splitter during playback:
http://img254.imageshack.us/img254/5846/examplevb.png
Use the header editor in mkvmerge gui to change the language tag on the hearing impared track to "und". That will update the file in place and not require a full remux plus allow the track that is still eng to now be preferred by LAV because of your language preferences.
Nevermnid: I see now that you are trying to change a .wtv file. Remux it to another container I guess.
InsulinJunkie
21st May 2012, 23:39
Only Kepler GPUs have VP5
Not quite true - the 520 (now rebranded as the 610) had VP5 before anything else did.
Andrey /MAG/
22nd May 2012, 03:01
I faced with DVD-playing problem in MPC-HC.
I use LAV decoder preferred in external filters MPC.
http://i.imgur.com/ATDnd.png
When I open single VOB-file from DVD I see LAV decoder is working for me. But when I use "Open DVD" dialog it loads ffdShow decoder but not LAV.
http://i.imgur.com/SnCUE.png
Do you know why?
Can LAV Filters to decode whole DVD? How to setup it?
http://i.imgur.com/NlTWU.gif
Superb
22nd May 2012, 04:03
DVD is not supported yet. Nev started working on it, but supporting subpics properly (needed for the menus) is not easy.
powder21
22nd May 2012, 06:10
And obviously, this doesn't have anything to do with LAV filters, so if there's somewhere else where you're asking or discussing this, we can take it there.
Yah, I figured out after posting that this wasn't the right approach, so I started a thread over on AVS. There's a link below to the thread. Please, please, take a look at my latest reply as it is directed to you and I simply have a couple questions for clarification. Thanks so much for replying as nobody in AVS has had much to say on the matter :)
On a side note, there was a question burried in the original post regarding the best method of updating LAV Filters without having to lose settings. I would still like that one answered if anyone here is willing. I use the installer method currently, but I think uninstalling and reinstalling will cause me to lose settings. Haven't tried it.
Thanks again so much Andy! I really hope you take a look at the other thread:
http://www.avsforum.com/avs-vb/showthread.php?p=22044858#post22044858
chros
22nd May 2012, 06:32
Only Kepler GPUs have VP5, if you buy any of the Fermi rebrands(GT 610/620/630/645), you will NOT get VP5 and other improvements that come with Kepler GPUs. Avoid them and wait for the Kepler GT 640/650 (GK107) retail card.
Thanks for the clarification ...
mastan
22nd May 2012, 21:12
Nvidia WHQL 301.42 drivers are out with support of all cards.
Looks like they've fixed black screen with madVR's "use a separate device for presentation" option.
SamuriHL
22nd May 2012, 22:05
Very kuel! Thanks!
joe42
23rd May 2012, 03:44
Nvidia WHQL 301.42 drivers are out with support of all cards.
Looks like they've fixed black screen with madVR's "use a separate device for presentation" option.
Is that what they are talking about here, or is this a different issue they fixed?
(301.42)When setting a custom resolution on the secondary Dualview (extended mode) display, the display goes blank. [915624]
or maybe this one (from the older 301.24 driver):
(301.24)[GeForce 500 series]: When both an HDTV and PC monitor are connected to the GPU, there is no video on the secondary extended mode display. [939925]
I also noticed this in the changelog:
(301.42)[GeForce 400 series]: There is no picture when using LAV DirectShow Filters on MPCHC for MPEG4 video playback. [952108]
chros
23rd May 2012, 06:06
Nvidia WHQL 301.42 drivers are out with support of all cards.
Looks like they've fixed black screen with madVR's "use a separate device for presentation" option.
Thanks for the info! I'll install on both desktop and laptop ...
mastan
23rd May 2012, 06:40
Is that what they are talking about here, or is this a different issue they fixed?
No idea, I've checked with madVR only.
betaking
23rd May 2012, 08:17
(301.42)[GeForce 400 series]: There is no picture when using LAV DirectShow Filters on MPCHC for MPEG4 video playback. [952108]
test GTX 460 with 301.42 whql.play mpeg4-asp video with last lav git use cuvid no problem!
Superb
23rd May 2012, 10:42
Nev, maybe it's time to re-enable CUVID MPEG-4 ASP decoding (in the installer) if the new drivers work properly now...?
Mercury_22
23rd May 2012, 16:13
Small problem with LAVSplitter which is reporting 5.1 audio and LAVAudio it's saying 7.1
Sample (http://www65.zippyshare.com/v/95533897/file.html)
nevcairiel
23rd May 2012, 16:57
Small problem with LAVSplitter which is reporting 5.1 audio and LAVAudio it's saying 7.1
Sample (http://www65.zippyshare.com/v/95533897/file.html)
Thats because its DTS-HD, ffmpeg does not support HD (yet), and adding alot of code just to figure out thats its 7.1 instead of 5.1 is just not worth it.
This has also been discussed in great lengths before.
MasterNobody
23rd May 2012, 17:42
nevcairiel
Hi. May be you will hack this (http://git.1f0.de/gitweb?p=ffmpeg.git;a=commitdiff;h=f4b43c09c013057682b0c4ed8bf50b29888200b1) some other way (for example, change its use in thread_init/frame_thread_init)? Because currently it spam output with "Application has requested X threads. Using a thread count greater than 1 is not recommended." (http://git.1f0.de/gitweb?p=ffmpeg.git;a=blob;f=libavcodec/pthread.c;hb=f4b43c09c013057682b0c4ed8bf50b29888200b1#l1056). Of course you can remove this warning from code but I don't think that is the good idea.
nevcairiel
23rd May 2012, 19:26
Spam? It only shows that message once on codec init, hardly spam.
@nevcairiel
do you have any plan to add filters like sharpening,postprocessing,deband & etc to LAV Filters??
i'm using ffdshow just for this settings.
anyway,many many thanks for your awesome project
goodluck
MasterNobody
23rd May 2012, 20:47
Spam? It only shows that message once on codec init, hardly spam.
It is showed at least 4-times in annoying yellow color:
http://i49.tinypic.com/153r0qe.png
Defenestration
23rd May 2012, 21:04
Can you enable support of VP6F FOURCC with LAV Video decoder, as I had some recent .FLV files which had been encoded with this video codec, and had to use ffdshow instead.
In Zoom Player's decoder config for the VP6 video decoder, it listed the following FOURCC sub-types: VP61, VP52, FLV4, VP6A, VP6F, VP60. But for the FLV video decoder, it listed the following FOURCC sub-types: FLV1 and FLV4.
ffdshow video decoder differentiates between VP6 format (VP60, VP61, VP62) and VP6F format (VP6F, FLV4, VP6A), and FLV1 (FLV1)
However, in the LAV Video Decoder Properties, it lists FLV1 and FSV1 for flash, and On2 VP6 for vp6.
I understand LAV is not listing all the FOURCC sub-types, but would it be possible to enable support in LAV Video decoder for all listed sub-types of VP6, VP6F ?
nevcairiel
23rd May 2012, 21:22
It is showed at least 4-times in annoying yellow color
It only shows it once during codec init, if x264 calls that more then once, thats that.
PS:
I don't really care to support using my copy of ffmpeg for anything but LAV, you're on your own.
There are alot of things in there that are designed to work with LAV, and only with LAV.
Can you enable support of VP6F FOURCC with LAV Video decoder
I already support VP6F and an assortment of other FourCCs for VP6(F)
mindbomb
23rd May 2012, 22:43
Only Kepler GPUs have VP5, if you buy any of the Fermi rebrands(GT 610/620/630/645), you will NOT get VP5 and other improvements that come with Kepler GPUs. Avoid them and wait for the Kepler GT 640/650 (GK107) retail card.
no, the gt 520 has vp5, and likely the 610 as well, and possibly all of them.
nevcairiel
23rd May 2012, 22:47
no, the gt 520 has vp5, and likely the 610 as well, and possibly all of them.
The important point was that the 610/620/630/645 are Fermi rebrands, not Kepler cards.
Anyway, yes the 520 and 610 have VP5, however the 620/630/645 do not (and both the 520 and 610 are worthless cards, way too slow, the 610 is probably a rebrand of the 520)
You can always consult this list here:
http://http.download.nvidia.com/XFree86/Linux-x86/302.11/README/supportedchips.html
VDPAU Level D = VP5
e1iminator
24th May 2012, 09:16
i have a gt210 and a dual core s775 2.66 ghz cpu 45mn i dont remember the model!!!
i installed lav and select none (no cuvid no dxva copyback no dxva native etc.)
it works pefectly even in hd 1080i dvb content! (i dont watch movies!!!)
no stuttering no freezes!!!
deinterlacing works flawlessly!!! (hw nvidia not software yadif)
chros
24th May 2012, 10:09
You can always consult this list here:
http://http.download.nvidia.com/XFree86/Linux-x86/302.11/README/supportedchips.html
VDPAU Level D = VP5
Thanks! I didn't know that they provide a complete list in the linux driver ...
Defenestration
24th May 2012, 17:11
I already support VP6F and an assortment of other FourCCs for VP6(F)My mistake. I was thinking the ZP decoder config modified the DS filter merit, but it doesn't. Now got LAV decoding VP6F :)
MasterNobody
24th May 2012, 17:45
PS:
I don't really care to support using my copy of ffmpeg for anything but LAV, you're on your own.
There are alot of things in there that are designed to work with LAV, and only with LAV.
THAT was LAV 0.50.5 (not something else) used in x264 through AviSynth+DirectShowSource. And x264 opens this AviSynth file only once (dunno how many times AviSynth init LAV itself). Anyway I don't see any reason to keep this warning showed even once in case of (MAX_AUTO_THREADS == 1) because it is meaningless with such value.
nevcairiel
24th May 2012, 18:02
Anyway I don't see any reason to keep this warning showed even once in case of (MAX_AUTO_THREADS == 1) because it is meaningless with such value.
In any case, i do as small changes as possible to keep the difference to official as small as possible.
Removing that warning would not serve any real purpose for me (i think the warning is stupid no matter whats the default setting)
A more interesting question would be why x264 shows the ffmpeg warnings from my copy of ffmpeg, maybe i can just suppress that somehow. :)
Edit:
I may have found a way to just hide all these messages in release builds.
MasterNobody
24th May 2012, 20:24
I may have found a way to just hide all these messages in release builds.
Ok. This (setting NULL instead of default av_log_callback) should do the work.
Mercury_22
26th May 2012, 08:50
LAVSplitter can't play some m2ts(ssif) files
Sample (http://www.putlocker.com/file/8A2C1124222C6569) Mirrors (http://go4up.com/dl/1piODryiWIdQ)
P.S. MPC's internal splitter can play the same file ok if it matters :)
Diegotimmy
26th May 2012, 09:46
Thanks to those who replied about my problem. The documentation states that the splitter chooses the bigger bitrate stream first not the first in the stream, just so happens that the hearing impaired track is also listed first in my .wtv files.sometimes when the recording is from a different chanel the hearing impaired stream isn't transmitted at a higher bitrate so its no problem. I have decided anyway to use mce buddy to encode all my files in to. mkvs anyway so it isn't a problem now. would be nice to be able to flag a stream as in preferred based on text though, sound be useful should anyone come across a similar problem.
nevcairiel
26th May 2012, 10:39
Thanks to those who replied about my problem. The documentation states that the splitter chooses the bigger bitrate stream first not the first in the stream, just so happens that the hearing impaired track is also listed first in my .wtv files.sometimes when the recording is from a different chanel the hearing impaired stream isn't transmitted at a higher bitrate so its no problem. I have decided anyway to use mce buddy to encode all my files in to. mkvs anyway so it isn't a problem now. would be nice to be able to flag a stream as in preferred based on text though, sound be useful should anyone come across a similar problem.
I created an issue for this, so that i remember to address it for a future release.
http://code.google.com/p/lavfilters/issues/detail?id=232
DragonQ
26th May 2012, 11:40
LAVSplitter can't play some m2ts(ssif) files
Sample (http://www.putlocker.com/file/8A2C1124222C6569) Mirrors (http://go4up.com/dl/1piODryiWIdQ)
P.S. MPC's internal splitter can play the same file ok if it matters :)
Can you use a decent host like MediaFire? An 80 Mbps connection is no good when these hosts only provide 1-2 Mbps to free users (if you're lucky)!
wanezhiling
26th May 2012, 11:45
LAVSplitter can't play some m2ts(ssif) files
Sample (http://www.putlocker.com/file/8A2C1124222C6569) Mirrors (http://go4up.com/dl/1piODryiWIdQ)
P.S. MPC's internal splitter can play the same file ok if it matters :)
Same here.
nevcairiel
26th May 2012, 11:49
Can you use a decent host like MediaFire? An 80 Mbps connection is no good when these hosts only provide 1-2 Mbps to free users (if you're lucky)!
MediaFire isn't all that much faster anymore either. :P
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.