Log in

View Full Version : BeSplit questions & answers


DSPguru
7th May 2002, 05:24
Originally posted by lymang
Hi!
I'm trying to find a program to trim Mpeg 1.0 Layer 2 audio files (.mp2) and it would appear that Besplit will do this.

I have a figure for each .mp2 audio file, a "offset" in milliseconds. So I want to trim (for example) file1.mp2 by .43283 seconds. I want to just cut the file by that offset.

It looks like:
besplit -core( -input file1.mp2 -prefix c:\file_trimmed -type mp2 -ending ) -split (432.83) would get me what I want?

I'd appreciate any input!BeSplit is a frame-based cutter. it can't cut streams with resoultion higher than milliseconds.
your commandline was almost ok. it should have been :
BeSplit -core( -input file1.mp2 -prefix c:\file_trimmed -type mp2 -ending ) -split( 433 )

(you had a spare space between "-split" to "(" and had missing spaces between the offset value to the brackets)

DSPguru
8th May 2002, 17:25
Originally posted by emilius256
I'm contacting you not for problem but because i think there's something wrong in the example file for besplit (another great tool).
You made some example using timestamp in milliseconds (2000 is equal to 2 seconds) but to make it work i have to express the value in seconds and not in milliseconds (2 is equal to 2 second) maybe i made something wrong ?
For the rest the program is amazing and work perfectly.
Following the command line i used and the log file

besplit -core( -input "vts_02 Delay -80ms.ac3" -prefix test -type ac3 -logfilea log.txt -a -ending ) -split( 0 267.120 460.080 757.320 1190.160 1438.080 1738.080 2068.800 2306.160 2581.560 2782.920 3253.200 )

BeSplit v0.4 logfile.
--------------------------
Logging start : 05/07/02 , 22:38:06.

besplit -core( -input vts_02 Delay -80ms.ac3 -prefix test -type ac3 -logfilea log.txt -a -ending ) -split( 0 267.120 460.080 757.320 1190.160 1438.080 1738.080 2068.800 2306.160 2581.560 2782.920 3253.200 )

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : vts_02_([0x80]_Audio_English_AC3(6Ch)_48kHz___)_Delay_-80ms.ac3
[00:00:00:000] | Output Prefix : test
[00:00:00:000] +---------------------
[00:00:00:000] | Found starting address !
[00:04:27:136] | Writing test01.ac3
[00:07:40:096] | Writing test02.ac3
[00:12:37:344] | Writing test03.ac3
[00:19:50:176] | Writing test04.ac3
[00:23:58:080] | Writing test05.ac3
[00:28:58:080] | Writing test06.ac3
[00:34:28:832] | Writing test07.ac3
[00:38:26:176] | Writing test08.ac3
[00:43:01:568] | Writing test09.ac3
[00:46:22:944] | Writing test10.ac3
[00:54:13:216] | Writing test11.ac3
[00:58:16:544] | Writing test12.ac3
[00:58:16:544] +---------------------
[00:58:16:544] Operation Completed !
[00:00:29:000] <-- Process Duration
Logging ends : 05/07/02 , 22:38:35.

Sorry for my english and for disturb.

Bye
emilius256yes, you are correct, the timestamps are mesaured in seconds.
question is, should i leave it that way and fix the helpfile ? or update the exe file ?

emilius256
8th May 2002, 20:39
For me is ok using value in seconds and fix the example file.

Thank you DG
bye

kilg0r3
13th May 2002, 12:25
I strongly supect this to be a hyper stupid question. However, since I am am a real weak ass when it comes to maths, I simply have to ask this question.

How am I supposed to deal with a delay of say -500msec :stupid:

DSPguru
13th May 2002, 17:28
BeSplit -core( -input original.mp2 -prefix e:\track -type mp2 -ending ) -split( 0.500 )

track01.mp2 will be the original track without its start.

DSPguru
15th May 2002, 20:07
okay, i've updated the example on v0.5 .

kilg0r3
15th May 2002, 20:29
just a thanks

