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 17th May 2011, 19:34   #3181  |  Link
mindbomb
Registered User
 
Join Date: Aug 2010
Posts: 576
question, perhaps slightly off topic since it's likely an arcsoft issue, but do you guys notice that with the arcsoft dll, for anything outside of 6 channels, it can intelligently choose the sample format, but for 6 channels, it always uses 24 bit pcm?

is there a a technical explanation for that?
mindbomb is offline   Reply With Quote
Old 17th May 2011, 20:04   #3182  |  Link
VipZ
Registered User
 
Join Date: Jun 2009
Location: London
Posts: 378
Nev, with some more general use of 0.26 I find that in general the new AV sync option for AC3 bitstreaming causes sync issues. I think DTS is ok, but haven't done much checking on that one.
__________________
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 17th May 2011, 20:12   #3183  |  Link
SamuriHL
Registered User
 
SamuriHL's Avatar
 
Join Date: May 2004
Posts: 5,351
Quote:
Originally Posted by Andy o View Post
There are metadata for proper downmixing in the DTS and Dolby codecs though, and once you've already decoded, it would be hard for the post-processor or renderer to downmix as the encoder intended. I don't see real-world problems with just letting Windows downmix though, but then you have to ditch WASAPI exclusive.
Yea, I guess I see your point. Windows Audio, however? Not a chance in hell in my setup. I don't trust it. Plus it'll upsample (I would hope! ) the audio because you'll at least want it set to 96/24. So a 48/16 native track like Kill Bill would get upsampled to 96/24. Not such a bad thing as it's really just padding, but, unnecessary IMO. Personally in my setup I just decode the audio with the correct number of channels and then let my Pio deal with it.
__________________
HTPC: Windows 11, AMD 5900X, RTX 3080, Pioneer Elite VSX-LX303, LG G2 77" OLED
SamuriHL is offline   Reply With Quote
Old 17th May 2011, 20:14   #3184  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
Quote:
Originally Posted by VipZ View Post
Nev, with some more general use of 0.26 I find that in general the new AV sync option for AC3 bitstreaming causes sync issues. I think DTS is ok, but haven't done much checking on that one.
So when turning it off, you think its better?

If so, then its all in your mind, AC3 is perfectly packed into all containers, the sync option will not affect it at all, unless there is an actual sync problem.
I have not seen a single AC3 file that had any jitter whatsoever, so there is no chance the sync option gets confused (unless you have a special file again). The only possibility would be that my duration calculations for AC3 bitstreaming are wrong, but that would show no matter if the sync option is on or not (same problem DTS suffered from on your special file, but maybe not so severe)

AC3 is really one of the easiest formats to get right, especially because everyone knows how to mux it perfectly, so i don't see any margin for error there.

I should really figure out a way for you to produce debug logs. Every action the AV sync option takes is output there, if it does anything at all.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 17th May 2011 at 20:20.
nevcairiel is online now   Reply With Quote
Old 17th May 2011, 20:18   #3185  |  Link
Andy o
Registered User
 
Join Date: Mar 2009
Posts: 962
Quote:
Originally Posted by SamuriHL View Post
Yea, I guess I see your point. Windows Audio, however? Not a chance in hell in my setup. I don't trust it. Plus it'll upsample (I would hope! ) the audio because you'll at least want it set to 96/24. So a 48/16 native track like Kill Bill would get upsampled to 96/24. Not such a bad thing as it's really just padding, but, unnecessary IMO. Personally in my setup I just decode the audio with the correct number of channels and then let my Pio deal with it.
The Pioneers have a similar "virtual" back channel option than what I mentioned about the Windows mixer, and I would use it if I only ran 5.1 channels. I see Windows's mixer getting a bad rap almost everywhere, but really, I haven't seen much evidence of it messing up anything substantial. Resampling (changing sample rate) is not just padding though, but again, haven't seen evidence that Windows's resampling is bad at all. I don't think it's that hard to do good resampling these days anyway, and even then, you can resample with ReClock to whatever Windows is set at, and it won't do again even if not using WASAPI exclusive.

My main reason not to use it is the channel switching, but that's more of a problem when you're running 7.1 channels. If I was using just 5.1 I'd probably be happy with DirectSound.

Last edited by Andy o; 17th May 2011 at 20:21.
Andy o is offline   Reply With Quote
Old 17th May 2011, 20:22   #3186  |  Link
VipZ
Registered User
 
