PDA

View Full Version : Multiple mp3 Transcoding Issue


DrKnish
7th March 2004, 19:17
--------------------Multiple mp3 Transcoding Issue------------------


I hope that This isn't going to be an issue that has already been discussed. I searched the forums every way I could think of before posting this.

Okay here goes. First a little background. I download mp3 files from this---> http://www.businesstalkradio.net/weekday_host/Archives/cc.shtml website. These are mp3 archives at 96 kbps of the Computer America talkshow. After I get a weeks worth I transcode them all to 16 kbps using a single batch file that I wrote. I listen to them when I am on the road on a 256 MB flash memory mp3 player. I can't fit enough at 96 kbps though!

This worked well for over a year, then they moved their operation across the country to another location. The very next set of files that they posted caused BeSweet to crash after each file has been done. Each time Windows would pop up the "this program needs to close" message and I would click on the close button then BeSweet would go on to the next file and run fine until the end of THAT file (and so on).

I thought that I might have done something to cause this (and it just happened to be the same week as their move). I tried using a set of the old files that I still have and it worked as good as it always had before their move. I am thinking that they set up their encoding software in a slightly different way and it is now causing BeSweet problems.

I am really a novice at this audio stuff. I am pleased that I even figured out how to write a batch file that was working. I really don't know enough to figure out what is going on here though. I am posting the log file that BeSweet made and an example of the latest batch file.

Also, is there a way to indicate the files that I want to transcode (i.e.030122.mp3) without having to name them exactly in the batch file?

Any ideas?


Thanks for any help
DrKnish


BeSweet v1.5b19 by DSPguru.
--------------------------
Using hip.dll v1.19 by Myers Carpenter <myers@users.sf.net>
Using lame_enc.dll v1.28 (4/6/2002), Engine 3.92 <http://www.mp3dev.org/>.

Logging start : 03/07/04 , 10:49:03.

C:\Program Files\BeSweet\BeSweet.exe -core( -input C:\Documents and Settings\Dell\Desktop\Recent Downloads\Computer America\Uncompressed\030222.mp3 -output C:\Documents and Settings\Dell\Desktop\Audio Files\Computer America\BeSweet_Output\03-02-04_1.mp3 -logfile C:\Program Files\BeSweet\BeSweet.log ) -lame( -m m -b 16 -f --resample 16000 --ta Comp-Am --tc CA ) -profile( ~~~~~ Default Profile ~~~~~ )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : C:\Documents and Settings\Dell\Desktop\Recent Downloads\Computer America\Uncompressed\030222.mp3
[00:00:00:000] | Output: C:\Documents and Settings\Dell\Desktop\Audio Files\Computer America\BeSweet_Output\03-02-04_1.mp3
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] +-------- LAME -------
[00:00:00:000] | Bitrate method : CBR
[00:00:00:000] | MP3 bitrate : 16
[00:00:00:000] | Channels Mode : Mono
[00:00:00:000] | ReSample Rate : 16.0KHz
[00:00:00:000] | Error Protection: No
[00:00:00:000] +---------------------


--------------BATCH FILE NEXT----------------

@echo off


"C:\Program Files\BeSweet\BeSweet.exe" -core( -input "C:\Documents and Settings\Dell\Desktop\Recent Downloads\Computer America\Uncompressed\030122.mp3" -output "C:\Documents and Settings\Dell\Desktop\Audio Files\Computer America\BeSweet_Output\03-01-04_1.mp3" -logfile "C:\Program Files\BeSweet\BeSweet.log" ) -lame( -m m -b 16 -f --resample 16000 --ta Comp-Am --tc CA ) -profile( ~~~~~ Default Profile ~~~~~ )