Gorr
20th May 2002, 00:49
Hello,
Would be a great program if it worked :(

Whenever I do:
BeSplit -core( -input k:\projects\sw4\sw4en.mp2 -prefix k:\track -type mp2 -ending ) -split( 26 )

I get: The instruction at "0x00401525" referenced memory at "0x00000000". The memory could not be "read".

Click on OK to terminate the application
Click on CANCEL to debug the application

My platform is NT4 service pack 6a.
What platform it supposed to be run on?

Thanks

Gorr
20th May 2002, 00:56
just forgot the file output:

BeSplit v0.4 by DSPguru.
--------------------------

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : sw4en.mp2
[00:00:00:000] | Output Prefix : k:\track
[00:00:00:000] +---------------------
[00:00:20:016] | Found starting address !
[00:00:20:040] | Writing k:\track01.mp2

at this point the error message box popups.

After this I can really observe k:\track01.mp2 of size 576 bytes created. Whenever I try the program it always produces the file of 576 bytes. However I cannot play the file.

kilg0r3
20th May 2002, 08:38
as i see it, you give besplit only a starting point but no split point.
besweet needs to values in the -split section, e.g. -split ( 0 26.120)
would give a file of 26sec and 120msec containing the firs 26120 msec of the source file.

DSPguru
20th May 2002, 18:38
i won't support troubleshooting for old versions.
sorry :).


ps,
the command line is ok :D.

ruok
20th May 2002, 23:39
Hi,

Over the last week i've put together my first cut of a Graphical User Interface for BeSplit. DSPguru is happy to declare it the "official BeSplit GUI" and has provided some very good feedback to improve the program.

You can download it from here :-

http://dspguru.notrace.dk/wbias07d.rar

If you are interested in the tool then I ask you kindly to respect the following :-

1. Read the FAQ before asking ANY questions.
2. Provide only constructive feedback on any bugs or improvements.
3. The tool relies on WinAmp and BeSplit - you can obtain them from addresses listed in the FAQ.
4. I have an extremely busy life (hence the quick turn around time). If I don't reply quickly, please be patient.

I hope you enjoy the program... I'm looking forward to your thoughts on how to make it a better tool!!

Cheers


RUOK (aka Well Being)

DSPguru
24th May 2002, 06:36
new webpage :
http://BeSplit.doom9.org (http://besplit.doom9.org)

sobekt
16th July 2002, 00:22
Hi there, i have a big Problem using BeSplitv07, ChapterXtractor and WBias08.
I tried to cut a 114 min .ac3 File from a Music DVD to itīs seperate Tracks. I read all articles and Threads and the FAQīs about those 3 Programs, visited the different Websites of the Authors and i just canīt get it to Work.

In ChapterXtractor I opened the Ifo and selected the extracted .ac3 file as Source. Selected the Outputfolder and hitted Go, but the BeSplit window just pops up and closes immediately. :confused:

I have to admit that iīm not very good trained in working with DOS but after my First attempt failed i tried entering the Commandline directly into the DOS-Box after i started BeSplit. That didnīt work either because after a defined amount of Letters i wasnīt able to continue writing. Perhaps iīm with stupid at that.

My attempt with WBias had also no effect because Winamp isnīt able to play the ac3 File.

Any Ideas what i got wrong? Have i misunderstood something here?

