English Amiga Board

English Amiga Board (http://eab.abime.net/index.php)
-   Coders. Releases (http://eab.abime.net/forumdisplay.php?f=115)
-   -   Flac player (http://eab.abime.net/showthread.php?t=91092)

meynaf 05 March 2018 14:38

Flac player
 
For those who don't know, this is free lossless audio codec.
And I have a player to handle these on the Amiga. Yes.

It's been long I coded this one. However it never really got released because it was impractical to use (and a few buggy).
But I finally turned it into a usable player (well, sort of).
Hence this program.
Also made some translating effort so that there is an english version ;)

To be fetched here :
http://meynaf.free.fr/pr/spl.lzx

Choose the one you want from english and french in the relevant sub-dir and put it somewhere in the path. It doesn't need any particular software installed, however it uses 14bit calibration where available (highly recommended on real miggies, but don't try that on emulators).

Minimal configuration to play flacs realtime is 68030/50 - and some may still fail. Trying with lower lpc setting when encoding can help (lowering the replay frequency also does, of course).
On 68060 there should however be no problem.
If your machine is too slow, don't panic ! It can still decode to a file.
Bare minimum is similar as unexpanded A1200 (68020, OS 3.x).

For now, it's cli only. If someone wants to make a nice gui, just speak :cheese

Usage :
spl <file> [options]
where options can be :
- save as aiff file : saveas file.aiff
- play n times : loop n
- set volume : vol n (if 14-bit is used, can boost up to 800)
- show basic information : info
- play 44.1 in 2:1 (22.05 khz, fastest but not so good) : method 0 (this is the default)
- play 44.1 in 5:3 (26.46 khz, accurate but slow) : method 1
- play 44.1 in 8:5 (27.563 khz, relative fast) : method 2
- play 44.1 directly (req. vga/dblpal display) : method 3

To stop the replay before the end, press ctrl-c. If there is no output window then you'll have to send it a break with another program (like artm or xoper).

Note : fully OS compliant software. Does proper audio allocation. Should exit cleanly and not do enforcer hits, nor have any resource leaks.
(If you find otherwise, time for a bug report :p)

The program has more features than documented here because they're not finished.
Normally it should also play aiff, wave, iff-8svx, and a few others (but they're unfinished).

jurassicman 05 March 2018 14:48

Congrats, I'll certainly try it on my A1200 with Blizzard 1260/66 and I'll give you a feedback!
Thanks!

pandy71 05 March 2018 16:45

Nice, Thx Meynaf! Any plans for Opus?

meynaf 05 March 2018 17:31

Quote:

Originally Posted by pandy71 (Post 1224352)
Nice, Thx Meynaf! Any plans for Opus?

What do you mean by "Opus" ?

daxb 05 March 2018 20:37

I guess he means the opus audio format: https://en.wikipedia.org/wiki/Opus_%28audio_format%29

meynaf 05 March 2018 20:55

Ok then.
That may be possible, if i find a good reference implementation with some suitable test files and the format itself isn't too much of a cpu hog.

demoniac 06 March 2018 09:31

Quote:

Originally Posted by meynaf (Post 1224337)
For those who don't know, this is free lossless audio codec.
And I have a player to handle these on the Amiga. Yes.

Wow, impressive.

malko 06 March 2018 11:12

Quote:

Originally Posted by meynaf (Post 1224337)
For those who don't know, this is free lossless audio codec.
And I have a player to handle these on the Amiga. Yes.

Excellent meynaf :lol !
Vorbis, Opus & FLAC are the formats I use the most for my CD. Vorbis for my "old" iRiver players (I challenge anybody to find another player that last so long with a single AA battery ;) ). Opus & FLAC for other players (regarding format support those players have of course).
Thank you, great work & will give a try :great !

meynaf 06 March 2018 11:21

I didn't know about Opus before, but Vorbis was already on the to do list. Should be in 060 range (btw Opus looks to heavy for this, similar to AAC).

daxb 06 March 2018 12:47

Btw., if you convert an AIFF/WAV (source) to FLAC and then reconvert to AIFF/WAV (destination) would source and destination differ in bytes and/or sound quality?

ps: With AHIRecord you can record in FLAC format and at least have Play16 for playback. meynaf, you may want to compare your player with Play16?

meynaf 06 March 2018 12:57

Quote:

Originally Posted by daxb (Post 1224608)
Btw., if you convert an AIFF/WAV (source) to FLAC and then reconvert to AIFF/WAV (destination) would source and destination differ in bytes and/or sound quality?

Differ in bytes, maybe. Headers and information packets can change.
Differ in sound quality, no. FLAC is lossless and so are AIFF/WAV.


Quote:

Originally Posted by daxb (Post 1224608)
ps: With AHIRecord you can record in FLAC format and at least have Play16 for playback. meynaf, you may want to compare your player with Play16?

Play16 doesn't play FLAC, does it ?

daxb 06 March 2018 13:41

Oh sorry, I thought there was an update of Play16 that supports FLAC but confused with AmigaAMP or something else.

pandy71 08 March 2018 01:52

Quote:

Originally Posted by meynaf (Post 1224593)
I didn't know about Opus before, but Vorbis was already on the to do list. Should be in 060 range (btw Opus looks to heavy for this, similar to AAC).

Opus is merged vorbis + speex (both with improvements) - Opus has many faces (like low latency etc). And at least theoretically it is not affected by patents pool. Anyway mp3 is no longer covered by patents, same for mpeg-2.

meynaf 08 March 2018 10:13

Quote:

Originally Posted by pandy71 (Post 1225040)
Opus is merged vorbis + speex (both with improvements) - Opus has many faces (like low latency etc). And at least theoretically it is not affected by patents pool. Anyway mp3 is no longer covered by patents, same for mpeg-2.

I've read about Opus. Low latency isn't useful for a file player ; in fact, it looks like we'll have the time to decode several mp3 frames before a single opus frame is decoded...
And they did the same mistake Flac and several others did before : no easy way to find out the duration.
(Actually an horror on Flac because you not only have to parse frame headers like in mp3, but also to decode the whole thing...)

Btw I'm currently on the lookout for mpeg audio layer 1 files. Layer 3 is of course easy to get and there are a few layer 2 on aminet iirc. But i'd like to support all three in future versions so example files are needed.


So... no bug report ? Did anyone test it ?

malko 08 March 2018 11:27

Quote:

Originally Posted by meynaf (Post 1225086)
[...] So... no bug report ? Did anyone test it ?

Not yet (not enough spare time) :p

daxb 08 March 2018 14:12

I would test but my miggy hasn't internet connection and the floppy way over the linux pc doesn't work for any reason.

Can't a en/decoder like lame produce layer 1 files?

meynaf 08 March 2018 14:30

Quote:

Originally Posted by daxb (Post 1225146)
Can't a en/decoder like lame produce layer 1 files?

At least ffmpeg does not. Not checked lame yet.

EDIT: nope. Lame only encodes layer 3.

daxb 08 March 2018 14:52

SamplitudeOpus can save as (export) mpeg layer I and II.

meynaf 08 March 2018 19:10

Quote:

Originally Posted by daxb (Post 1225160)
SamplitudeOpus can save as (export) mpeg layer I and II.

I can't find it anywhere. Do you have some link ?

daxb 08 March 2018 20:15

Try this:
http://www.amigafuture.de/downloads....cc4ec179da4bb6
or
http://eab.abime.net/showthread.php?t=80056


All times are GMT +2. The time now is 11:01.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.

Page generated in 0.07691 seconds with 11 queries