"C:\Program Files\BeSweet\BeSweet.exe" -core( -input "C:\Documents and Settings\Dell\Desktop\Recent Downloads\Computer America\Uncompressed\030123.mp3" -output "C:\Documents and Settings\Dell\Desktop\Audio Files\Computer America\BeSweet_Output\03-01-04_2.mp3" -logfile "C:\Program Files\BeSweet\BeSweet.log" ) -lame( -m m -b 16 -f --resample 16000 --ta Comp-Am --tc CA ) -profile( ~~~~~ Default Profile ~~~~~ )



"C:\Program Files\BeSweet\BeSweet.exe" -core( -input "C:\Documents and Settings\Dell\Desktop\Recent Downloads\Computer America\Uncompressed\030222.mp3" -output "C:\Documents and Settings\Dell\Desktop\Audio Files\Computer America\BeSweet_Output\03-02-04_1.mp3" -logfile "C:\Program Files\BeSweet\BeSweet.log" ) -lame( -m m -b 16 -f --resample 16000 --ta Comp-Am --tc CA ) -profile( ~~~~~ Default Profile ~~~~~ )



"C:\Program Files\BeSweet\BeSweet.exe" -core( -input "C:\Documents and Settings\Dell\Desktop\Recent Downloads\Computer America\Uncompressed\030223.mp3" -output "C:\Documents and Settings\Dell\Desktop\Audio Files\Computer America\BeSweet_Output\03-02-04_2.mp3" -logfile "C:\Program Files\BeSweet\BeSweet.log" ) -lame( -m m -b 16 -f --resample 16000 --ta Comp-Am --tc CA ) -profile( ~~~~~ Default Profile ~~~~~ )



"C:\Program Files\BeSweet\BeSweet.exe" -core( -input "C:\Documents and Settings\Dell\Desktop\Recent Downloads\Computer America\Uncompressed\030322.mp3" -output "C:\Documents and Settings\Dell\Desktop\Audio Files\Computer America\BeSweet_Output\03-03-04_1.mp3" -logfile "C:\Program Files\BeSweet\BeSweet.log" ) -lame( -m m -b 16 -f --resample 16000 --ta Comp-Am --tc CA ) -profile( ~~~~~ Default Profile ~~~~~ )



"C:\Program Files\BeSweet\BeSweet.exe" -core( -input "C:\Documents and Settings\Dell\Desktop\Recent Downloads\Computer America\Uncompressed\030323.mp3" -output "C:\Documents and Settings\Dell\Desktop\Audio Files\Computer America\BeSweet_Output\03-03-04_2.mp3" -logfile "C:\Program Files\BeSweet\BeSweet.log" ) -lame( -m m -b 16 -f --resample 16000 --ta Comp-Am --tc CA ) -profile( ~~~~~ Default Profile ~~~~~ )



"C:\Program Files\BeSweet\BeSweet.exe" -core( -input "C:\Documents and Settings\Dell\Desktop\Recent Downloads\Computer America\Uncompressed\030422.mp3" -output "C:\Documents and Settings\Dell\Desktop\Audio Files\Computer America\BeSweet_Output\03-04-04_1.mp3" -logfile "C:\Program Files\BeSweet\BeSweet.log" ) -lame( -m m -b 16 -f --resample 16000 --ta Comp-Am --tc CA ) -profile( ~~~~~ Default Profile ~~~~~ )



"C:\Program Files\BeSweet\BeSweet.exe" -core( -input "C:\Documents and Settings\Dell\Desktop\Recent Downloads\Computer America\Uncompressed\030423.mp3" -output "C:\Documents and Settings\Dell\Desktop\Audio Files\Computer America\BeSweet_Output\03-04-04_2.mp3" -logfile "C:\Program Files\BeSweet\BeSweet.log" ) -lame( -m m -b 16 -f --resample 16000 --ta Comp-Am --tc CA ) -profile( ~~~~~ Default Profile ~~~~~ )



