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 > General > Audio encoding
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th February 2005, 16:35   #21  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Bug in BlockAlign

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:
Attached Files
File Type: 7z BeSplit09b8.7z (16.9 KB, 116 views)

Last edited by tebasuna51; 4th August 2016 at 11:46. Reason: Add last BeSplit version
tebasuna51 is offline   Reply With Quote
Old 29th March 2005, 03:27   #22  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Bug in BeSplit (BlockAlign)

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 !
tebasuna51 is offline   Reply With Quote
Old 15th September 2005, 03:14   #23  |  Link
Snubber
Registered User
 
Join Date: Jan 2003
Posts: 2
BeSplit 0.82 error -- Stream error : sync

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
Snubber is offline   Reply With Quote
Old 15th September 2005, 03:34   #24  |  Link
KpeX
Registered User
 
KpeX's Avatar
 
Join Date: Jun 2003
Location: Great Lakes, USA
Posts: 1,433
Quote:
Originally Posted by Snubber
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.
__________________
KpeX
Audio FAQs: General | BeSweet | SVCD/MP2 | MP3 | Vorbis | AC3 | DTS | AAC
Linux Audio/Video FAQ
KpeX is offline   Reply With Quote
Old 8th November 2005, 22:16   #25  |  Link
sigma_sigma
Registered User
 
sigma_sigma's Avatar
 
Join Date: Jan 2005
Location: Bucharest
Posts: 50
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:
Code:
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!

Last edited by sigma_sigma; 8th November 2005 at 22:22.
sigma_sigma is offline   Reply With Quote
Old 9th November 2005, 07:22   #26  |  Link
daphy
Miles Freak
 
daphy's Avatar
 
Join Date: Apr 2003
Location: Europe
Posts: 652
PLZ: check out hypercube´s latest WAV2DTS and report back
__________________
CYA Daphy
daphy is offline   Reply With Quote
Old 9th November 2005, 10:07   #27  |  Link
sigma_sigma
Registered User
 
sigma_sigma's Avatar
 
Join Date: Jan 2005
Location: Bucharest
Posts: 50
Outstanding! 10x!
sigma_sigma is offline   Reply With Quote
Old 30th May 2006, 05:51   #28  |  Link
alchemy
Registered User
 
alchemy's Avatar
 
Join Date: Aug 2002
Posts: 18
How to cut mp3/aac files by size ?

Hey , sorry for dumb question, but how do I cut large mp3 file by size. say first 10mb out of 200mb file?
alchemy is offline   Reply With Quote
Old 31st May 2006, 23:04   #29  |  Link
Zerryk
Registered User
 
Join Date: Jan 2002
Location: Prague
Posts: 6
bugs in besplit 0.9b8 mp3 handling

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
Code:
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
Zerryk is offline   Reply With Quote
Reply


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 21:31.


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