Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > New and alternative a/v containers

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th May 2011, 14:24   #3001  |  Link
VipZ
Registered User
 
Join Date: Jun 2009
Location: London
Posts: 378
That version doesn't help either, the build I did 2 days ago also had this issue. I don't recall which revision it was, but it was maybe d1a6c61.

I am not sure how to roll back changes to compile an older build in git, if you could give me a tip of this, I can do some testing to try find which one broke the sync.

This issue isn't to all DTS in MKV though it seems to be somewhat to this file only and maybe others, though 0.25 worked perfectly for this file. Decoded DTS doesn't have the sync issue with this file either.

I mostly found bitstreaming to have better sync than decoding, especially so for the build 2 days ago.
__________________
Windows 11 Pro, CPU: Ryzen 9 5900X, GPU: GeForce RTX 3090 /w 512.95, Audio: HDMI to Yamaha RX-A3060 (5.1)

Last edited by VipZ; 15th May 2011 at 14:33.
VipZ is offline   Reply With Quote
Old 15th May 2011, 14:24   #3002  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
I have no issues whatsoever, so i claim your file is broken.
With the latest version, and the A/V sync thing enabled, it'll always match against the timestamps of the incoming data, and make sure it fits.

Edit: Try with this older version; http://files.1f0.de/lavf/LAVFilters-...2-g9f7db6b.zip
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 15th May 2011 at 14:38.
nevcairiel is offline   Reply With Quote
Old 15th May 2011, 14:42   #3003  |  Link
VipZ
Registered User
 
Join Date: Jun 2009
Location: London
Posts: 378
Nope, that is also out of sync
__________________
Windows 11 Pro, CPU: Ryzen 9 5900X, GPU: GeForce RTX 3090 /w 512.95, Audio: HDMI to Yamaha RX-A3060 (5.1)
VipZ is offline   Reply With Quote
Old 15th May 2011, 14:42   #3004  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
You're out of luck then, get rid of the broken file.
Or give me a sample to reproduce the problem.

I could revert some of those changes, and when bitstreaming, just trust whatever timestamps the source gives me (like 0.25 did), so if they are messed up, its clearly the files fault.
Except, the audio jitter is horrible then, and the graph of EVR-CP looks like crap because the audio timings jitter so much, so its clearly not good.

However, with A/V sync thing enabled, i really do not see how there could be sync issues, ever. It'll compare all timings to the input time of the data, and if there is a too bad drift, it'll adjust to that. Its just impossible that my calculated timings cause a 2-3 second desync. Its just not possible.
It uses the same timing the decoding would use, it reads the data, and figures out how long it would be - and then increments the clock by that. Thats a perfect match to the source timings, minus the jitter of DTS in MKV, of course.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 15th May 2011 at 15:06.
nevcairiel is offline   Reply With Quote
Old 15th May 2011, 15:09   #3005  |  Link
noee
Registered User
 
Join Date: Jan 2007
Posts: 530
Quote:
Originally Posted by VipZ View Post
I am not sure how to roll back changes to compile an older build in git, if you could give me a tip of this, I can do some testing to try find which one broke the sync.
fyi, you can go to the github for LAVFsplitter, choose "History" link on the right, just above the file listing,then you can browse the commits and select a commit, then with the "Download" option you can extract that "branch" and build it.
noee is offline   Reply With Quote
Old 15th May 2011, 15:13   #3006  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
So i have a new theory, maybe its the ffmpeg parser that somehow causes something funny.

Please try this:
http://files.1f0.de/lavf/LAVAudio-0.25-15-g19442af.zip

This version already includes the ffmpeg parsers, but still the old timing logic.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 15th May 2011, 15:20   #3007  |  Link
VipZ
Registered User
 
Join Date: Jun 2009
Location: London
Posts: 378
Quote:
Originally Posted by noee View Post
fyi, you can go to the github for LAVFsplitter, choose "History" link on the right, just above the file listing,then you can browse the commits and select a commit, then with the "Download" option you can extract that "branch" and build it.
Thanks

Quote:
Originally Posted by nevcairiel View Post
So i have a new theory, maybe its the ffmpeg parser that somehow causes something funny.

Please try this:
http://files.1f0.de/lavf/LAVAudio-0.25-15-g19442af.zip

This version already includes the ffmpeg parsers, but still the old timing logic.
Which build should I drop this AX in, or it doesn't matter?
__________________
Windows 11 Pro, CPU: Ryzen 9 5900X, GPU: GeForce RTX 3090 /w 512.95, Audio: HDMI to Yamaha RX-A3060 (5.1)
VipZ is offline   Reply With Quote
Old 15th May 2011, 15:21   #3008  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
The latest one i posted earlier should work, maybe all other 0.25 builds too.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 15th May 2011, 15:24   #3009  |  Link
VipZ
Registered User
 