"C:\Program Files\BeSweet\BeSweet.exe" -core( -input "C:\Documents and Settings\Dell\Desktop\Recent Downloads\Computer America\Uncompressed\030522.mp3" -output "C:\Documents and Settings\Dell\Desktop\Audio Files\Computer America\BeSweet_Output\03-05-04_1.mp3" -logfile "C:\Program Files\BeSweet\BeSweet.log" ) -lame( -m m -b 16 -f --resample 16000 --ta Comp-Am --tc CA ) -profile( ~~~~~ Default Profile ~~~~~ )



"C:\Program Files\BeSweet\BeSweet.exe" -core( -input "C:\Documents and Settings\Dell\Desktop\Recent Downloads\Computer America\Uncompressed\030523.mp3" -output "C:\Documents and Settings\Dell\Desktop\Audio Files\Computer America\BeSweet_Output\03-05-04_2.mp3" -logfile "C:\Program Files\BeSweet\BeSweet.log" ) -lame( -m m -b 16 -f --resample 16000 --ta Comp-Am --tc CA ) -profile( ~~~~~ Default Profile ~~~~~ )

Slogra
7th March 2004, 19:29
I use Frontah (http://home.vxu.se/mdati00/frontah/) to transcode/reencode for my 64MB mp3 player. I'm not sure if it's gonna help you, but i know do know that i like this frontend very much! :D Mainly because it can show a ABR bitrate so an album fits exactly on 64MB. It probably isn't gonna help at very low bitrates as ABR doesn't work at low bitrates.

DrKnish
8th March 2004, 20:34
Hey that does look good. I will be trying that out when I get a chance. Like you said, I don't know if it'll do me much good at the very low bitrate I need to use though. If not it still looks like a nice frontend that I'll be able to use for other things.

Thanks for the idea.

Anyone else?

KpeX
8th March 2004, 23:01
The BeSweet error is probably due to a borked input file. Try running one of these through Besplit, and see if it still crashes BeSweet. An example commandline would be besplit -core ( -input "file.mp3" -prefix "out.mp3" -type mp3 -fix and see if the resulting file crashes Besweet.



Regarding your batch file, here's what I'd do: copy the following lines into a batch file. Then run the batch file, which will encode all the mp3's in the directory it is run from, outputting files with the name "inname_new.mp3" where inname is the input file. If the Besplit function is needed to fix the files first, post back and I'll get you a batch file that will work.

dir /s /b *.mp3>temp.lst

for /f "tokens=*" %%d in ('type temp.lst') do start /wait c:\progra~1\BeSweet\BeSweet.exe -core( -input "%%d" -output "%%~nd_new.mp3" -logfilea "C:\Program Files\BeSweet\BeSweet.log" ) -lame( -m m -b 16 -f --resample 16000 --ta Comp-Am --tc CA ) -profile( ~~~~~ Default Profile ~~~~~ )

del temp.lst

DrKnish
9th March 2004, 04:00
Well running the files through BeSplit certainly took care of the problem of BeSweet crashing. Fantastic! Thanks! BeSplit showed "Stream Error: Sync found at 2760 bytes" and "Stream Error: Sync found at 1696 bytes" Each file (I did 10 of them) had a similar problem (only other values for the bytes).

I will certainly take you up on the offer you made for helping me write a batch file to run all of the files through BeSplit. The path for BeSplit is c:\progra~1\BeSplit\BeSplit.exe. The fixed files have an 01 tacked on to the end is there a way avoid this?

I wish I knew why their files contain these errors now. I'm going write to them to tell them to fix it but when I do I'm not sure how to explain what is wrong. I notice when I right click the old files then properties under summary it says 95kbps but checking the "fixed" files that same way shows 96kbps!

Thank you very much for your help!

KpeX
13th March 2004, 20:45
Sorry for the late reply. I've been busy as of late and somehow missed your reply. Attached is a batch file that will fix and reencode all MP3s in the directory it is launched from, with the final MP3s created in a 'final' subdirectory. The filenaming is a little crude but I didn't have time to clear that up. Hope this works, cheers,

DrKnish
14th March 2004, 06:02
Hey that sure does the trick. I had to make a few small tweaks and it worked perfectly. Thank you again.