Search site Dead Hackers Society
Other BBSes »
 
 

Sommarhack 2013

Sillyventure 2013
Demoscene   º   Coding   º   CT60   º   Buy/sell   º   Misc/crap   º   Alive magazine   º   SNDH/Tracking

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]

Topic Posted by  Date 
MPeg2 little question Sallafranque/Thadoss Jul,08.2012-00:42
  Re: MPeg2 little question ggn Jul,08.2012-07:58
  Re: MPeg2 little question evil Jul,08.2012-10:44
    Re: MPeg2 little question Sallafranque/Thadoss Jul,08.2012-23:49
      Re: MPeg2 little question Anonymous Jul,09.2012-01:00
        Re: MPeg2 little question Sallafranque/Thadoss Jul,09.2012-22:41
          Re: MPeg2 little question Anonymous Jul,09.2012-23:47
            Re: MPeg2 little question Sallafranque/Thadoss Jul,10.2012-00:17
          Re: MPeg2 little question evil Jul,10.2012-13:24


Reply to this message
Name:
Topic:
Human verification (enter the text of the ASCII-art below):

       _       _ _             _   
 _____|_|___ _| | |_ ___ _____| |_ 
|     | |   | . | . | . |     | . |
|_|_|_|_|_|_|___|___|___|_|_|_|___|
Message:




© 1994-2013 Dead Hackers Society Contact: Anders Eriksson