Join Date: Jun 2009
Location: London
Posts: 378
Quote:
Originally Posted by nevcairiel View Post
So when turning it off, you think its better?

If so, then its all in your mind, AC3 is perfectly packed into all containers, the sync option will not affect it at all, unless there is an actual sync problem.
I have not seen a single AC3 file that had any jitter whatsoever, so there is no chance the sync option gets confused (unless you have a special file again). The only possibility would be that my duration calculations for AC3 bitstreaming are wrong, but that would show no matter if the sync option is on or not (same problem DTS suffered from on your special file, but maybe not so severe)
Yep, for me bitstream with it off is the same as decoded with it on, I find it quite clear that the sync is bit off with it on when bitstreaming. If I had to guess I would put it at around 400ms.

Edit: I have VS installed, so just let me know on what debugging or whatever you need me to do
__________________
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; 17th May 2011 at 20:30.
VipZ is offline   Reply With Quote
Old 17th May 2011, 20:26   #3187  |  Link
Andy o
Registered User
 
Join Date: Mar 2009
Posts: 962
Quote:
Originally Posted by mindbomb View Post
question, perhaps slightly off topic since it's likely an arcsoft issue, but do you guys notice that with the arcsoft dll, for anything outside of 6 channels, it can intelligently choose the sample format, but for 6 channels, it always uses 24 bit pcm?

is there a a technical explanation for that?
I don't know why, might be a harmless bug, but I can confirm it, at least with 5.1 vs 7.1 16-bit content.
Andy o is offline   Reply With Quote
Old 17th May 2011, 20:29   #3188  |  Link
SamuriHL
Registered User
 
SamuriHL's Avatar
 
Join Date: May 2004
Posts: 5,351
Quote:
Originally Posted by Andy o View Post
The Pioneers have a similar "virtual" back channel option than what I mentioned about the Windows mixer, and I would use it if I only ran 5.1 channels. I see Windows's mixer getting a bad rap almost everywhere, but really, I haven't seen much evidence of it messing up anything substantial. Resampling (changing sample rate) is not just padding though, but again, haven't seen evidence that Windows's resampling is bad at all. I don't think it's that hard to do good resampling these days anyway, and even then, you can resample with ReClock to whatever Windows is set at, and it won't do again even if not using WASAPI exclusive.

My main reason not to use it is the channel switching, but that's more of a problem when you're running 7.1 channels. If I was using just 5.1 I'd probably be happy with DirectSound.
I have a bad taste in my mouth when it comes to Windows Audio. Probably because I suffered through TMT3's evolution of decoding. And have seen numerous problems with PDVD's channel mapping over the years, as well. Is that a Windows Audio problem? Not entirely, but, it certainly didn't help matters. For me I want it simple...decode audio, send decoded audio *AS IS* to the receiver. I trust my Pio. I don't trust Windows. That's why I've preferred bitstreaming all these past few years. However, I'm ok with decoding if I can get the decoded PCM to the receiver untouched. For that I need exclusive mode. ReClock is working well for that right now and MC16 is something I need to test more. In any case, I'm good.
__________________
HTPC: Windows 11, AMD 5900X, RTX 3080, Pioneer Elite VSX-LX303, LG G2 77" OLED
SamuriHL is offline   Reply With Quote
Old 17th May 2011, 20:29   #3189  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
Quote:
Originally Posted by VipZ View Post
Yep, for me bitstream with it off is the same as decoded with it on, I find it quite clear that the sync is bit off with it on when bitstreaming. If I had to guess I would put it at around 400ms.
Like i said, i don't think thats possible, unless you have some kind of broken file that i have not encountered before.

The A/V sync option is not constantly adjusting things, its just monitoring, and keeping track of things. If it sees a drift in timestamps, it'll adjust. But it really has to go bad for that to happen.

Maybe i should've named it differently, so peoples minds dont directly associate it with any sync issues they think to see. Its a funny thing, really. To a certain degree, if you think there are issues, you'll see issues.

Does it happen for all AC3 files?

You're compiling now, right?
You can launch MPC-HC from within Visual Studio, and get me a debug log.

- Set workspace profile to debug
- Set LAV Audio as startup project (right click on it in the solution explorer)
- Open LAV Audio project properties, in the Debugging tab (under Configuration Properties), set the MPC-HC executable as "Command"

Remember to register the output file with regsvr32 first, don't move it, it has to stay in the output folder (bin_Win32d)

