|
Atari coding BBS
Re: MPeg2 little question |
Posted by: evil
|
Jul,08.2012-10:44
|
GGN is right, but better yet, use 49170 Hz for the input file, it will sound better.
Here's an example of using toolame with a 49170 Hz stereo WAV:
#####################################################################
toolame -m j -b 160 cerror-ping_flood.wav cerror-ping_flood.mp2
Parsing Wave File Header
>>> Unknown samp freq 49170 Hz in Wave Header
>>> Default 44.1 kHz samp freq selected
>>> Input Wave File is Stereo
--------------------------------------------
Input File : 'cerror-ping_flood.wav' 44.1 kHz
Output File: 'cerror-ping_flood.mp2'
160 kbps MPEG-1 Layer II j-stereo Psy model 1
[De-emph:Off Copyright:No Original:No CRC:Off]
[Padding:Normal Byte-swap:Off Chanswap:Off DAB:Off]
ATH adjustment 0.000000
--------------------------------------------
encode_init: using tablenum 0 with sblimit 27
Hit end of audio data
Avg slots/frame = 522.449; b/smp = 3.63; bitrate = 160.000 kbps
Done
#####################################################################
As you can see, toolame ignores the 49170 Hz WAV setting, and uses the default 44100. As a result the music will play too slow on a PC/MAC (44100) but correct speed on a Falcon (49170).
The parameter "-m j" means joint stereo, change j to m for a mono file.
Toolame at sourceforge: http://sourceforge.net/projects/toolame/files/
Oh and by the way, it's not MPEG2, it's MPEG1 Layer 2 :-)
--
Anders Eriksson
ae@dhs.nu
|
[All messages in this thread] [Start new thread]
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|