Use of MP2 replay rout by NoCrew

All about demos on the Falcon, TT & clones

Moderators: Mug UK, moondog/.tSCc., [ProToS], lp, Moderator Team

User avatar
hylst
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 133
Joined: Wed Apr 27, 2011 6:22 pm
Location: France : Strasbourg
Contact:

Use of MP2 replay rout by NoCrew

Postby hylst » Fri Mar 21, 2014 12:42 am

Hi ! I try to convert some Mp3 file in MP2 to replay it with NoCrew MP2 rout DSP + DMA
It works... but it's slower ... and noisy...

i used any audio converter

param of mp2 file : binary bitrate 96 kbps and sample rate (freq) 44100

parameters for the rout : (only bold ones are modified)

musicflag=1
mp2_address=28
mp2_length=32
mp2_freq=44
mp2_ext=40
mp2_repeat=44
mp2_start=48
mp2_stop=52
mp2_intspeed=44100 !internal speed
mp2_extspeed=0 !external speed (0=disable)
mp2_loop=1 !0=single play 1=loop

What could be wrong ?

Thanks for your help :)
Falcon CT60 +CENTRAM14 - 520 STE 4M - 1040 STf
Let's visit my Personal website http://hylst.t15.org !
The new website of my productions (French for the moment)

User avatar
Xerus
Moderator
Moderator
Posts: 1177
Joined: Fri Dec 13, 2002 9:31 pm
Location: France

Re: Use of MP2 replay rout by NoCrew

Postby Xerus » Fri Mar 21, 2014 5:11 am

Have you tried at 32KHz (and 64 Kbits)?
Maybe 44.1KHz is too greedy for a DSP at 32 MHz?

User avatar
hylst
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 133
Joined: Wed Apr 27, 2011 6:22 pm
Location: France : Strasbourg
Contact:

Re: Use of MP2 replay rout by NoCrew

Postby hylst » Fri Mar 21, 2014 12:43 pm

Hi ! I tried 32 Kbits and 64 too, but same problem.
It also stop after a while, before the end of the tune.

That's may occur because i'm using hatari Falcon mode with dsp on, max compatibility (my CT60 Falcon is nearly out of order).
I'm using it from gfa, but it should not change anything because dma & dsp work independantly.
I could try to compile it before to be sure.
Falcon CT60 +CENTRAM14 - 520 STE 4M - 1040 STf
Let's visit my Personal website http://hylst.t15.org !
The new website of my productions (French for the moment)

User avatar
[ProToS]
Moderator
Moderator
Posts: 2242
Joined: Fri Sep 20, 2002 2:09 am
Location: Lourdes / France
Contact:

Re: Use of MP2 replay rout by NoCrew

Postby [ProToS] » Fri Mar 21, 2014 1:02 pm

from Dennis van der Burg old web page

If you have Linux, and the programs mpg123 and toolame, you can convert your mp3 collection to mp2 by using this script.


Code: Select all

#!/bin/csh
#
# This script resamples the mp3-file to 48 kHz, 1.5 times the (standard)
# Atari Falcon 030 DSP MC56001 freq.
# After this encoding occurs to mp2, with a sampling frequency of 48 kHz
# and a bitrate of 192 kbps.
#
# Note that you need write permission in the directory where you put this
# script and the mp3 source files. Note also that this script, as all scripts,
# needs to be executable in order to work:
# do a 'chmod 755 mp3tomp2' on the command line, if neccesary.
#
set lijst=`/bin/ls *.mp3`
foreach mp3bestand ( $lijst )
   mpg123 -r 48000 -s $mp3bestand | toolame -s 48 /dev/stdin $bestand.mp2
end
#
# This one is more robust, but takes a LOT of harddisk space.
#set lijst=`/bin/ls *.mp3`
#foreach mp3bestand ( $lijst )
#   set bestand=`basename $mp3bestand .mp3`
#   mpg123 -r 48000 -w $bestand.wav $mp3bestand
#   toolame -s 48 $bestand.wav $bestand.mp2
#   rm *.wav
#end
#
# End of script.
SeeU
[ProToS]/Facebook

User avatar
hylst
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 133
Joined: Wed Apr 27, 2011 6:22 pm
Location: France : Strasbourg
Contact:

Re: Use of MP2 replay rout by NoCrew

Postby hylst » Fri Mar 21, 2014 1:50 pm

Thank you Protos. I already managed to genrerate the MP2 correctly, my problem is the replay with this rout.
MP2 Audio v0.997 gem player doesn't launch with Hatari ... so i cannot test if it came from the emulator, even in Falcon mode :/
Maybe someone tested it on real falcon ?
Falcon CT60 +CENTRAM14 - 520 STE 4M - 1040 STf
Let's visit my Personal website http://hylst.t15.org !
The new website of my productions (French for the moment)

User avatar
hylst
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 133
Joined: Wed Apr 27, 2011 6:22 pm
Location: France : Strasbourg
Contact:

Re: Use of MP2 replay rout by NoCrew

Postby hylst » Fri Mar 21, 2014 3:16 pm

Ok, it comes from Hatari.
Raaahhh... I really need to test it on real Falcon. http://archive.is/fgwuX

Anyone to send a package (prg + bin + Mp2) to test it on basic falcon (or enhanced one not accelerated mode) ?
If it works, i can continue develop the whole prg and test later again.
Falcon CT60 +CENTRAM14 - 520 STE 4M - 1040 STf
Let's visit my Personal website http://hylst.t15.org !
The new website of my productions (French for the moment)

User avatar
Eero Tamminen
Atari God
Atari God
Posts: 1563
Joined: Sun Jul 31, 2011 1:11 pm

Re: Use of MP2 replay rout by NoCrew

Postby Eero Tamminen » Fri Mar 21, 2014 7:19 pm

hylst wrote:Thank you Protos. I already managed to genrerate the MP2 correctly, my problem is the replay with this rout.
MP2 Audio v0.997 gem player doesn't launch with Hatari ... so i cannot test if it came from the emulator, even in Falcon mode :/


According to Hatari's compatibility list MP2 NoCrew player works with Hatari, when using WinUAE CPU core version:
http://hg.tuxfamily.org/mercurialroot/h ... ility_list

Sound quality issues can be emulation accuracy related.

User avatar
hylst
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 133
Joined: Wed Apr 27, 2011 6:22 pm
Location: France : Strasbourg
Contact:

Re: Use of MP2 replay rout by NoCrew

Postby hylst » Fri Mar 21, 2014 8:34 pm

It seems so. Thanks. So i'll have to test on real Falcon to be sure of the result.
Falcon CT60 +CENTRAM14 - 520 STE 4M - 1040 STf
Let's visit my Personal website http://hylst.t15.org !
The new website of my productions (French for the moment)


Social Media

     

Return to “Demos”

Who is online

Users browsing this forum: No registered users and 1 guest