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. |
7th January 2020, 22:17 | #1 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,547
|
BestAudioSource
Imagine if FFAudioSource actually worked and was accurate (but a bit slow). That's what I'm going for here. Also no indexing required...
Usage: Code:
BestAudioSource(filename, track=-1) or vs.core.bas.Source(filename, track=-1) Full argument list: [source]s[track]i[adjustdelay]i[exactsamples]b[enable_drefs]b[use_absolute_path]b[drc_scale]f[varprefix]s Github release page For you poor avisynth users it sets two variables: BASCHANNEL_LAYOUT and BASVALID_BITS that can also be prefixed if needed. TODO: Delay adjustment relative to other tracks is missing. This is the only feature missing relative FFMS2.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet Last edited by Myrsloik; 15th September 2021 at 19:35. Reason: New version |
8th January 2020, 11:18 | #2 | Link |
Big Bit Savings Now !
Join Date: Feb 2007
Location: close to the wall
Posts: 1,531
|
Many thanks !
First test: Maybe I understood channel mapping wrong... Decoding a spoken 6ch (5.1) .wmv test file seems to deliver one single channel's source content mapped onto all 6 outputs. AvsPmod waveform() shows it as such. MPC-BE64 1.5.4.4969 plays the script back and returns "Right surround" on all 6 outputs. MPC-HC64 1.9.0 plays the script back and returns "Right surround" on all 6 outputs. Built-in LAV Audio Decoder Status shows 6 sychronous channels. Same content as .aiff: same result. Same content as .ac3: same result. track=-1 and track=0 deliver the same. After switching the same script, same sources over to LWLibavAudioSource: Testing .wmv, ac3, aiff: All audio channels mapped correctly.
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain) "Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..." Last edited by Emulgator; 8th January 2020 at 11:26. |
8th January 2020, 13:29 | #3 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,547
|
Nicely tested. New build with fixed output uploaded. There's also a new argument called exactsamples you can set to true if you want opening files to be really slow but for some reason need a completely sample exact length.
A VS version will follow shortly after the worst bugs have been dealt with.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
8th January 2020, 22:46 | #5 | Link | |
Registered User
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
|
Since sources now hosted on github, I've built doodle1 and bas on my end and tried to run some mp4 file with it. VSPipe simply refuse to initialize environment in portable mode. So I tried to replace dlls/pyd files and core folder. Now VSPipe silently crashing for audio nodes and errors out
Quote:
|
|
9th January 2020, 01:26 | #7 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,547
|
It uses linear decoding to be sample accurate so it is quite slow when you do that. (quite a few caching tricks and multiple decoders are used to hide it when seeking but initially it'll always be sloooooow)
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
9th January 2020, 13:27 | #9 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,547
|
Completely uninteresting. As I said the VS audio support is only about 80% done so not ready to use at all. Don't scare away the avisynth monkeys this source actually works for.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
10th January 2020, 00:41 | #11 | Link |
Big Bit Savings Now !
Join Date: Feb 2007
Location: close to the wall
Posts: 1,531
|
BestAudioSource test2: Success !
.aiff, .wmv, .ac3: 6 channel 5.1 files are returned in their order. .MTS: 2 channel 2.0 files do work as well Only short files tested for now. Other rare formats to come soon. Many thanks !
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain) "Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..." |
10th January 2020, 14:05 | #12 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,547
|
Quote:
1. Badly combined transport streams with timecode discontinuities. (as in, is the initial estimate of the number of frames actually accurate enough or completely off?) 2. Streams with audio format changes (audio format changes are handled by simply dropping the bits with where the format doesn't match the output)
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
25th January 2020, 16:44 | #13 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,547
|
Updated version. Fixes the channel mask variable that was previously almost always wrong in Avisynth. Also adds VS support (for a soon to be released test build).
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
11th May 2020, 08:41 | #15 | Link | ||
Registered User
Join Date: Mar 2012
Location: Texas
Posts: 1,664
|
Hi Myrsloik,
Question, are the "adjustdelay" and "varprefix" parameters the same as FFMS2? I see "varprefix" is only for AviSynth. From FFMS2 docs: Quote:
Quote:
|
||
11th May 2020, 09:02 | #16 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,547
|
Quote:
Obviously varprefix is only needed when you dump it all into a global namespace...
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
13th June 2020, 13:08 | #18 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,547
|
New version posted. If you're nice forum monkeys and test my VapourSynth audio builds I may be convinced to add 24bit bit audio output for Avisynth as well as some other minor improvements.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
13th June 2020, 15:36 | #19 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Arh but, will it be XP compatible ?
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
13th June 2020, 17:20 | #20 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,547
|
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
Thread Tools | Search this Thread |
Display Modes | |
|
|