othmar52 / slimpd

PHP/JS based MPD-web-client for large music collections
GNU Affero General Public License v3.0
41 stars 11 forks source link

m4a waveform conversion script #30

Closed killhellokitty closed 8 years ago

killhellokitty commented 8 years ago

This is a bit long, it has to convert from M4A to WAV to MP3 to WAV. It could be done shorter using FFmpeg. This way uses FAAD2.

 /usr/bin/faad -q -o '/srv/http/slimpd/cache/m4a.f3ecf7790e9394981c09915efc5668d0.wav' '/srv/http/slimpd/templates/partials/systemcheck/waveforms/testfiles/testfile-online-audio-converter.com.m4a' && /usr/bin/lame -m m -S -f -b 16 --resample 8 '/srv/http/slimpd/cache/m4a.f3ecf7790e9394981c09915efc5668d0.wav' '/srv/http/slimpd/cache/m4a.f3ecf7790e9394981c09915efc5668d0.mp3' && lame -S --decode '/srv/http/slimpd/cache/m4a.f3ecf7790e9394981c09915efc5668d0.mp3' '/srv/http/slimpd/cache/m4a.f3ecf7790e9394981c09915efc5668d0.wav'