Open Invictaz opened 4 years ago
You can decode atrac3plus by ffmpeg to pcm and than encode pcm to atrac1. The result will be same.
That requires additional extra steps and extra harddrive space which consume a lot of time.
I can support read from stdin, on linux/mac it makes possible to pipeline ffmpeg and atracdenc without saving temporal files. It can be done for quite short period.
Great, I hope it is possible on the Windows build as well (or with temp files which can be deleted after processing).
The New Year present ))
I added support of reading from stdin for windows and POSIX. So now it should be possible make a pipe from ffmpeg to atracdenc. Example:
ffmpeg -i input_audio_file_supported_by_ffmpeg -f au - | atracdenc -e atrac1 -i - -o out.aea
It seems as if the pipe is failing:
The ffmpeg input file has 48000 samplerate. Try to add ffmpeg option to resample stream to 44100
Thanks, it seems to work for ATRAC3, but not for ATRAC3 plus (see below)
ffmpeg -i
For ATRAC3Plus it seems to fail
Can upload sample file if you want.
It's quite weird as an output file is generated but still the errors in the console.
Can you just decode this sample by ffmpeg? If so please send me this sample.
Maybe use -f wav
instead, all formats seem to work for me instead of using -f au
.
And to get 'DSP Type-?' kind of that extra 'airy'-sound you could pre-process the wav with eg. stereotool.com (free version is what i use) and search for a very neutral profile on the forum (or create one your self) especially more silent/background instruments need to be pushed more forward i guess, and widen the stereo a bit, that is probably what the DSP/Type stuff does during recording, but i can only guess.
For example; you can also pipe stereotool so you command will be like:
ffmpeg -i input.flac -f wav - | stereo_tool_mac - - -s neutral.sts | atracdenc -e atrac1 -i - -o output.aea
Is not possible yet. It's only possible to decode Atrac1, not Atrac 3 or Atrac 3 Plus.
Decoding source
ATRAC3 Plus https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/atrac3plus.c ATRAC3 https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/atrac3.c
Or use the one from VGMStream
https://github.com/losnoco/vgmstream