Join Date: Jun 2009
Location: London
Posts: 378
Quote:
Originally Posted by nevcairiel View Post
The latest one i posted earlier should work, maybe all other 0.25 builds too.
Yep, LAVFilters-0.25-55-g31d0dd6 with the AX from LAVAudio-0.25-15-g19442af fixes the issue
__________________
Windows 11 Pro, CPU: Ryzen 9 5900X, GPU: GeForce RTX 3090 /w 512.95, Audio: HDMI to Yamaha RX-A3060 (5.1)
VipZ is offline   Reply With Quote
Old 15th May 2011, 15:30   #3010  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by nevcairiel View Post
Thats where that extra stream switching filter comes in, basically a multiplexer that takes all decoders, and forwards only the active one to the renderer.
Ah, I see, I missed that part, makes sense to me now.

Quote:
Originally Posted by nevcairiel View Post
But yeah, its not a viable solution, unless a player fully supports this mode.
If you support IAMStreamSelect in one of the filters involved shouldn't that make stream switching work with most players? Maybe you'll have to make LAV Splitter support IAMStreamSelect and then forward that to the switching filter, cause it might be possible that players expect IAMStreamSelect only from the splitter.
madshi is offline   Reply With Quote
Old 15th May 2011, 15:36   #3011  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
Quote:
Originally Posted by madshi View Post
If you support IAMStreamSelect in one of the filters involved shouldn't that make stream switching work with most players? Maybe you'll have to make LAV Splitter support IAMStreamSelect and then forward that to the switching filter, cause it might be possible that players expect IAMStreamSelect only from the splitter.
That would be possible. Maybe i'll build such a multiplexer in due time. Of course it'll look a bit weird in the graph list, say you have 6 audio tracks, you suddenly have 6 decoders in there...

I'll draft up a full concept, and post it for commenting somewhere.

Quote:
Originally Posted by VipZ View Post
Yep, LAVFilters-0.25-55-g31d0dd6 with the AX from LAVAudio-0.25-15-g19442af fixes the issue
I properly fixed the issue now. Thanks for the sample.
The calculation for the DTS durations was off for that file, not sure why. But i changed it, and it should work better now.
I would've kinda hoped that my A/V sync code would've taken care of this, but the timings were drifting apart so fast, that it couldn't keep up.

http://files.1f0.de/lavf/LAVFilters-...6-g41ca5a7.zip
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 15th May 2011 at 15:40.
nevcairiel is offline   Reply With Quote
Old 15th May 2011, 15:46   #3012  |  Link
VipZ
Registered User
 
Join Date: Jun 2009
Location: London
Posts: 378
Quote:
Originally Posted by nevcairiel View Post
I properly fixed the issue now. Thanks for the sample.
The calculation for the DTS durations was off for that file, not sure why. But i changed it, and it should work better now.
I would've kinda hoped that my A/V sync code would've taken care of this, but the timings were drifting apart so fast, that it couldn't keep up.

http://files.1f0.de/lavf/LAVFilters-...6-g41ca5a7.zip
No problem. Thanks, its working good now
__________________
Windows 11 Pro, CPU: Ryzen 9 5900X, GPU: GeForce RTX 3090 /w 512.95, Audio: HDMI to Yamaha RX-A3060 (5.1)
VipZ is offline   Reply With Quote
Old 15th May 2011, 15:55   #3013  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by Mark_A_W View Post
Is there any reason *not* to use LAV Audio for FLAC?
madFlac uses the official FLAC library / source code and has been working for years with perfect A/V sync, no stability problems and bit perfect output, with all kinds of channel configurations, bitdepths and samplerates. AFAIK, the LAV FLAC decoder uses a different code base (not the "official"/original one) and has not been extensively tested yet. Why would you even consider going away from a pretty much perfectly working decoder? I don't really understand that. There's nothing to gain, from what I can see. From my experience, everytime a different FLAC decoder was (accidently) activated on my PC, I ran into all kinds of playback problems. That also includes LAV Audio Decoder, although it was an older version, the problem might be fixed in the latest version.
madshi is offline   Reply With Quote
Old 15th May 2011, 16:16   #3014  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
Yea, ffmpeg implemented their own FLAC decoder, and i'm not sure if its working perfectly.
There was a problem that caused sync issues in earlier LAV Audio versions, but that was fixed a long while ago, and everything is working good now. Since its a lossless codec, we could compare the PCM output, couldn't we?
Anyhow, i don't use FLAC that much, and i have other things to do.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 15th May 2011, 17:15   #3015  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
LAV Filters 0.26
Code:
General
- The VC2010 runtime is no longer required to be installed

