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 > Avisynth Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th June 2020, 10:46   #21  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
Can I save the output as a wav file with vspipe?

I tried
Code:
c = core.core.bas.Source(r"d:\test.mp3")
c.set_output(0)
Code:
.\VSPipe.exe  --wav .\bla.vpy -  > asd.wav
But the output is not readable.

EDIT ok the problem was powershell, it works in CMD

And it works with mkv (video) files too!
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database

Last edited by ChaosKing; 15th June 2020 at 10:51.
ChaosKing is offline   Reply With Quote
Old 15th June 2020, 11:00   #22  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,547
Quote:
Originally Posted by ChaosKing View Post
Can I save the output as a wav file with vspipe?

I tried
Code:
c = core.core.bas.Source(r"d:\test.mp3")
c.set_output(0)
Code:
.\VSPipe.exe  --wav .\bla.vpy -  > asd.wav
But the output is not readable.

EDIT ok the problem was powershell, it works in CMD

And it works with mkv (video) files too!
Protip: don't use pipe output (-) and specify a filename directly instead for faster operation
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 15th June 2020, 11:16   #23  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
Ah, good to know thx.

My main goal was to pipe it directly to qaac which now works
Code:
VSPipe.exe  --wav bla.vpy - | qaac.exe -a 160 - -o xyz.m4a
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 24th June 2020, 14:32   #24  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,547
Test6 posted.

Fixes clips with more than 2^31 samples in VS and adds 24 bit output to avisynth.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 13th October 2020, 10:58   #25  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
where is the source code? or it's a closed source plugin?
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 13th October 2020, 12:29   #26  |  Link
DJATOM
Registered User
 
DJATOM's Avatar
 
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
https://github.com/vapoursynth/bestaudiosource
__________________
Me on GitHub
PC Specs: Ryzen 5950X, 64 GB RAM, RTX 2070
DJATOM is offline   Reply With Quote
Old 14th October 2020, 01:44   #27  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by DJATOM View Post
thanks, and since it only for audio why the dll is so big?
also aside from no index, it should did better than ffaudiosource or not?
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 14th October 2020, 09:34   #28  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,547
Quote:
Originally Posted by real.finder View Post
thanks, and since it only for audio why the dll is so big?
also aside from no index, it should did better than ffaudiosource or not?
It's big so YOU WILL RESPECT IT. No small weak ass 100kb dlls here. This is INDUSTRIAL SIZE AND STRENGTH with COMPLETE CORRECTNESS AND SUPERIORITY.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 14th October 2020, 10:10   #29  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by Myrsloik View Post
It's big so YOU WILL RESPECT IT. No small weak ass 100kb dlls here. This is INDUSTRIAL SIZE AND STRENGTH with COMPLETE CORRECTNESS AND SUPERIORITY.
lol, isn't because it used full ffmpeg with even video encoders? or at least that the case in ffms2 and LSMASHSource from what I remember from some doom9 posts back then
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 14th October 2020, 10:16   #30  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
BestAudioSource radiates so much dominance that it is the only dll on my system now! No more Ntdll.dll, no System32.dll only BestAudioSource.dll. Windows boots in 0.3 sec now
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 14th October 2020, 12:53   #31  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,150
Can you support avs+ 32 bit??
kedautinh12 is offline   Reply With Quote
Old 14th October 2020, 13:00   #32  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,547
Quote:
Originally Posted by kedautinh12 View Post
Can you support avs+ 32 bit??
It's open source so anyone can compile it. I SHALL HOWEVER NOT SUPPORT THESE SLIGHTLY SMALLER BINARIES.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 14th October 2020, 17:36   #33  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
To whom this may interest...

upx 3.96 can shrink the B.A.S..dll to "only" 6,046,720 bytes

Anyway, I will wait until it receives the production model certification
filler56789 is offline   Reply With Quote
Old 16th October 2020, 14:05   #34  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by filler56789 View Post
To whom this may interest...

upx 3.96 can shrink the B.A.S..dll to "only" 6,046,720 bytes

Anyway, I will wait until it receives the production model certification
that way better, but is this with BestAudioSource using full ffmpeg or with only audio decoders ffmpeg?
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 16th October 2020, 14:46   #35  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
Quote:
Originally Posted by real.finder View Post
that way better, but is this with BestAudioSource using full ffmpeg or with only audio decoders ffmpeg?
Well, with full ffmpeg, I presume. I don't compile Avisynth /Vapoursynth DLLs, I can only use them and test them
filler56789 is offline   Reply With Quote
Old 19th October 2020, 07:27   #36  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,150
Quote:
Originally Posted by Myrsloik View Post
It's open source so anyone can compile it.
Sr, i don't have knowledge about compile
kedautinh12 is offline   Reply With Quote
Old 16th November 2020, 19:05   #37  |  Link
Forcewielder
Registered User
 
