Sonerezh / sonerezh

A self-hosted, web-based application to stream your music, everywhere.
https://www.sonerezh.bzh
GNU Affero General Public License v3.0
767 stars 122 forks source link

libav "avconv" archlinuxarm #190

Open lolop-lj opened 8 years ago

lolop-lj commented 8 years ago

Bonjour,

J'utilise sonerezh sur raspberry et archlinux.

Bon je suis pas le premier, mais pas de libav sur archlinux. Il y a bien des paquets sur AUR, mais la compilation me parait fastidieuse.

J'ai essayé de récupérer un binaire de raspbian, mais il me manque la librairie libavdevice.so.53. J'ai vu que certain sur certain paquet de libav-tool raspbian pointé un lien symbolique sur ffmpeg. J'imagine que si je fait un lien sur ma version de ffmpeg ça ne va pas fonctionner. Donc si vous avez une astuce, je serais preneur.

C'est prévu de laisser le choix entre ffmpeg ou libav dans le futur?

ltguillaume commented 8 years ago

I'm running Arch Linux on a Raspberry Pi as well, and Sonerezh can find the ffmpeg package and is able to convert e.g. FLAC files to its Cache folder perfectly fine. The problem, though, is that afterwards it will not play back the created MP3 file.

These are the lines I subsequently find in the error.log file:

2016-06-08 09:35:57 Error: [NotFoundException] The requested file was not found
Request URL: /songs/download/18943
Stack Trace:
#0 /srv/http/sonerezh/app/Controller/SongsController.php(521): CakeResponse->file('/srv/http/soner...', Array)
#1 [internal function]: SongsController->download('18943')
#2 /srv/http/sonerezh/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(SongsController), Array)
#3 /srv/http/sonerezh/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#4 /srv/http/sonerezh/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(SongsController), Object(CakeRequest))
#5 /srv/http/sonerezh/app/webroot/index.php(107): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#6 {main}

(Of course it would be even greater if proper support for FLAC/AAC were to be introduced via Aurora's browser playback).

ltguillaume commented 8 years ago

I managed to fix this by adding the following line before the ffmpeg command in SongsController.php:

header('Content-Type: audio/mp3');

(and header('Content-Type: audio/ogg'); before ogg ffmpeg command)

lGuillaume124 commented 7 years ago

Duplicate with #107