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 Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 14th March 2007, 22:20   #81  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
thanks tebasuna51 , i will do some more test

but is very strange that bepipe starts encoding very quickly, while soundout seems to seat down...

also thanks about ensure and convert, i will remove it when not necessary

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 16th March 2007, 15:35   #82  |  Link
hatte
Years of lurkin!)
 
Join Date: Jul 2004
Location: Russia
Posts: 11
Thanks for great plugin, works fine, but

1. Feature request. Please add general script parameter "overwrite" that controls the behavior of encoding to existing file.
2. Got "Vorbis Encoder", "An encoder error occured while initializing the encoder". If soundout uses an external one, I have a bunch of vorbis.acm and vorbisenc.dll in system... Script is avisource(...).soundout(). Source - dvsd (badly clipped).

Last edited by hatte; 16th March 2007 at 15:38.
hatte is offline   Reply With Quote
Old 16th March 2007, 19:55   #83  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 5,694
One more request if possible for next release:

- I think the presets for mp3 vbr are a bit obsolete, now we use quality 0 to 9.

- The 'fast' now is not important.

- Low bitrates (for low quality players, headphones, ...) can't be accessed (Medium is too much quality).

- Codes for vbrpreset (1001-1007) can be replaced by 0-9 like -V lame parameter.
tebasuna51 is offline   Reply With Quote
Old 18th March 2007, 13:02   #84  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
@hatte:

1) Agree. I plan to add a simple Yes/No/Ask option.
2) You probably hit an internal Vorbis limitation, probably samplerate-related.

@tebasuna51: I noticed the change in LAME. IMO the presets are a bit more descriptive than 0 to 9. "Fast" is still faster, although only about 50%.

The names are aliases for VBR quality 0,2,4. If things still are as they were some time ago, ABR is recommended for bitrates below the one at quality 4. Low bitrate presets are aliases for ABR-presets.

If things have changed I can add GUI for quality 6 and 8. If you use script only you can actually specify the "missing" quality settings, like this:
Code:
SoundOut(output="mp3", mode=0, vbrpreset=410)
where:
V9 = 410, V8 = 420, V7 = 430, V6 = 440, V5 = 450, V4 = 460, V3 = 470, V2 = 480, V1 = 490, V0 = 500
__________________
Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Old 1st April 2007, 20:59   #85  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
rarely (appened only two time) sound out will crash

this is the crash report of virtualdub http://www.64k.it/andres/data/a/crashinfo.txt

this is the avs script

Code:
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\NicAudio.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\SoundOut.dll")
NicAC3Source("C:\video\projects\temp\fixed1.ac3")
Normalize()
#Applying STEREO downmixing routines
function stereo(clip a)
{
flr = GetChannel(a, 1, 2)
fcc = GetChannel(a, 3)
lfe = GetChannel(a, 4)
lfc = MixAudio(fcc, lfe, 0.2071, 0.2071)
mix = MergeChannels(lfc, lfc)
lrc = MixAudio(flr, mix, 0.2929, 1.0)
blr = GetChannel(a, 5, 6)
Return MixAudio(lrc, blr, 1.0, 0.2929)
}
#
6==Audiochannels() ? stereo() : last
Soundout(output="cmd",type=1,format=3,autoclose=true,executable="C:\Program Files\AutoMKV\exe\besweet\neroaacenc.exe",prefilename=" -ignorelength -q 0.50 -if - -of audio.mp4",postfilename="",nofilename=true,showoutput=false)
the file is opened by virtual dub , with this command
Code:
"C:\Program Files\AutoMKV\exe\BeSweet\vdub.exe" /x "C:\video\projects\temp\mkvmaudio.avs"
i cannot provide the audio source but i suppose that could be caused by some crc error on original ac3 file

thanks!

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 2nd April 2007, 01:32   #86  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 5,694
And with:
Code:
SoundOut(output="cmd", filename="X:\yourpath\audio.mp4", type=0, autoclose=true, executable="C:\Program Files\AutoMKV\exe\besweet\neroaacenc.exe", prefilename="-q 0.5 -ignorelength -if - -of")
also crash?

(Normalize is recommended after the downmix).

Last edited by tebasuna51; 2nd April 2007 at 01:37.
tebasuna51 is offline   Reply With Quote
Old 2nd April 2007, 08:29   #87  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
Thanks tebasuna51!

normalize already after downmixing , about filename="X:\yourpath\audio.mp4" i will add this to the command line

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 2nd April 2007, 08:54   #88  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
tested, not working

the prefilename must be prefilename=" -ignorelength -q 0.35 -if - -of audio.mp4" , specifyng only filename="X:\yourpath\audio.mp4" isn't enough

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 2nd April 2007, 13:19   #89  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 5,694
Quote:
Originally Posted by buzzqw View Post
the prefilename must be prefilename=" -ignorelength -q 0.35 -if - -of audio.mp4" , specifyng only filename="X:\yourpath\audio.mp4" isn't enough
with 'filename' parameter the 'prefilename' must finish with "... -of" like here (simplified):
Code:
NicAC3Source("C:\video\projects\temp\fixed1.ac3")
6==Audiochannels() ? stereo() : last
Normalize()
Soundout(output="cmd", filename="X:\yourpath\audio.mp4", type=0, autoclose=true, executable="C:\Program Files\AutoMKV\exe\besweet\neroaacenc.exe", prefilename="-q 0.5 -ignorelength -if - -of")
Is only to test if the crash is for sintax (I test my suggested sintax many times without problems) or for the ac3.
tebasuna51 is offline   Reply With Quote
Old 28th May 2007, 18:50   #90  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
Here is a small update:

v1.0.1
- Updated libaften to rev. 512.
- Added overwritefile="yes"/"no"/"ask". Default is Ask.
__________________
Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Old 18th July 2007, 22:06   #91  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
Another bugfix release:

v1.0.2
- Updated libaften to rev534.
- Fixed overwriteFile not being recognized in script.
- Fixed crash if mp2 file could not be opened for writing.
- Exit blocked, even if filter is (almost) instantly destroyed, if script is set for output.
- AC3 is now reporting the actual samples encoded (including padding).
__________________
Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Old 19th July 2007, 14:48   #92  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
Thanks Sh0dan!

one hunble request/question.. how to use trim ?

this is my script (example)

Code:
LoadPlugin("C:\Programmi\PureBasic402\AutoMKV\exe\filter\NicAudio.dll")
LoadPlugin("C:\Programmi\PureBasic402\AutoMKV\exe\filter\SoundOut.dll")
NicAC3Source("C:\Programmi\PureBasic402\AutoMKV\test\temp\fixed1.ac3")
#Applying STEREO downmixing routines
function stereo(clip a)
{
flr = GetChannel(a, 1, 2)
fcc = GetChannel(a, 3)
lfe = GetChannel(a, 4)
lfc = MixAudio(fcc, lfe, 0.2071, 0.2071)
mix = MergeChannels(lfc, lfc)
lrc = MixAudio(flr, mix, 0.2929, 1.0)
blr = GetChannel(a, 5, 6)
Return MixAudio(lrc, blr, 1.0, 0.2929)
}
#
6==Audiochannels() ? stereo() : last
Normalize()
Soundout(output="cmd",type=1,format=3,autoclose=true,executable="C:\Programmi\PureBasic402\AutoMKV\exe\besweet\neroaacenc.exe",prefilename=" -ignorelength -q 0.35 -if - -of audio.mp4",postfilename="",nofilename=true,showoutput=false)
how i can use trim to cut ? (i have done some test.. but always negative)

thanks!

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 19th July 2007, 16:09   #93  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
The easiest way is to add video. Here is a script I've used. It adds video, at 100fps, matching the length of the audio:
Code:
function addvideo(clip c) {
	blankclip(length = int(100.0 * AudioLengthF(c) / float(audiorate(c))), fps=100)
	return audiodub(last,c)
}
This way, you can add video, and multiply your times in seconds by 100 (or dividing by 10, if you use milliseconds).
__________________
Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Old 19th July 2007, 18:15   #94  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
ok, got it (i will use video framerate... much simplier)

thanks! (as usuall)

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 20th July 2007, 12:45   #95  |  Link
tin3tin
Registered User
 
tin3tin's Avatar
 
Join Date: Mar 2005
Posts: 365
Great plugin!

Two thoughts:

1) If overwritefile="No" then no ask promt should be opened. Soundout should just quit the job. (This would be very helpful because when using SoundOut in HcEnc an avisynth script is opened twice: first for getting info(SoundOut will start and render), second for rendering(SoundOut will run and render the file again). So if overwritefile="no" with no question then SoundOut will only run once automatically.

2) The other thought is that in my opinon 'autoclose' should close the progress window when finished rendering, or else maybe a 'wait' function should be made for the waiting purpose?

Anyway thanks for a top notch plugin!
__________________
DVD slideshow GUI(Freeware).

Last edited by tin3tin; 20th July 2007 at 12:48.
tin3tin is offline   Reply With Quote
Old 20th July 2007, 13:27   #96  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
@tin3tin:

1) I experienced exactly the same not an hour ago - also with HC. I agree completely.

2) It will probably be a wait parameter.
__________________
Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Old 23rd July 2007, 20:17   #97  |  Link
tin3tin
Registered User
 
tin3tin's Avatar
 
Join Date: Mar 2005
Posts: 365
I've added your great SoundOut plugin to DVD slideshow GUI. It works fine on my computer, however there has been a report on SoundOut not shutting down properly when exporting ac3.
http://forum.videohelp.com/topic245071-300.html#1732067
I have no idear what's causing this, what do you think?
__________________
DVD slideshow GUI(Freeware).
tin3tin is offline   Reply With Quote
Old 24th July 2007, 11:55   #98  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
@tin3tin: There seems to be a deadlock in aften, when encoding using multiple threads (which is autodetected by libaften). I will have do disable multithreading inside aften to fix this. SoundOut is multithreaded by itself, so I don't think it will be a big change on dualcore anyway.

Opened bug here:
https://sourceforge.net/tracker/?fun...roup_id=173013

There is a hang-on-exit, if the encoder fails to initialize, but that is unrelated (and will be fixed in next version).
__________________
Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Old 24th July 2007, 19:29   #99  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
New version:

v1.0.3
- Vorbis, AC3 and MP3 now checks if file can be created.
- Fixed hang in aften on multiprocessor machines.
- Added wait parameter, how many seconds should SoundOut wait on autoclose.
- Avoid lockup if encoder cannot be initialized and set for direct output.
- Fixed OverwriteFile was not always being respected.
__________________
Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Old 24th July 2007, 22:30   #100  |  Link
tin3tin
Registered User
 
tin3tin's Avatar
 
Join Date: Mar 2005
Posts: 365
Thanks

Quote:
- Added wait parameter, how many seconds should SoundOut wait on autoclose.
- Avoid lockup if encoder cannot be initialized and set for direct output.
- Fixed OverwriteFile was not always being respected.
That works fine here as well.

Quote:
- Fixed hang in aften on multiprocessor machines.
I don't have a multiprocessor machine, but hopfully the one who reported the hang will let me know if this solved his problem.

[EDIT: The hang is fixed too]
__________________
DVD slideshow GUI(Freeware).

Last edited by tin3tin; 25th July 2007 at 08:03.
tin3tin 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 06:03.


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