Launch, open file, watch the Output box. All the thread infos and dll loading messages you can ignore, but during playback LAV Audio will say something like "Jitter Stats: min: 0 - max: 0 - avg: 0", 0's everwhere are perfect.
If the A/V sync option does somethign, it'll say "::Deliver(): corrected A/V sync by <number>"

Look for those.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 17th May 2011 at 20:36.
nevcairiel is online now   Reply With Quote
Old 17th May 2011, 20:44   #3190  |  Link
VipZ
Registered User
 
Join Date: Jun 2009
Location: London
Posts: 378
Ok I will do that and let you know.
With the sync at 1st its always ok, but at some stage it does seem to change, its not a drifting sync. I will watch something with it on and keep my eye on the debugging to see if the event you mentioned shows.
__________________
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 17th May 2011, 20:45   #3191  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
I'll try to get soem debug file logging going.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is online now   Reply With Quote
Old 17th May 2011, 21:05   #3192  |  Link
VipZ
Registered User
 
Join Date: Jun 2009
Location: London
Posts: 378
Here is the debug log http://www.mediafire.com/?y96sec6k4p9pbgw

There weren't any AV sync messaged you asked to look out for, maybe that log will prove it my mind playing tricks on me or there is a possible issue

Surprised I got it going without much effort
__________________
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 17th May 2011, 21:26   #3193  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
Yeah that looks perfect, jitter is constantly 0, no A/V sync messages. No other warnings or errors.

The A/V sync option has no influence whatsoever in that log, and from what i can see, sync should just be perfect.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 17th May 2011 at 21:30.
nevcairiel is online now   Reply With Quote
Old 17th May 2011, 21:30   #3194  |  Link
VipZ
Registered User
 
Join Date: Jun 2009
Location: London
Posts: 378
I guessed as much, maybe the file is just bit bad or my mind is playing ticks on me.
__________________
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 17th May 2011, 21:31   #3195  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
If its just the file, it doesn't make sense that toggling the option changes anything
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is online now   Reply With Quote
Old 17th May 2011, 21:38   #3196  |  Link
VipZ
Registered User
 
Join Date: Jun 2009
Location: London
Posts: 378
lol fine, then it must be me
__________________
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 17th May 2011, 21:44   #3197  |  Link
assassinhtpc
Registered User
 
assassinhtpc's Avatar
 
Join Date: May 2011
Posts: 21
Any issues with live tv files?
assassinhtpc is offline   Reply With Quote
Old 17th May 2011, 22:02   #3198  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
For the future, i just added debug logging into a file to LAV Splitter and LAV Audio. Both will dump their log into LAVAudio.txt and LAVSplitter.txt respectively, on your Desktop. Of course only when running debug builds, but no longer required to run it from a debugger or anything like that.

I'll be supplying debug versions of those two dlls with the next release as well then.

PS: The log files will be truncated every launch, so only one run will be shown in there. But at least the files don't grow excessively.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 17th May 2011 at 22:09.
nevcairiel is online now   Reply With Quote
Old 17th May 2011, 22:51   #3199  |  Link
VipZ
Registered User
 
Join Date: Jun 2009
Location: London
Posts: 378
Cool, at least I got to play with debugging in VS before you made it nice and easy.

Is there any negative aspect to run the debug builds most of the time?
__________________
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 17th May 2011, 23:10   #3200  |  Link
glorp
Registered User
 
Join Date: Apr 2010
Posts: 49
I apologize if this is a known problem but the thread is long and the changes are fast

I have a couple of mkv files with a 768k DTS 1.0 (core only no -HD MA) stream in them (old ~1968-1970 films that originally had mono PCM audio). These DTS audio streams don't decode with LAV Audio on PC with a 2.0 speaker system. I can bitstream it with LAV Audio on a different PC that goes to a receiver with 5.1 configuration. I can decode the DTS 1.0 stream to the 2.0 speakers when I use MPC's internal DTS codec or AC3Filter just fine, but it's a total no-go with LAV. MPC just hangs and never starts playing the file at all. Interestingly the Arcsoft decoder from TMT2 (1.1.0.8) can't handle it either. At least when I try to decode the stream to PCM or wav with eac3to, it throws an error and quits.

So is this just me or is it a bug?

Oh, and stellar job on the filters in general. Incredible effort.

Last edited by glorp; 17th May 2011 at 23:15.
glorp 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 13:47.


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