Opened 6 years ago

Last modified 3 years ago

#5334 open enhancement

support atrac lossless

Reported by: ami_stuff Owned by:
Priority: wish Component: avcodec
Version: git-master Keywords: atrac3
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

https://www.iana.org/assignments/media-types/audio/ATRAC-ADVANCED-LOSSLESS

http://www.datafilehost.com/d/089ab001

C:\>ffmpeg -i lossless_64kbps_44khz.aa3"
ffmpeg version N-78758-g5156578 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --
enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-lib
x265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-d
ecklink --enable-zlib
  libavutil      55. 19.100 / 55. 19.100
  libavcodec     57. 27.100 / 57. 27.100
  libavformat    57. 26.100 / 57. 26.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 37.100 /  6. 37.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[oma @ 038de5e0] Unsupported codec 33!
lossless_64kbps_44khz.aa3: Function not implemented

Change History (13)

comment:1 by Carl Eugen Hoyos, 6 years ago

Component: undeterminedavcodec
Keywords: atrac3 added
Priority: normalwish
Reproduced by developer: set
Status: newopen
Type: defectenhancement
Version: unspecifiedgit-master

comment:2 by Elon Musk, 6 years ago

There is tool which can create/decode this?

comment:3 by ami_stuff, 6 years ago

Sound Forge and Sony Vegas can decode/encode Atrac Lossless. Don't know about something smaller.

comment:4 by Dennis, 6 years ago

Not freely available but Sony Sound Forge can.
I created some samples here (with uncompressed WAV files for reference):
https://www.djxmmx.net/ffmpeg/5334/

comment:5 by Elon Musk, 6 years ago

I will need binary dll responsible for this.

comment:6 by Dennis, 6 years ago

Take a look at the file: "atracplug.dll" I just placed in that directory.

comment:7 by ami_stuff, 5 years ago

here is one more set of samples (atrac 3 lossless [34] and atrac 3 plus lossless [33]):

https://www.datafilehost.com/d/fecefb73

comment:9 by ami_stuff, 5 years ago

this format seems to be supported by switch audio converter:

http://www.nch.com.au/acm/support.html#OMA

http://www.nch.com.au/acm/formats.html

http://www.nch.com.au/switch/index.html

("decoding with DirectX")

Last edited 5 years ago by ami_stuff (previous) (diff)

in reply to:  9 ; comment:10 by ami_stuff, 5 years ago

Replying to ami_stuff:

this format seems to be supported by switch audio converter:

http://www.nch.com.au/acm/support.html#OMA

http://www.nch.com.au/acm/formats.html

http://www.nch.com.au/switch/index.html

("decoding with DirectX")

It looks like decoding relies on something from SS package, so you need to install:

http://www.sony.co.uk/support/en/content/cnt-dwnl/prd-comp/soasst-01198207-un_3217

first

in reply to:  10 comment:11 by ami_stuff, 5 years ago

Replying to ami_stuff:

Replying to ami_stuff:

this format seems to be supported by switch audio converter:

http://www.nch.com.au/acm/support.html#OMA

http://www.nch.com.au/acm/formats.html

http://www.nch.com.au/switch/index.html

("decoding with DirectX")

It looks like decoding relies on something from SS package, so you need to install:

http://www.sony.co.uk/support/en/content/cnt-dwnl/prd-comp/soasst-01198207-un_3217

first

so SS installs some directshow filters:

https://forum.dbpoweramp.com/archive/index.php?t-7532.html

and you can see them with this tool (with referrences to used dlls):

http://www.nirsoft.net/utils/installed_codec.html

this way "switch" converter is able to decode atrac lossless files

comment:12 by Maxim Poliakovski, 3 years ago

Atrac lossless appears to be abandoned today.

As author of both Atrac3 and Atrac3plus implementations in ffmpeg, I think it should be possible to provide a quick support for decoding of the base layer which is simply either Atrac3 or Atrac3plus.

The lossless property is achieved by the so-called enhancement layer (that's how Sony guys calls the residual data). It transmits differences between the original signal and its lossy encoding using Atrac3/Atrac3plus. I believe that due to the nature of the residual consisting of very small differences, some kind of entropy encoding is employed. Understanding it will be probably rather easy compared with the sophisticated lossy algorithms used in the base layer.

Can someone provide me with samples, preferably those that use both Atrac3 and Atrac3plus base layers as well as different bitrates? All datafilehost links attached to this issue are broken.

Cheers
Maxim Poliakovski

Last edited 3 years ago by Maxim Poliakovski (previous) (diff)
Note: See TracTickets for help on using tickets.