Log in

View Full Version : BeSweet with Aften on long 5.1 files


Nick
13th May 2007, 19:11
I am trying to get 5.1 AC3 audio from NTSC to PAL using BeSweet, calling Aften via bsn.dll

Example commandline

BeSweet.exe -core( -input C:\temp\Extracted_audio_1.ac3 -output C:\temp\Encoded_audio_1.ac3 -logfile C:\temp\Encoded_audio_1.log ) -azid( -c normal -g max ) -ota( -r 23976 25000 ) -bsn( -exe aften.exe -b 384 -6chnew -readtoeof 1)

Essentially, this commandline is generated by DVD2SVCD using 2lame for mp2 encoding. I have written a simple batch file to parse the command line and run Besweet, substituting the 2lame parameters for bsn/Aften parameters, thus getting AC3 output.

This works fine for small files but Besweet either hangs without -readtoeof 1, or exits with it at the 2h 04m mark. I have seen others with similar problems but the solutions tended to either involve an intermediate wav file, which I am keen to avoid, or GUI applications where I need commandline.

Is there any easy way to overcome this limitation of the technique I use or are there any other simple ways to achieve this conversion as a "one application" event?

Thanks in advance to anyone who may be able to help.
Nick

Kurtnoise
13th May 2007, 23:11
Is there any easy way to overcome this limitation of the technique I use ?

Yes, by updating your bsn (http://kurtnoise.free.fr/index.php?dir=BeLight/&file=bsn_20070513.zip) lib...:)

Nick
14th May 2007, 00:35
Ah. Looked for an update but couldn't find one.
Your site was misbehaving earlier - getting "couldn't find server at..." and 404 errors. It's fine now, though.

And thanks for the update - it works a treat.

tebasuna51
14th May 2007, 01:38
@Kurtnoise, only you can do this solution.

But for me -ota( -r 23967 25000 ) don't work at all, even for stereo and little files, always:
BeSweet v1.5b31 by DSPguru.
--------------------------
Using Shibatch.dll v0.25 by Naoki Shibata & DSPguru (shibatch.sourceforge.net).
Using bsn.dll replacement by Dimzon & Kurtnoise, Build May 14 2007, 00:00:26

Logging start : 05/14/07 , 02:28:56.

D:\Programa\Audio\besweet\BeSweet.exe -core( -input G:\temp\DD_EX\Jap6ex.wav -output G:\temp\DD_EX\Jap6ex_1.ac3 -logfile G:\temp\DD_EX\Jap6ex_1.log ) -bsn( -exe aften.exe -b 384 -6chnew ) -ota( -r 23967 25000 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : G:\temp\DD_EX\Jap6ex.wav
[00:00:00:000] | Output: G:\temp\DD_EX\Jap6ex_1.ac3
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] +-------- FRC --------
[00:00:00:000] | Source Frame-Rate: 23967
[00:00:00:000] | Dest. Frame-Rate: 25000
[00:00:00:000] +---------------------

And crash.
And soundtouch only work for stereo.

@Nick, maybe you can use Bepipe-AviSynth with your decoder:
bepipe --script "NicAc3Source(^C:\temp\your.ac3^, DRC=1).TimeStretch(tempo=104.2709).Normalize()" | Aften -b 384 -readtoeof 1 - "C:\temp\encoded.ac3"

Bepipe need .NET Framework 2.0, to avoid this dependence we can use the AviSynth plugin SoundOut (http://forum.doom9.org/showthread.php?t=120025)

Kurtnoise
14th May 2007, 06:58
@Kurtnoise, only you can do this solution.

But for me -ota( -r 23967 25000 ) don't work at all, even for stereo and little files, always:
BeSweet v1.5b31 by DSPguru.
--------------------------
Using Shibatch.dll v0.25 by Naoki Shibata & DSPguru (shibatch.sourceforge.net).
Using bsn.dll replacement by Dimzon & Kurtnoise, Build May 14 2007, 00:00:26

Logging start : 05/14/07 , 02:28:56.

D:\Programa\Audio\besweet\BeSweet.exe -core( -input G:\temp\DD_EX\Jap6ex.wav -output G:\temp\DD_EX\Jap6ex_1.ac3 -logfile G:\temp\DD_EX\Jap6ex_1.log ) -bsn( -exe aften.exe -b 384 -6chnew ) -ota( -r 23967 25000 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : G:\temp\DD_EX\Jap6ex.wav
[00:00:00:000] | Output: G:\temp\DD_EX\Jap6ex_1.ac3
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] +-------- FRC --------
[00:00:00:000] | Source Frame-Rate: 23967
[00:00:00:000] | Dest. Frame-Rate: 25000
[00:00:00:000] +---------------------

And crash.
Wrong frameRate ? Shouldn't be 23976 instead ? coz it works fine here...

BeSweet v1.5b31 by DSPguru.
--------------------------
Using Shibatch.dll v0.25 by Naoki Shibata & DSPguru (shibatch.sourceforge.net).
Using bsn.dll replacement by Dimzon & Kurtnoise, Build May 14 2007, 00:00:26

Logging start : 05/14/07 , 07:54:40.

BeSweet.exe -core( -input E:\DVDVolume\VIDEO_TS\Audio_6ch.wav -output E:\DVDVolume\test4.ac3 -logfile E:\DVDVolume\test4.log ) -bsn( -exe aften.exe -b 448 -6chnew -readtoeof 1 ) -ota( -r 23976 25000 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : E:\DVDVolume\VIDEO_TS\Audio_6ch.wav
[00:00:00:000] | Output: E:\DVDVolume\test4.ac3
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] +-------- FRC --------
[00:00:00:000] | Source Frame-Rate: 23976
[00:00:00:000] | Dest. Frame-Rate: 25000
[00:00:00:000] +---------------------
[00:04:05:918] Conversion Completed !
[00:00:56:000] <-- Transcoding Duration

Logging ends : 05/14/07 , 07:55:36.

tebasuna51
14th May 2007, 12:02
Thanks Kurtnoise, my typo fault. Work fine with -ota( -r 23976 25000 ).

BTW, I never see in ota docs the values must be exactly the standards NTSC and PAL.