[GH-ISSUE #595] flac transcoding not working on current master #424

Closed
opened 2026-02-26 02:33:10 +03:00 by kerem · 4 comments
Owner

Originally created by @jbheren on GitHub (May 18, 2017).
Original GitHub issue: https://github.com/koel/koel/issues/595

Hi, I installed current master on a raspberry pi with success. It works fine an music plays properly.

Anyway event with ffmpeg installed, flac files are not playing. After searching in past and current issues, i found no answer.

The console on firefox 54 says

HTTP “Content-Type” of “text/html” is not supported. Load of media resource http://raspberrypi.local/api/35d0f96875f5c9a88977224dabd22da2/play?jwt-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEsImlzcyI6Imh0dHA6XC9cL2tvZWwubGVtYWl0cmV6b3IuY29tXC9hcGlcL21lIiwiaWF0IjoxNDk1MTE3OTEwLCJleHAiOjE0OTU3MjI3MTAsIm5iZiI6MTQ5NTExNzkxMCwianRpIjoiMzllYmI3MTlkZWE5OGMzNzk2NWY4YTExMDc3NzMwYjQifQ.5HghpxSpibdgFShTCHHrFjXK_Gr2CftNv3jWFOMWLh0 failed.  raspberrypi.local
Cannot play media. No decoders for requested formats: text/html

Chrome 59 says

Uncaught (in promise) DOMException: Failed to load because no supported source was found.

The documentation says flac support has "some limitations". Any details about that ?

NB : here is how I installed koel

Originally created by @jbheren on GitHub (May 18, 2017). Original GitHub issue: https://github.com/koel/koel/issues/595 Hi, I installed current master on a raspberry pi with success. It works fine an music plays properly. Anyway event with ffmpeg installed, flac files are not playing. After searching in past and current issues, i found no answer. The console on firefox 54 says ``` HTTP “Content-Type” of “text/html” is not supported. Load of media resource http://raspberrypi.local/api/35d0f96875f5c9a88977224dabd22da2/play?jwt-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEsImlzcyI6Imh0dHA6XC9cL2tvZWwubGVtYWl0cmV6b3IuY29tXC9hcGlcL21lIiwiaWF0IjoxNDk1MTE3OTEwLCJleHAiOjE0OTU3MjI3MTAsIm5iZiI6MTQ5NTExNzkxMCwianRpIjoiMzllYmI3MTlkZWE5OGMzNzk2NWY4YTExMDc3NzMwYjQifQ.5HghpxSpibdgFShTCHHrFjXK_Gr2CftNv3jWFOMWLh0 failed. raspberrypi.local Cannot play media. No decoders for requested formats: text/html ``` Chrome 59 says ``` Uncaught (in promise) DOMException: Failed to load because no supported source was found. ``` The documentation says flac support has "some limitations". Any details about that ? NB : [here is how I installed koel](https://gist.github.com/jbheren/5c58b8488e0c47e6063cdcbe599c2ce1)
kerem closed this issue 2026-02-26 02:33:10 +03:00
Author
Owner

@BernardGoldberger commented on GitHub (May 19, 2017):

@jbheren You need to set the ffmpeg path in the .env file, probably something like this...

sed -i 's/FFMPEG_PATH=/ffmpeg/bin/ffmpeg.exe/g' .env

That is what the path looks like in windows, adjust to your environment.

<!-- gh-comment-id:302823713 --> @BernardGoldberger commented on GitHub (May 19, 2017): @jbheren You need to set the `ffmpeg` path in the `.env` file, probably something like this... ``` sed -i 's/FFMPEG_PATH=/ffmpeg/bin/ffmpeg.exe/g' .env ``` That is what the path looks like in windows, adjust to your environment.
Author
Owner

@phanan commented on GitHub (May 21, 2017):

FLAC's limitation is basically all about seeking. Your error seems to be from elsewhere. As @YakovGoldberger said, make sure the ffmpeg path is properly configured. Also, what gives if you paste the resource URL (/api/play...) directly into the address bar?

<!-- gh-comment-id:302918222 --> @phanan commented on GitHub (May 21, 2017): FLAC's limitation is basically all about seeking. Your error seems to be from elsewhere. As @YakovGoldberger said, make sure the ffmpeg path is properly configured. Also, what gives if you paste the resource URL (`/api/play...`) directly into the address bar?
Author
Owner

@jbheren commented on GitHub (May 21, 2017):

.env is properly set with ffpmeg path (/usr/bin/local/ffmpeg)

If i paste the ressource URL, firefox downloads an empty flac file with proper filename.

There is nothing relevant in larravel.log and mime_content_type($song->path) returns proper audio/x-flac mime type.

May I check TranscodingStreamer's passthru ?

<!-- gh-comment-id:302921485 --> @jbheren commented on GitHub (May 21, 2017): .env is properly set with ffpmeg path (/usr/bin/local/ffmpeg) If i paste the ressource URL, firefox downloads an empty flac file with proper filename. There is nothing relevant in larravel.log and `mime_content_type($song->path)` returns proper `audio/x-flac` mime type. May I check [TranscodingStreamer](https://github.com/phanan/koel/blob/bbc7c37f24ab4cb81f83fad6034bd51e10c6f7ef/app/Services/Streamers/TranscodingStreamer.php)'s passthru ?
Author
Owner

@sfb2 commented on GitHub (May 25, 2017):

HTTP “Content-Type” of “text/html” is not supported

its absolut a mime-type problem..check your apache/nginx configuration..

<!-- gh-comment-id:304038497 --> @sfb2 commented on GitHub (May 25, 2017): > HTTP “Content-Type” of “text/html” is not supported its absolut a mime-type problem..check your apache/nginx configuration..
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#424
No description provided.