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

WMA waveform conversion script #33

Closed killhellokitty closed 8 years ago

killhellokitty commented 8 years ago

This one uses Mplayer (and FFmpeg, through mplayer). Its kinda strange it plays the audio file and rerecords it to WAV file, then the WAV to MP3 to WAV happens like in most of the other conversions. I have not tested this to make sure it works properly, I have no WMA's. You may want to test it first, if you choose to use it.

/usr/bin/mplayer -really-quiet '/srv/http/slimpd/templates/partials/systemcheck/waveforms/testfiles/testfile-online-audio-converter.com.wma' -ao pcm:file='/srv/http/slimpd/cache/wma.06a76631d599a699e93ea9462f7f0feb.wav' && /usr/bin/lame -m m -S -f -b 16 --resample 8 '/srv/http/slimpd/cache/wma.06a76631d599a699e93ea9462f7f0feb.wav' '/srv/http/slimpd/cache/wma.06a76631d599a699e93ea9462f7f0feb.mp3' && lame -S --decode '/srv/http/slimpd/cache/wma.06a76631d599a699e93ea9462f7f0feb.mp3' '/srv/http/slimpd/cache/wma.06a76631d599a699e93ea9462f7f0feb.wav'

othmar52 commented 8 years ago

Its kinda strange it plays the audio file and rerecords it to WAV file,

as waveform generating is done on demand and not in advance its not a good solution. imagine you have some multiple-hours-dj-mix.wma. Will the process of generating also last that long?

killhellokitty commented 8 years ago

I really don't know. For WMA and AC3 the Mplayer conversion seems to be preferred. They could always be changed to use FFmpeg alone I suppose. These 2 leave questions. They would need to be tried out.

On Thu, Aug 4, 2016 at 3:27 PM, othmar52 notifications@github.com wrote:

Its kinda strange it plays the audio file and rerecords it to WAV file,

as waveform generating is done on demand and not in advance its not a good solution. imagine you have some multiple-hours-dj-mix.wma. Will the process of generating also last that long?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/othmar52/slimpd/issues/33#issuecomment-237673178, or mute the thread https://github.com/notifications/unsubscribe-auth/AJKslWbKZdaLJ8UnqNCqMe3xH7SXDLqPks5qcks0gaJpZM4JdFAy .

othmar52 commented 8 years ago

this seems to work perfectly - thank you!