View Full Version : LAV Filters - DirectShow Media Splitter and Decoders
Kotik
4th January 2011, 16:14
Having some stutter problem with interlaced VC1 when Cyberlink deocder is connected to LAVFSplitter Source splitter, while playback is smooth when Cyberlink Demux is in use. The same media type {D979F77B-DBEA-4BF6-9E6D-1D7E57FBAD53} is used in both cases. Appreciate if you could look into this.
FYI, playback is also smooth when MPC's splitter is used with media type {31435657-0000-0010-8000-00AA00389B71}.
Best regards.
I can confirm this.
PDVD9 codec does connect correctly but the video is stuttering.
P.S. I did notice just now that the stuttering is going and coming during a scene change. So each time there is a scene change the stutter is gone for 1 second and then is strikes back till the next scene change. Hope it makes some sense to you.
P.S.2. I can upload a small sample of Interlaced VC-1 .m2ts file. Just let me know.
nevcairiel
5th January 2011, 07:54
VC1 is a horrible format, and i don't really want to spend much more time on it. I can add the ArcSoft GUID, but figuring out stuttering, especially with VC1, always results in alot of debugging.
I'm currently hating DirectShow anyway, and working on Media Foundation things, which feel so much nicer to work with.... :)
SamuriHL
5th January 2011, 14:34
Media Foundation is much more stable anyway. It's definitely the direction everyone is heading.
HeadlessCow
5th January 2011, 23:04
i'm currently hating directshow anyway, and working on media foundation things, which feel so much nicer to work with.... :)
<3 <3 <3 <3
Virtual_ManPL
8th January 2011, 12:06
@ nevcairiel - please reopen bug #26 (https://github.com/Nevcairiel/LAVFSplitter/issues/closed#issue/26) because it's not fixed yet
I still don't have sound in this file, and this error appear on start in MPC-HC
http://img100.imageshack.us/img100/3810/mpchcy.png
Also does anyone experienced video artifacts, like in this bug maybe ?
https://github.com/Nevcairiel/LAVFSplitter/issues#issue/29
And on startup video is frozen ?
Ger
8th January 2011, 22:30
@Virtual_ManPL
Sample from bug #26 plays fine here with MPC-HC + LAVFSplitter + ffdshow for both video and audio. AAC is set to libavcodec in ffdshow in case that makes a difference.
Virtual_ManPL
8th January 2011, 23:58
Could you test it with internal MPC-HC decoders ?
Because it not plays fine here with MPC-HC 1.4.2820.0 (from xvidvideo.ru) + LAVFSplitter 0.11 (XhmikosR updated build) with internal MPC-HC decoders for video&audio on XP 32bit
mariner
9th January 2011, 07:20
I can confirm this.
PDVD9 codec does connect correctly but the video is stuttering.
P.S. I did notice just now that the stuttering is going and coming during a scene change. So each time there is a scene change the stutter is gone for 1 second and then is strikes back till the next scene change. Hope it makes some sense to you.
P.S.2. I can upload a small sample of Interlaced VC-1 .m2ts file. Just let me know.
Thanks for testing, Kotik.
I have attached two screen cap in my post. It looks similar to the problem when madshi/jay bee tweaker is in the filter chain. It seems that frame rate detection somehow got confused when LAVESplitter is in use.
Ger
9th January 2011, 11:46
Could you test it with internal MPC-HC decoders ?
Because it not plays fine here with MPC-HC 1.4.2820.0 (from xvidvideo.ru) + LAVFSplitter 0.11 (XhmikosR updated build) with internal MPC-HC decoders for video&audio on XP 32bit
Right. Internal splitter works with the internal AAC decoder.
LAVFSplitter just skips the internal decoder and goes straight to ffdshow for AAC with that sample, even when the internal AAC decoder is enabled.
Virtual_ManPL
9th January 2011, 13:23
So it can be MPC-HC bug or it's just bug not fully fixed in splitter ?
Ger
9th January 2011, 18:15
I can't answer that. I think nevcairel will have to figure out if the MPC-HC AAC decoder or LAVFSplitter is the problem in this case.
ArcticFox
16th January 2011, 18:30
I have been told i might get better luck posting here.
http://fox.ugug.org/01-15_15-31-17_ITV1_HD_Star_Wars_Attack_of_the_Clones.ts
UK DVB-T2 started in December and it uses HE-AAC for audio, ive tried using LAVF splitter and monograms AAC decoder but i cant get sound working at all, i was wondering if it was something i was doing wrong or not. Thanks.
Carpo
18th January 2011, 06:27
so should this splitter be used or use haali/mpc-hc internal splitter instead?
nevcairiel
21st January 2011, 22:46
LAVFSplitter 0.12
- Fixed a crash issue with certain configurations and files with subtitles
- Revisited file duration logic, now tries to prefer the duration of the video stream. This fixes MPEG-TS duration issues.
- Updated ffmpeg (a lot of issues resolved)
Download: 32-bit (http://files.1f0.de/lavf/LAVFSplitter-0.12.zip) & 64-bit (http://files.1f0.de/lavf/LAVFSplitter-0.12-x64.zip)
Its been quite some time, and not that much has changed. But i hope i can devote more time to development again now.
In all that time, ffmpeg received alot of changes, which resolved some issues that had been reported previously.
In any case, have fun!
Sebastiii
21st January 2011, 22:48
Thanks m8 :)
SamuriHL
21st January 2011, 23:12
Sweet. Will have to give this a try! Thanks!
Plutotype
21st January 2011, 23:31
Nothing than great news!
JarrettH
22nd January 2011, 01:37
Any idea when this will become the default splitter in MPC? :cool:
Hello Nev :devil:
boyumeow
22nd January 2011, 03:19
Hi nevcairiel, I'm having trouble to download the 64bit version at the github, not sure why, just report so U could verify and rectify. Anyway, I can get the downloads at post#464. Btw, the first page has not been update by this new version link. Hope I'm not bothering U.
Thanks for your great apps.
nevcairiel
22nd January 2011, 09:35
Thats weird, i re-uploaded the 64-bit version on GitHub, and it has the same problem. Oh well.
Updated the first post, though.
nevcairiel
22nd January 2011, 12:31
So it can be MPC-HC bug or it's just bug not fully fixed in splitter ?
The information required for the internal aac decoder to work is just not exposed by avformat, and the libfaad decoder in MPC doesn't like working without it. The libfaad in ffdshow doesn't like it either, however the libavformat aac decoder in ffdshow does work with it.
Not much i can do right now.
dann23
23rd January 2011, 09:07
hello. I tried to use the splitter on windows 2008 r2. it doesn't register. It says that the specified module could not be found.
I tried with 32bit and 64bit splitter. Both have the same problem. But matroskasplitter from mpchc works fine.
SamuriHL
23rd January 2011, 15:01
hello. I tried to use the splitter on windows 2008 r2. it doesn't register. It says that the specified module could not be found.
I tried with 32bit and 64bit splitter. Both have the same problem. But matroskasplitter from mpchc works fine.
Binaries built by me currently require the VC++2010 Runtime (download 32-bit & 64-bit)
Esure they're installed properly.
dann23
23rd January 2011, 16:53
thank you for your help. I found the problem. vc++ 2010 needs to be 64bit. with only 32bit I can't install lavfsplitter. not even the 32 bit version.
zoose
26th January 2011, 11:48
Tested LAVFSplitter 0.12 32bit
My issue reported in this thread here (http://forum.doom9.org/showthread.php?p=1460297#post1460297) is still occurring with LAVFSplitter video can only decode at around 18fps.
nevcairiel
26th January 2011, 15:17
I have been told i might get better luck posting here.
http://fox.ugug.org/01-15_15-31-17_ITV1_HD_Star_Wars_Attack_of_the_Clones.ts
UK DVB-T2 started in December and it uses HE-AAC for audio, ive tried using LAVF splitter and monograms AAC decoder but i cant get sound working at all, i was wondering if it was something i was doing wrong or not. Thanks.
I can play this with LAVFSplitter and LAVCAudio (unreleased). Be patient, i hope to get a first test version out on the weekend. :)
SamuriHL
26th January 2011, 15:22
Um. LAVCAudio? What is that? :)
tetsuo55
26th January 2011, 15:26
something that has been on the mpc-hc roadmap for a long time ;)
Disclaimer: nevcairiel is not doing it because of that roadmap :P
nevcairiel
26th January 2011, 15:27
It has? :)
In any case, its a new audio decoder based on libavcodec. It does not (and probably will not) use any other decoding libraries (like libmad, liba52, libdca), rather focus on getting the most audio quality out of libavcodec.
ffdshow and the mpc-hc decoder both fail at some aspect or another, and i was fed up with dealing with them, so there it is.
Key facts:
- Maximum Quality - output the audio untouched from the decoder (32fp from lossy codecs, integer formats from lossless codecs, tested to work well with 24bit TrueHD)
- There will however be an option to disable certain formats if your renderer does not manage to use them - hopefully with auto-detection of this as well.
- Maximum Media Compat - especially in conjunction with LAVFSplitter, there will be a special Media Type that they share to skip some oddness in DirectShow, but still try to be compatible with other splitters out there.
- No post-processing (get ffdshow in raw mode if you really want more)
tetsuo55
26th January 2011, 15:29
http://sourceforge.net/apps/trac/mpc-hc/wiki/To-Do
See 7 :P
If its something completely different then ill remove my comment
nevcairiel
26th January 2011, 15:38
Well at least replacing the internal audio decoder in MPC-HC would be way easier then replacing the internal splitters.
tetsuo55
26th January 2011, 15:43
I hope so :)
But even as merely an external filter that mpc-hc can use we will have already achieved the main goal (a vanilla ffmpeg decoder for dshow)
Also are you aware of this: http://forum.doom9.org/showthread.php?p=1466162#post1466162
Posting that to make sure yours is not negatively affected
SamuriHL
26th January 2011, 15:47
That's pretty sweet! This will make a lot of people very happy!!
Ger
26th January 2011, 18:32
Sounds promising.
BTW, one more interesting aspect about that UK DVB-T2 Star Wars sample:
VLC tags the second audio track as "visual impaired commentary", English.
MediaInfo says its 1ch.
LAVFSplitter says 2ch (FC).
Don't know what FC means, but 1 channel seems to make sense for commentary. Also adding that "visual impaired commentary" tag to the audio track, similar to what Underground78's patch (http://forum.doom9.org/showthread.php?p=1428791#post1428791) did for hearing impaired subtitles, would be useful for identifying the correct audio track. AFAIK, there is no actual "audible audio" with any player with this commentary track and this particular sample, so no worries if it's silent in with new codec.
PS. Thanks for the MPEG-TS duration fix. LAVFSplitter is now my primary TS splitter. :)
nevcairiel
26th January 2011, 18:39
You wouldn't happen to have a spec for that somewhere, eh? :)
The 2 channels (FC) basically means that it somehow detects 2 channels, which then decode to Front Center, which would make sense, i guess.
Ger
26th January 2011, 18:59
I can't check right now, since etsi.org seems to be down at the moment, and I can't seem to find the pdf on my hdd anymore, but I would think EN 300 468 V1.11.1 would be the best match in this case as well. I'll skim through it later and post the page numbers if I find anything.
For now I'll just quote my previous post regarding the hearing impaired subtitles, for reference when the etsi server starts responding again:
I did some digging, and don't take my word for it (my understanding is limited), but there may be something of interest here:
Regarding the hearing impaired flags in DVB-subs: Page 38 and 73 (http://www.etsi.org/deliver/etsi_en/300400_300499/300468/01.11.01_60/en_300468v011101p.pdf).
Teletext subs vs non-subs: Page 8 (http://www.etsi.org/deliver/etsi_en/300400_300499/300472/01.03.01_60/en_300472v010301p.pdf).
Both found here (http://www.dvb.org/technology/standards/).
If that doesn't help, I guess VLC git.
EDIT:
OK. etsi.org is working now.
This seems to be a v.1.12.1 draft, but it's eight months newer than v1.11.1.
Table 26 - Page 44 (http://www.dvb.org/technology/standards/a038_DVB-SI_dEN300468v1.12.1.pdf) seems to list the relevant hex values for component_type.
kieranrk
26th January 2011, 20:08
VLC tags the second audio track as "visual impaired commentary", English.
VLC uses the ISO language descriptor for that.
mindbomb
26th January 2011, 21:32
will lavcaudio have a mixer to specify your speaker setup?
or will we have to use ffdshow for that?
nevcairiel
26th January 2011, 21:56
You'll have to use ffdshow or the MPC-HC audio switcher for that.
Maybe i'll one day implement matrixing and some other very basic post-processing tasks, but it wont be soon, if ever.
IMHO post processing should be done separately anyway.
I like things that do one thing, and do that one thing very well. Not one thing that does everything, but nothing perfect.
mindbomb
27th January 2011, 04:55
will there be 24 bit flac output in lavcaudio?
nevcairiel
27th January 2011, 07:42
Why would 24bit not be possible? Lossless formats that were encoded as 24bit int, like TrueHD, will be decoded as 24bit int, and output like that.
I added support for LPCM yesterday, both in DVD and BluRay format - those tracks also come in 24bit, and it works just fine.
And yes, FLAC will be decoded to whatever the FLAC stream is. A 24bit FLAC file will be decoded to 24bit and output like that.
tetsuo55
27th January 2011, 09:34
You'll have to use ffdshow or the MPC-HC audio switcher for that.
Maybe i'll one day implement matrixing and some other very basic post-processing tasks, but it wont be soon, if ever.
IMHO post processing should be done separately anyway.
I like things that do one thing, and do that one thing very well. Not one thing that does everything, but nothing perfect.I agree, this stuff should be done by the audio renderer imho..
robpdotcom
27th January 2011, 11:04
Any chance LAVCAudio will decode DTS-HD MA?
nevcairiel
27th January 2011, 11:05
No, unless someone implements it in ffmpeg, and the chances of that are very low.
robpdotcom
27th January 2011, 11:22
Gotcha. Will it do bitstreaming? And will it connect to other splitters, such as Haali? Or maybe I should just wait to see?:D
Either way, thanks for the reply, and for the work you're doing on LAFDSplitter and LAFDAudio.:thanks:
nevcairiel
27th January 2011, 11:25
BitStreaming is no "decoding", its basically just "remuxing". If it gets implemented, it would probably be in LAVFSplitter, because that makes it way easier to implement, and in my mind, also the more logical place (ffmpeg has full support for remuxing all HD audio formats into their bitstream containers, since i demux with ffmpeg anyway, just chaining a muxer in there is really easy)
It should work with other splitters. I have not tested Haali specifically, but in theory, it should work. I'll run tests before the release.
BatKnight
27th January 2011, 11:36
It has? :)
In any case, its a new audio decoder based on libavcodec. It does not (and probably will not) use any other decoding libraries (like libmad, liba52, libdca), rather focus on getting the most audio quality out of libavcodec.
ffdshow and the mpc-hc decoder both fail at some aspect or another, and i was fed up with dealing with them, so there it is.
Key facts:
- Maximum Quality - output the audio untouched from the decoder (32fp from lossy codecs, integer formats from lossless codecs, tested to work well with 24bit TrueHD)
- There will however be an option to disable certain formats if your renderer does not manage to use them - hopefully with auto-detection of this as well.
- Maximum Media Compat - especially in conjunction with LAVFSplitter, there will be a special Media Type that they share to skip some oddness in DirectShow, but still try to be compatible with other splitters out there.
- No post-processing (get ffdshow in raw mode if you really want more)
Can't wait to test it!
Bat
nevcairiel
29th January 2011, 12:58
libav DirectShow Filters 0.13
LAVFSplitter
- Added support for demuxing BluRay LPCM tracks into the MPC-HC format
- Added a new LAVFSplitter specific media type to all audio streams
LAVCAudio
- First version of LAVCAudio implemented
Download: 32-bit (http://files.1f0.de/lavf/LAVFSplitter-0.13.zip) & 64-bit (http://files.1f0.de/lavf/LAVFSplitter-0.13-x64.zip)
There haven't been much changes to the splitter in this release, most work went into LAVCAudio, a audio decoder based on libavcodec.
The main goal of LAVCAudio is simply put maximum audio quality. It'll decode all streams in the highest bitdepth possible, this means:
- fp32 decoding for lossy formats (currently AAC, AC3, DTS and MP3)
- integer decoding of lossless formats (FLAC, TrueHD, LPCM, etc.), 16, 24 or 32 bits, depending on source material.
A secondary goal is maximum audio compatibility.
While it should work with other splitters just fine, its optimized to work in conjunction with LAVFSplitter. LAVFSplitter exports a new media type thats designed to directly tell LAVCAudio which decoder to use. Using this, LAVCAudio should be able to decode all and any audio formats that ffmpeg supports, without DirectShow Media Types interfering.
Before anyone asks, TODOs for the "near" future:
- Decoder Infos Property page
- Configure output sample format (in case your renderer does not support one specific format)
- Options for DRC in supported formats (I know it goes against the maximum quality goal, but if people want DRC, its much higher quality to apply it in the decoder then in a post-processing step -- assuming the codec supports it, like AC3)
For the more distant future:
- Bitstreaming
bjd
29th January 2011, 13:11
Nev,
Really appreciate the work you've put in this week to get this released.
:thanks:
adam777
29th January 2011, 13:28
Let the testing begin.
Thanks, nevcairiel :thanks:
* EDIT *
Early thoughts...
AAC seems to be working correctly, a 5.1 AAC file was decoded properly and fed to ReClock audio renderer as 6 channels.
AC3 pretty much the same.
As for DTS, on every DTS file I've tried MPC-HC loads an extra filter, called "AVI<->AC3/DTS", which seems to connect between the splitter and the decoder and convert the 5.1 stream to stereo.
As a workaround, setting lavc audio decoder as preferred in MPC-HC seems to allow the direct connection, as expected.
I suspect it's some sort of weird mess on my side...
PS.
I've been having some problems as of lately with some files not playing right away, only after I perform a seek using the ctrl+right hotkey.
The new audio decoder seems to solve this problem, which might suggest it was FFDShow's audio decoder fault.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.