View Full Version : LAV Filters - DirectShow Media Splitter and Decoders
zerowalker
4th February 2013, 14:22
In the latest version, i get black screen, on many of my cut avi files, from Virtualdub (cutting MKV files)
sneaker_ger
4th February 2013, 14:37
http://forum.doom9.org/showthread.php?p=1613883#post1613883
Qotscha
5th February 2013, 09:24
For some reason, LAV splitter can't handle these streams properly. The video stream isnt coming through at all. I was hoping you could take a look at the media file below to see if you can get LAV splitter to "tolerate" this type of media file; as bad of a shape that it's in.
I have a bit similar problem. I downloaded a .ts file from Internet DVR service by using VLC to record the http stream. The file (DVB recording, mpeg2 video and audio) contains the program I wanted to record and also beginning of the next program (which I, of course, don't really need).
With newer versions of LAV Splitter I get no audio at all, but version 0.54.1 or older finds the audio stream. However, I still don't get audio for the beginning of the next program which has different audio language. The strange thing is, that if I watch the recording directly using LAV Splitter as source filter for http, even the newest version of LAV works like the older ones.
I also tested some other MPEG splitters (Haali, AV, MPC) and they all work like the older versions of LAV. However, with VLC I get audio for the latter part of the file, too.
I tried to cut some samples using Avidemux, but with them I didn't have audio for the beginning of the next program even with VLC. So, nevcairiel, I send you a pm with a download link for the whole recorded file, if you want to take a look.
cyberbeing
5th February 2013, 15:31
I see why I couldn't get it to work.
In order for LAV Video to use YV16 with DirectShowSource, you need to set all output formats in the following registry key to 0 except YV16 which needs to be set to 1:
HKEY_CURRENT_USER\Software\LAV\Video\Output
LAV Video -> DirectShowSource -> madVR seems to display YV16 normally.
It seems impossible to make LAV Video connect directly to madVR with YV16 during normal DirectShow playback outside of Avisynth.
Was this behavior for LAV Video YV16 output intentional?
nevcairiel
5th February 2013, 15:33
YV16 is intentionally disabled, or did you see a checkbox for it in the options panel to enable it? :)
Your trick shouldn't be working though, the options loading code directly sets YV16 to disabled. I suppose if you disable *everything*, it goes back to the default format line, which has YV16 in it somewhere.
cyberbeing
5th February 2013, 16:03
Yeah, I was under the impression that YV16 was completely disabled in LAV Video as well, before I discovered that workaround with DirectShowSource 2.6.0.1 yesterday.
Was it originally disabled because of poor support, or just because you haven't yet written a comparable set of high quality conversion routines for YV16 compared to other 4:2:2 output formats?
__
Any thoughts on the other issue mentioned in that Avisynth 2.6 thread?
Why LAV Video + Haali Splitter (autoload vsfilter) + xy-VSFilter 3.0.0.211 + 10-bit 4:2:0 Video + DirectShowSource 2.6.0.1 pixel_type="AYUV" fails to connect when all output formats are enabled in LAV Video? Yet it works when I selectively disable certain LAV formats like P016 or P010 or NV12?
bugmen0t
5th February 2013, 16:51
Clipping protection should be impossible to overflow.
Do you have a sample file where this can be observed?
Yes I do. Note that the problem requires LAV mixing to stereo with clipping protection and outputting 32-bit integers and a winamp plugin.
Using 'normalize matrix' or outputting 24-bit integers or bypassing the winamp plugin will be fine. :confused:
WARNING: turn your volume down before playing
test.rar (http://www54.zippyshare.com/v/97989058/file.html)
Qotscha
5th February 2013, 17:04
My previous post is a bit misleading. Somehow I forgot to test if the latter part of the recording has audio when playing it using LAV as http source filter, and was under the impression that it has not. However, it has. So maybe I'll just blame VLC for breaking the .ts file :sly:
mkanet
5th February 2013, 17:39
Its really too bad that VLC tends to ruin a perfectly good original raw incoming mpeg stream during transcoding.
My previous post is a bit misleading. Somehow I forgot to test if the latter part of the recording has audio when playing it using LAV as http source filter, and was under the impression that it has not. However, it has. So maybe I'll just blame VLC for breaking the .ts file :sly:
nevcairiel
5th February 2013, 18:04
My previous post is a bit misleading. Somehow I forgot to test if the latter part of the recording has audio when playing it using LAV as http source filter, and was under the impression that it has not. However, it has. So maybe I'll just blame VLC for breaking the .ts file :sly:
I found the reason for the missing audio and fixed it by reverting the change in ffmpeg, maybe they'll come up with a proper fix later :)
Mercury_22
6th February 2013, 19:53
Does anyone knows how to make XBMC use LAV Filters ?
Bryanhoop
7th February 2013, 01:59
Does anyone knows how to make XBMC use LAV Filters ?
http://wiki.xbmc.org/index.php?title=DSPlayer
You need DSPlayer.
Qaq
7th February 2013, 08:53
http://wiki.xbmc.org/index.php?title=DSPlayer
You need DSPlayer.
And AVsplitter instead of LAV splitter AFAIK. Haven't tried myself though.
Shark007
7th February 2013, 09:15
Nev, this m2ts sample (http://www.mediafire.com/file/mgvkrc1j5dq6ctj/PCM_audio.m2ts) file will not play the pcm audio using lav.
If I use AC3Filter, the sample plays the audio properly.
Could you have a look at it please?
Mercury_22
7th February 2013, 09:57
http://wiki.xbmc.org/index.php?title=DSPlayer
You need DSPlayer.
Thanks already tried that :) and it's buggy as hell, maybe in the future
Maybe I wasn't clear enough I want to use LAV Filters with the default dvdplayer
Nicola
7th February 2013, 11:02
I just dscovered that if I set "force deinterlace" option in LAV video decoder the video sometimes get corrupt.
Unchecking option make it fine. Happens sometime, with progressive video. Why does this happen? Is it expected?
Link to screenie: http://imageshack.us/photo/my-images/690/720pmkvsnapshot10102013.png/ (artifacts near the mouth, and around the necktie)
nevcairiel
7th February 2013, 11:03
Deinterlacing progressive video can cause image degradation, so don't do it.
Nicola
7th February 2013, 11:22
Deinterlacing progressive video can cause image degradation, so don't do it.
oh, so that's expected to happen?
Actually the discovery was casual, I don't remember activating that option, and found out it was the cause after some checks with the encoder.
Is there a short explaination about why it degrade progressive image?
I'm just curios about why it happens. Thanks.
starla
7th February 2013, 11:33
Maybe I wasn't clear enough I want to use LAV Filters with the default dvdplayer
It won't be possible to use Directshow filters in a non-Directshow based player.
Mercury_22
7th February 2013, 11:54
It won't be possible to use Directshow filters in a non-Directshow based player.
Ouch! Didn't think "the dvdplayer" in the xbmc for windows is a "non-Directshow based player"
Thanks for "reminded" me !
P.S. I just need nev's "hack" to use the DMO for VC-1 in XBMC and the dts one :)
nevcairiel
7th February 2013, 14:07
Nev, this m2ts sample (http://www.mediafire.com/file/mgvkrc1j5dq6ctj/PCM_audio.m2ts) file will not play the pcm audio using lav.
If I use AC3Filter, the sample plays the audio properly.
Could you have a look at it please?
Apparently, someone tried to be funny and packed DTS into a Blu-ray LPCM stream. I consider this a simply broken stream. DTS has its own stream type in m2ts files, don't need to do hacks to store it, so this is just broken.
Shark007
7th February 2013, 16:18
Apparently, someone tried to be funny and packed DTS into a Blu-ray LPCM stream. I consider this a simply broken stream. DTS has its own stream type in m2ts files, don't need to do hacks to store it, so this is just broken.
Thanks for your investigation.
I'll pass on the information to the files owner.
andyvt
8th February 2013, 16:54
What version of MSYS do you use?
The one I pulled down is giving me an error when I try to compile ffmpeg (although it's quite possible that I have something configured incorrectly).
gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
paradoxical
8th February 2013, 17:07
What does your configure line look like? What version of MSYS are you using?
tahaa7
8th February 2013, 17:14
How to check whether full DTS-HD MA is being decoded using Lav Filters and MPC-HC with TotalMedia's dll?
andyvt
8th February 2013, 17:28
What does your configure line look like?
Whatever is output by "build_ffmpeg.sh".
What version of MSYS are you using?
This one (https://sourceforge.net/apps/trac/mpc-hc/wiki/How_to_compile_the_MPC). In the past I just followed their instructions to get MSYS/MINGW setup, but it seems different from the last time I did it.
andyvt
8th February 2013, 18:07
In the past I just followed their instructions to get MSYS/MINGW setup, but it seems different from the last time I did it.
Figured it out. I didn't set up the PATH correctly.
filler56789
8th February 2013, 21:48
How to check whether full DTS-HD MA is being decoded using Lav Filters and MPC-HC with TotalMedia's dll?
In the MPC-HC window, right-click, then select LAV Audio, and look at the Status tab. If it says "codec = dts", then LAV is using the Arcsoft DLL, but if it says "codec = dca", then LAV is using the built-in decoder.
tahaa7
8th February 2013, 22:12
In the MPC-HC window, right-click, then select LAV Audio, and look at the Status tab. If it says "codec = dts", then LAV is using the Arcsoft DLL, but if it says "codec = dca", then LAV is using the built-in decoder.
OK, thanks. It says "dts-hd ma". However, what worries me is that under Pin Info it says:
Input:
...
Audio: DTS 48000Hz 6ch 1536kbps
Output:
...
Audio: PCM 48000Hz 6ch 6912kbps
Is this OK?
Qaq
8th February 2013, 22:53
@tahaa7
Arcsoft outputs in 24int, ffmpeg outputs in 32float.
Pomegranate
8th February 2013, 22:56
Once could also play a 7.1 dts-hd ma file. The dts core will never be 7.1.
Nekomata
10th February 2013, 02:50
Please when the next version :thanks:
ryrynz
10th February 2013, 03:08
If you want a reasonably recent build you can visit http://xhmikosr.1f0.de/lavfilters/
Otherwise it's a case of when it's done and judging from previous releases that's generally every month or so.
nevcairiel
10th February 2013, 07:34
There should be a minor release fairly soon to get some changes out there before i start breaking everything again. :p
nevcairiel
10th February 2013, 14:24
LAV Filters 0.55.3
LAV Splitter
- Improved handling of Annex B H.264 in many containers
- Improved support for external source filters without seeking ability (live sources)
- Fixed duration in some MP4/MOV files
- Fixed stream program assignment for some MPEG-TS files (resulted in some streams not visible)
LAV Video
- Added support for TSCC2
- Fixed a crash when playing certain H.264 files with QuickSync or CUVID
Download: Installer (both x86/x64) (http://files.1f0.de/lavf/LAVFilters-0.55.3.exe) -- Zips: 32-bit (http://files.1f0.de/lavf/LAVFilters-0.55.3.zip) & 64-bit (http://files.1f0.de/lavf/LAVFilters-0.55.3-x64.zip)
Just a bunch of bugfixes and small improvements, nothing big.
Hopefully i'll find some time to work on some of the bigger tasks soon, so that i don't have to do small bugfix versions all the time.
The only risky change in this version is the change in handling Annex B H.264 - if you have any H.264 file which stops working in this version (but worked in 0.55.2 or 0.55.1), please let me know.
- nev
wanezhiling
10th February 2013, 14:43
Thanks!
I guess the 0.56 will be a big release!;)
dukey
10th February 2013, 14:44
I got some crashes with LAV can't seem to fix
http://i.imgur.com/UPJ8g1d.png
http://i.imgur.com/Q8xRNOf.png
nevcairiel
10th February 2013, 15:10
If the outStride is really 768 on a video with 1920 width, then something is seriously wrong with your renderer, although i did think i had some checks for this, but maybe not enough. In some cases just have to rely on the renderer behaving properly.
dukey
10th February 2013, 15:17
Well it is EVR, but I'll double check the code in the custom mixer
nevcairiel
10th February 2013, 15:24
Sounds like LAV was trying to set the proper frame size (with a new media type), but failed, so the renderer still wants a smaller frame. I should probably add a check there, but its not an issue that ever came up before. Not that the check can fix anything, it would just prevent the crash.
Anleck
10th February 2013, 16:09
Thanks for the new LAV - appreciate your continued work.
dukey
10th February 2013, 19:45
I found a workaround for the problem.
Basically in Media foundation it tests if you can set a media type when it calls SetInputType
I return MF_E_TRANSFORM_CANNOT_CHANGE_MEDIATYPE_WHILE_PROCESSING
Because I still have samples left to display
So I guess LAV tries to force a reconnect, and it gets stuck in some sort of loop. It's only 1 sample every time stuck in the buffer. If i flush it, problem solved.
nevcairiel
10th February 2013, 19:49
Of course it needs to force a reconnect, because i need a bigger buffer to write my bigger frame into. What else can i do? :D
dukey
10th February 2013, 20:46
Good point :)
By the way, it's a pleasure to debug with LAV. The debug info is super useful.
Owyn
10th February 2013, 22:37
nevcairiel, Hi
I just did reset my settings in KMPlayer and set splitter to LAV but now hotkey to switch audio streams in KMPlayer doesn't work but it's default splitter and gabbest works fine with the hotkey, can you fix this? (or tell me how to fix it if I can do it by some configuratio)
and subtitles can't be shown even if I choose those manually now with LAV, what can be done for it to work?
Thanks.
nevcairiel
10th February 2013, 22:39
LAV does not have hotkeys. This sounds like a problem with your player.
Owyn
10th February 2013, 22:44
ok, so my question was more like, how do I make LAv work with KMPlayer (http://www.kmpmedia.net/)? (and if can it be done at all) . Would really appreciate your help.
Now when I use LAV in it
- internal subtitles can't be shown at all
- hotkey in KMPlayer for switching audio streams doesn't work (works fine for external audio, problem is with internal one)
with Haali media splitter goes the same thing, but with Haali if i set splitters for all formats to "system" - hotkey start to work, with LAV splitter - it doesn't
I'll write to KMP forums too but would be nice if you could also take a look ^_^
Sorry to disturb
ryrynz
10th February 2013, 23:26
Nev, any ETA on that "English[eng]" subtitle selection support?
FreeFall
11th February 2013, 05:34
nevcairiel,
I have a problem with this DVD sample, LAV 0.55.3 and EVR renderer.
http://www.sendspace.com/file/rq5twj (media fire wasn't working)
Play the first episode and then go back to the main menu, the last subtitle line stays on the screen until the menu loops and re-draws itself (DXVA Native / Copy Back or Software mode). Using CUVID the same thing happens but usually the last video frame and menu navigation markers are shown instead of the menu background, it might take a couple of tries for it to happen, usually after around 5 or 10 seconds of playback.
Thanks.
FreeFall
LoopinFool
11th February 2013, 17:37
nev,
The x64 debug symbols for 0.55.3 seem to be missing.
- LoopinFool
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.