Log in

View Full Version : 44khz MP3 -> 48khz AC3


switch
30th August 2002, 18:31
Iīm planning burnig a svcd to a dvd+rw.
The problem is when i convert the audio from 44khz to 48khz.
The conversion goes well but when i play the 48khz file in mediaplayer there is no sound. The 44khz file works great.
The program used for the conversion is TMPEGenc.

Any suggestions what the problem might be ??

/switch

pacohaas
30th August 2002, 19:28
you're not going to gain any quality going to 48kHz from 44.1kHz, why do you want to do this?

switch
30th August 2002, 21:05
Because dvdmaestro doesnīt accept 44,1khz

pacohaas
30th August 2002, 21:32
ah...ok, well you're going to have to reencode and this will of course cause loss of quality, but there's a few ways to go about it, each involving decoding, sample-rate conversion, and re-encoding. I believe BeSweet will be able to do this all in 1 step, give it a shot.

theReal
31st August 2002, 13:15
The conversion goes well but when i play the 48khz file in mediaplayer there is no sound. The 44khz file works great. Your soundcard doesn't support 48kHz?
However I don't believe this is the problem unless you have a really old soundcard.

switch
31st August 2002, 13:20
No, itīs not my soundcard.
I got it to work now.
I made the mp2 to wave in winamp and then converted it from wav to 48khz mp2 in TMPEGenc.

thanks for the suggestions

/switch

DSPguru
31st August 2002, 18:21
audio quality should be noticebly better if you'd use BeSweet for that end-to-end process.

that's because :
- mp2 decoder is HQ (floating-point HIP)
- sample-rate-convertor is the BEST there is (ssrc)
- mp2 encoder is a floating-point convertor.

i invite you to try transcoding your 44.1khz mp2 to 48khz mp2 with BeSweet and see for yourself if you can hear the difference.

ps
may i suggest that you also normalize the signal if you're already re-encoding ;)

anyway, all the above is only just a suggestion..

switch
31st August 2002, 22:22
If you could write down a "dummy" how i do this in BeSweet i would be very grateful.
I just canīt seem to get the hang of it.

/switch

DSPguru
31st August 2002, 22:31
BeSweet.exe -core( -input [in-filename].mp2 -output [out-filename].mp2 -logfile BeSweet.txt ) -ssrc( --rate 48000 ) -mp2enc( -m j -b 192 -e ) -ota( -g max )


guides on using BeSweetGUI can be found on :
http://DSPguru.doom9.org/guides.html

switch
1st September 2002, 09:56
Thanks alot. :)

/switch

DSPguru
1st September 2002, 17:30
it would be nice if you could confirm quality difference and post the logfile (BeSweet.txt).


edit :
i've added '-ota( -g max )' for the commandline in earlier post.
this will raise-up the valume of the track to the maxium.

switch
2nd September 2002, 19:32
Since the volume differs between the to a just comparison isnīt possible.

http://w1.467.telia.com/~u46704767/BeSweet.txt

/switch

DSPguru
3rd September 2002, 16:15
you can raise up the volume, using -ota( -g max ).