LAV Splitter
- Further VC-1 in MKV improvements
- Added a separate "mpegvideo" (m2v files) option to the Format section
- Added a flag for secondary audio streams
- Changed the default DTS media type (better compatibility)

LAV Audio
- Added the ability to use the ArcSoft DTS decoder directly through LAV Audio
- Added an automatic algorithm to keep A/V sync stable
- Improved Bitstreaming with splitters other then LAV Splitter
- Improved timestamp generation when bitstreaming
- Fixed LPCM 24-bit Media Types
Download: Installer (both x86/x64) -- Zips: 32-bit & 64-bit

Using the ArcSoft DTS decoder
LAV Audio can now directly interface with the ArcSoft DTS decoder. You do no longer need any complicated setup or installation.
To use the ArcSoft decoder in LAV Audio, simply get the "dtsdecoderdll.dll" from your TMT3/5 Codecs directory, and put it in the same directory as LAV Audio.
Thats all you need to do, no configuration, no hacked checkactivate.dll, no extra filter to be used.

When playing a file, you can see if its being used on the "Status" page of the LAV Audio propertys sheet. "dca" is the ffmpeg based decoder, "dts" (and any variations of that) is the ArcSoft decoder.

This will allow you full decoding of DTS-HD MA and all other variations of DTS.

One thing, though.
Do NOT ask where to get the ArcSoft decoder. If you own TMT3 or TMT5, it will be in the TMT Codecs folder. If you do not own it, you should buy it. I respect their work, and so should you!

Bitstreaming Improvements
Bitstreaming should now work much better with other splitters. Note that there is still one limitation however, TrueHD only works properly if its actually flagged as TrueHD, and the interleaved AC3 was removed. Therefor, it will most likely not work with Haali and the MPC-HC/Gabest splitters.


As always, please report any regressions or still persistent bugs directly here, with all the relevant details, and if possible a sample file.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 15th May 2011, 17:24   #3016  |  Link
SamuriHL
Registered User
 
SamuriHL's Avatar
 
Join Date: May 2004
Posts: 5,351
Just an FYI...I tested last night's code with MC16 build 160090 and Star Trek 2009 off the disc. I have LAV Audio decoding everything to PCM. I'm using ReClock at the moment for exclusive mode (plan on playing with MC16's exclusive mode at some point, but, in testing I had sync issues). Star Trek was rock solid. That's a good thing as that's always been one of the "trouble" discs for TrueHD. I'm very pleased! Building 0.26 now and will test it out at some point. Thanks, Nev!!
__________________
HTPC: Windows 11, AMD 5900X, RTX 3080, Pioneer Elite VSX-LX303, LG G2 77" OLED
SamuriHL is offline   Reply With Quote
Old 15th May 2011, 18:12   #3017  |  Link
Gleb Egorych
Registered User
 
Join Date: Aug 2008
Posts: 231
Quote:
Originally Posted by nevcairiel View Post
How about that avi crash?
This testing took a bit more time because the bug appeared pretty random. Seems it is fixed . Tested 0.25-53 and slightly 0.26.

I'll also watch if player hang bug is also fixed with those patches.

Thanks, nevcairiel!
Gleb Egorych is offline   Reply With Quote
Old 15th May 2011, 18:35   #3018  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by nevcairiel View Post
Since its a lossless codec, we could compare the PCM output, couldn't we?
Yes, but you'd have to test all bitdepths, channel configurations and samplerates. Furthermore you'd have to test whether the decoder works with all containers (that support FLAC) and all splitters and produces perfect A/V sync with all splitters, including seeking etc. Then, there are also extra tricks to support non-standard channel configurations which I'd bet ffmpeg does not implement by itself. Finally, since ffmpeg is constantly being worked on, with FLAC only being one of the less important small parts of ffmpeg, there's always a chance that some future ffmpeg revision might accidently break something without being noticed. FATE tests don't cover everything.
madshi is offline   Reply With Quote
Old 15th May 2011, 19:31   #3019  |  Link
CruNcher
Registered User
 
CruNcher's Avatar
 
Join Date: Apr 2002
Location: Germany
Posts: 4,926
Crazy we can do DTS-HD MA transcoding live now, i guess madshi helped you here with where to hook into thx
__________________
all my compares are riddles so please try to decipher them yourselves :)

It is about Time

Join the Revolution NOW before it is to Late !

http://forum.doom9.org/showthread.php?t=168004
CruNcher is offline   Reply With Quote
Old 15th May 2011, 19:32   #3020  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
Quote:
Originally Posted by CruNcher View Post
i guess madshi helped you here with where to hook into
Nope, thats all my doing. It actually wasn't that hard to figure out. Just some leg-work, testing and debugging to figure out the arguments.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Reply

Tags
decoders, directshow, filters, splitter

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:19.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.