Join Date: Jan 2020
Posts: 4
I'm getting a BestAudioSource.dll crash when piping a avs script via ffmpeg.

Same script works fine with FFMS2 on different files. Although FFMS2 has issues with audio on some files so that is why I wanted to start using BestAudioSource. Also BestAudioSource seems to work fine with other files as well. So might be something with this problematic file.

Faulting application name: ffmpeg.exe, version: 0.0.0.0, time stamp: 0x00000000
Faulting module name: BestAudioSource.dll, version: 0.0.0.0, time stamp: 0x5f268cbf
Exception code: 0xc0000409
Fault offset: 0x0000000000a30014
Faulting process id: 0x1960
Faulting application start time: 0x01d6bc40c325dec3
Faulting application path: C:\Tools\ffmpeg.exe
Faulting module path: C:\Tools\BestAudioSource.dll
Report Id: 3ba5cb97-1f96-47dc-a6a7-0193d0a5a162
Faulting package full name:
Faulting package-relative application ID:

I attached a log of "!analyze -v" of the dmp.

It seems to point to BestAudioSource!VapourSynthPluginInit2+907594

(0xc0000409 - The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application.)
Attached Files
File Type: txt BestAudioSource.txt (8.2 KB, 41 views)
File Type: txt testavs.txt (542 Bytes, 38 views)
Forcewielder is offline   Reply With Quote
Old 17th August 2021, 19:56   #38  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,547
Updated with several new options, including drc_scale.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 17th August 2021, 20:54   #39  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Quote:
Originally Posted by Myrsloik View Post
Updated with several new options, including drc_scale.
Thank you for the update . Regarding the new options, what's documented in ffmpeg is correct, right? Only difference I see is that drc_scale is 0 by default in BestAudioSource and 1 in ffmpeg.

Code:
enable_drefs
    Enable loading of external tracks, disabled by default.

use_absolute_path
    Allows loading of external tracks via absolute paths, disabled by default.

drc_scale 
    Dynamic Range Scale Factor. The factor to apply to dynamic range values from the AC-3 stream. This factor is applied exponentially. 
    The default value is 0. There are 3 notable scale factor ranges:

    drc_scale == 0
        DRC disabled. Produces full range audio.

    0 < drc_scale <= 1
        DRC enabled. Applies a fraction of the stream DRC value. Audio reproduction is between full range and full compression. 

    drc_scale > 1
        DRC enabled. Applies drc_scale asymmetrically. Loud sounds are fully compressed. Soft sounds are enhanced.
Edit: is adjustdelay still not implemented?

Last edited by Reel.Deel; 17th August 2021 at 21:14.
Reel.Deel is offline   Reply With Quote
Old 17th August 2021, 21:53   #40  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,547
Quote:
Originally Posted by Reel.Deel View Post
Thank you for the update . Regarding the new options, what's documented in ffmpeg is correct, right? Only difference I see is that drc_scale is 0 by default in BestAudioSource and 1 in ffmpeg.

Code:
enable_drefs
    Enable loading of external tracks, disabled by default.

use_absolute_path
    Allows loading of external tracks via absolute paths, disabled by default.

drc_scale 
    Dynamic Range Scale Factor. The factor to apply to dynamic range values from the AC-3 stream. This factor is applied exponentially. 
    The default value is 0. There are 3 notable scale factor ranges:

    drc_scale == 0
        DRC disabled. Produces full range audio.

    0 < drc_scale <= 1
        DRC enabled. Applies a fraction of the stream DRC value. Audio reproduction is between full range and full compression. 

    drc_scale > 1
        DRC enabled. Applies drc_scale asymmetrically. Loud sounds are fully compressed. Soft sounds are enhanced.
Edit: is adjustdelay still not implemented?
It's drc off by default since that's what's supposedly the "original" audio. The standard is kinda muddled and there's loads of confusion as to what the default is. By default I'd say keeping the full dynamic range is the most appropriate.

Yes, delay adjustment is boring but maybe I'll get to that at some point now that all core things are done and tested.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Reply

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 11:23.


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