Any help would be Appreciated, otherwise i have to go the Hard way and encode the Whole Track to ac3-Wav and cut it then, which means i have to reencode the whole Tracks back to ac.3-Wav in the End.
See my Problem? :(

Thanx in advance.

Mr. T

Got Milk?
16th July 2002, 02:04
You probably just have to change -type wav to -type ac3 in the Chapter-X-tractor format window. That displayed the same problem you described.

DSPguru
16th July 2002, 05:16
copy-paste the commandline you tried to run..

sobekt
16th July 2002, 13:42
@GotMilk
The Commandline created by ChapterXtractor defines the Output as ac3. So thatīs not the Problem.

@DSPGuru
As i said iīm not very familiar with DOS. Could you tell me how i can Copy and Paste the Commandline directly into the DOS-Box?

By the way, is there any possibility to define the ChapterXtractor created Commandline as a .wb3 Projectfile for WBias?

So you see my whole Problem is to get the ChapterXtractor Commandline to work in BeSplit. :p

Sorry for any Troubles i may cause, but iīm new to this whole Theme.

Thanx in advance

Mr. T

HubaBuba
17th July 2002, 14:26
I've the same problem with Chapter-X-tractor, but i don't find a guid for it.
To use the commandline in DOS you'll try to make a Textfile with .BAT as Filedescription (instead .TXT).
There you can paste the string. In DOS-Mode you can start the .BAT and i think it may be work.
Is there an other way??

Huba

Tokafondo
11th October 2003, 22:50
Hello. I have a request for this *EXCELLENT* utility.

Is there any way to add a blank space to xxxx msecs to a sound stream??

I'd like to fix a/v desync in a MPEG-1 stream. I haven't found a tool that allows me to fine tune the delay between audio and video. So, if I could have such a tool to create blank pure mp2 stream of a few msecs I'd surely have that mpeg stream synched.

Thanks

DSPguru
12th October 2003, 10:13
BeSweet -core( -input in.mp2 -output out.mp2 -logfile BeSweet.txt -payload ) -ota( -d [value] )

tebasuna51
11th February 2005, 16:35
Sorry for my bad english. I report a bug.

When I use BeSplit for demux a 6 channel wav 16 bits (BlockAlign=12) into 6 mono wav the BlockAlign of this mono wav is set to 6, but it must be 2.

Documentation:

besplit -core( -input g:\6chanWav.wav -prefix g:\c -type wav -demux )

BeSplit v0.82 by DSPguru.
--------------------------

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : g:\6chanWav.wav
[00:00:00:000] | Output Prefix : g:\c
[00:00:00:000] +---------------------
[00:00:20:000] | Demuxing channels..
[00:00:20:000] +---------------------
[00:00:20:000] Operation Completed !
[00:00:00:000] <-- Process Duration

Relevant fields from 6chanWav.wav header:

AudioFormat : 1 (PCM)
NumChannels : 6
SampleRate : 48000
ByteRate : 576000 (SampleRate * NumChannels * BitsPerSample/8)
BlockAlign : 12 (NumChannels * BitsPerSample/8)
BitsPerSample: 16

Relevants fields from c01.wav (to 6) header:

AudioFormat : 1 =
NumChannels : 1 Ok
SampleRate : 48000 =
ByteRate : 96000 Ok
BlockAlign : 6 Error (NumChannels * BitsPerSample/8 = 2)
BitsPerSample: 16 =

The same result with BeSplit v0.9b6

BeSplit v0.9b6 by DSPguru.
--------------------------

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : g:\6chanWav.wav
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] | Channels Count: 6, Bitrate: 4608kbps
[00:00:00:000] | Output Prefix : g:\c
[00:00:00:000] +---------------------
[00:00:20:000] | Demuxing channels..
[00:00:20:000] +---------------------
[00:00:20:000] Operation Completed !
[00:00:01:000] <-- Process Duration


This mono wav are opened ok by BeSweet, for instance:
BeSweet -core( -input LCRlrE.mux -output g:\output.ac3 ) -ac3enc( -6ch )
run ok.

But, when I try to open c01.wav with GoldWave it assume Raw data and ask me for NumChannels, SampleRate and BitsPerSample. After is opened ok but with a initial click (the corrupt header).

And opened with Sonic Foundry the sound is three (6/2) times short (6.7 seconds when the original is 20 sec.) and, of course, distorted.

EDIT: like is dificult to found the last BeSplit v0.9b8 than solve this bug I want to add here:

tebasuna51
29th March 2005, 03:27
I want to explain when I need BeSplit, instead BeSweet, to demux a 6 channel wav into 6 mono wav.

Whe I decode, with faad, one aac (5.1) greater than 124 m. 16 sec. (48 KHz) I have a 6 channel wav greater than 4GB.
This file can't be read for BeSweet (Soft Encode, ...) for two reasons:
1) Faad put the AudioFormat to 0xFFFE, (must be 0x0001 PCM signed 16 bits)
2) There are an overflow in two fields of the wav header (ChunkSize y Subchunk2Size) because are four bytes long (0xFFFFFFFF -> 4 GB)

Only (afaik) BeSplit can demux this file into 6 mono wav with corrects ChunkSize y Subchunk2Size.
But this mono wav can't be open for others programs because:
1) The AudioFormat 0xFFFE. Is not a problem of BeSplit. Maybe a new feature?
2) The bug in BlockAlign

Notes:
- The bug is present always (see my previous post with 20 sec. and correct header)
- I don't know other program than faad to make a wav (PCM signed 16 bits) > 4 GB without error. Maybe float 32 bits but now the file are greater than 8 GB !