anyway,
i saw you used v1.3 ..
in v1.4RC7 (http://besweet.notrace.dk), quality should be better.

jdobbs
14th September 2002, 16:31
@DSPGURU

I seem to be having a problem with this. I am trying to take 44.1Khz sampled input files (music), and convert it to 48Khz AC3 that is suitable for DVD. I use the following command line:
-------

"C:\Program Files\DVD-Rip\BeSweet\BeSweet.exe" -core( -input "test.mp3" -output "test.ac3" ) -ssrc( --rate 48000 ) -ac3enc( -b 192 )

--------
It all seems to work correctly, but the sample rate conversion doesn't seem to happen. The output plays fast (just as if I hadn't added the -ssrc()

Help??

Thanks,
jdobbs

Added: Please note that I am using version 1.4RC7 -- I've since tried encoding to WAV also... Same thing. Besweet seems to be misreading the input MP3's rate as 48Khz when it is actually 44.1Khz.

jdobbs
14th September 2002, 18:00
The problem above doesn't seem to be consistent. It only happens on certain .MP3 files, while others work fine. All, however are recognized by Winamp as 44.1Khz.

I've also noticed an excessive amount of popping, hissing, and dropouts when using Besweet for Mp3 to AC3 conversion.

DSPguru
14th September 2002, 20:03
:logfile:

jdobbs
14th September 2002, 22:56
@DSPGURU

Sorry -- here's the info...

Here is the log file from an MP3 that is encoded at 44.1Khz, but it appears it is read to be 48Khz -- I just noticed the "Sync found after 1460 bytes" -- that's probably the source of the sample rate confusion:

BeSweet v1.4RC7 by DSPguru.
--------------------------
Using hip.dll v1.1 by Myers Carpenter <myers@users.sf.net>
Using Shibatch.dll v0.2 by Naoki Shibata & DSPguru (shibatch.sourceforge.net).
Using AC3enc.dll v0.2 by Gerard Lantau & Dg (http://ffmpeg.org).

Logging start : 09/14/02 , 17:42:18.

C:\Program Files\DVD-Rip\BeSweet\BeSweet.exe -core( -input one.mp3 -output one.ac3 -logfile one.ac3.log ) -ssrc( --rate 48000 --normalize ) -ac3enc( -b 192 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : one.mp3
[00:00:00:000] | Output: one.ac3
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] | Overall Track Gain: 0.5dB
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] +------- AC3ENC ------
[00:00:00:000] | Bitrate method : CBR
[00:00:00:000] | AC3 bitrate : 192
[00:00:00:000] | Channels Mode : 2.0
[00:00:00:000] | Error Protection: Yes
[00:00:00:000] +---------------------
[00:00:00:026] Stream error : Sync found after 1460 bytes
[00:03:31:385] Conversion Completed !
[00:03:31:385] Actual Avg. Bitrate : 176kbps
[00:00:18:000] <-- Transcoding Duration
Logging ends : 09/14/02 , 17:42:36.

Here is the logfile from a file that although the sample rate is read properly, it has pops and hisses.

BeSweet v1.4RC7 by DSPguru.
--------------------------
Using hip.dll v1.1 by Myers Carpenter <myers@users.sf.net>
Using Shibatch.dll v0.2 by Naoki Shibata & DSPguru (shibatch.sourceforge.net).
Using AC3enc.dll v0.2 by Gerard Lantau & Dg (http://ffmpeg.org).

Logging start : 09/14/02 , 17:40:31.

C:\Program Files\DVD-Rip\BeSweet\BeSweet.exe -core( -input two.mp3 -output two.ac3 -logfile two.ac3.log ) -ssrc( --rate 48000 --normalize ) -ac3enc( -b 192 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : two.mp3
[00:00:00:000] | Output: two.ac3
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] | Overall Track Gain: 0.0dB
[00:00:00:000] +------ Shibatch -----
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] | Dest. Sample-Rate: 48.0KHz
[00:00:00:000] | Attenuation : 0.0db
[00:00:00:000] +------- AC3ENC ------
[00:00:00:000] | Bitrate method : CBR
[00:00:00:000] | AC3 bitrate : 192
[00:00:00:000] | Channels Mode : 2.0
[00:00:00:000] | Error Protection: Yes
[00:00:00:000] +---------------------
[00:04:52:077] Conversion Completed !
[00:04:52:077] Actual Avg. Bitrate : 191kbps
[00:01:09:000] <-- Transcoding Duration
Logging ends : 09/14/02 , 17:41:40.

I could send you the resulting .AC3 file and the original .MP3 if you'd like...

DSPguru
14th September 2002, 23:02
maybe you want to fix the currpoted mp3 file with BeSplit v0.82 before converting it. (BeSplit v0.82 can be found on my webpage, and can't be found on doom9's download page - yet)

DSPguru
14th September 2002, 23:04
Originally posted by jdobbs
I could send you the resulting .AC3 file and the original .MP3 if you'd like... the source files would be interesting. yes.