Snubber
15th September 2005, 03:14
Great program. Have used it to split a number of MP3s. However, I just split one that sounded garbled on play back.

Looking at the log, I find this:

[00:00:00:114] Stream error : Sync found after 786 bytes
[00:00:00:190] Stream error : Sync found after 846 bytes
[00:00:00:371] Stream error : Sync found after 1676 bytes

It goes on for many, many lines. Do you what could cuase this error? Perhaps the original MP3 was screwed up in some way (it sounds fine).

Thanks!

-snubber

KpeX
15th September 2005, 03:34
Great program. Have used it to split a number of MP3s. However, I just split one that sounded garbled on play back.

Looking at the log, I find this:

[00:00:00:114] Stream error : Sync found after 786 bytes
[00:00:00:190] Stream error : Sync found after 846 bytes
[00:00:00:371] Stream error : Sync found after 1676 bytes

It goes on for many, many lines. Do you what could cuase this error? Perhaps the original MP3 was screwed up in some way (it sounds fine).

Thanks!

-snubber
This usually indicates the stream is damaged. You could try running it through besplit with the -fix option only. However this will remove the damaged sections, usually changing the length of the stream. Hopefully you still have the original source.

sigma_sigma
8th November 2005, 22:16
Halo, I have a wavdts file what is ripped from an dts 5.1 audio cd. This wavdts file i have to convert it to dts file, because then make it aac 5.1 with foobar 2000 special
my problem is wavdts->dts conversion. I used besplit, and the optained dts file when I play it, the play speed is aprox twice faster...why? The same simptoms if I play the dts file with foobar 2000 and with power dvd 6. With vlc media player doesn't work at all...
Here's my log file:


BeSplit v0.9b7 by DSPguru.
--------------------------

Logging start : 11/08/05 , 23:20:53.

besplit -core( -input 001.wav -output 001.DTS -type dtswav -fix -logfile logul.txt)

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : 001.wav
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] | Channels Count: 5.1, Bitrate: 1411.2kbps
[00:00:00:000] | Output : 001.DTS
[00:00:00:000] +---------------------
[00:03:39:103] | Writing 001.DTS
[00:03:39:103] +---------------------
[00:03:39:103] Operation Completed !
[00:00:01:000] <-- Process Duration
Logging ends : 11/08/05 , 23:20:54.

very wierd is that the conversion time was very very small as u can see in the log file.
Where is the mistake?
Thanks in advance!

daphy
9th November 2005, 07:22
PLZ: check out hypercubeīs latest WAV2DTS (http://hypercubemx.free.fr/html/download.php?download_id=3) and report back :rolleyes:

sigma_sigma
9th November 2005, 10:07
Outstanding! 10x!

alchemy
30th May 2006, 05:51
Hey , sorry for dumb question, but how do I cut large mp3 file by size. say first 10mb out of 200mb file?

Zerryk
31st May 2006, 23:04
1) -addriff produces incorrect header. I tested it for some cbr mp3s 128k/48kHz. The data chunk has correct size (same as source mp3) but the main RIFF list has its size set smaller by 12 bytes. It can be easily seen in Vdub's hex editor in chunk tree.

2) -fix behaves strangely with vbr mp3s, it always throws a second frame from stream... (mp3 for test was encoded by lame --preset 128 source.wav)

3) incorrect (doubled) timing for 22 kHz/mono mp3s
sum.wav.mp3 is _10_ sec long

D:\work\split>BeSplit.exe -core( -input sum.wav.mp3 -prefix result -type mp3 -a -ending ) -split( 7 )
BeSplit v0.9b8 by DSPguru.
--------------------------

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : sum.wav.mp3
[00:00:00:000] | Source Sample-Rate: 22.1KHz
[00:00:00:000] | Channels Count: 1, Bitrate: 64kbps
[00:00:00:000] | Output Prefix : result
[00:00:00:000] +---------------------
[00:00:07:000] | Starting address = 0x6d63.
[00:00:20:166] | Writing result01.mp3
[00:00:20:166] +---------------------
[00:00:20:166] Operation Completed !
[00:00:00:000] <-- Process Duration

00:00:20 timecode is impossible :-) The result01.mp3 is 6 seconds long. It seems all timecodes are doubled.

4) some d/l links at http://besplit.doom9.org/ homepage not working: besliced 0.3, Chapter-X-tractor, BeSplit v0.9b7