mirror of
https://github.com/koel/koel.git
synced 2026-04-25 08:46:00 +03:00
[GH-ISSUE #795] Wrong MIME Type for a flac song #567
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#567
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Tzigamm on GitHub (Aug 29, 2018).
Original GitHub issue: https://github.com/koel/koel/issues/795
Hello everyone, and thank you for reading this !
After some headaches, I finally got Koel v3.7.2 installed just the way I want it, and I must say, I'm really impressed, that's some really good job, thank you very much for this app !
Unfortunately I've encountered a problem during testing: my flac files aren't played at all. The server is on a Debian Stretch machine, running apache and php7. The problem seems to be related to Koel: if I move a "song.flac" to Koel's folder music.be-ta.art/song.flac is readable and the HEAD program on linux outputs this, proving my apache know what type to apply to the file.
The problem appears when trying to play a flac song from the Koel app: here's the output of my firefox console when trying to play a song:
Le « Content-Type » HTTP « text/html » n’est pas géré. Le chargement de la ressource média https://music.be-ta.art/api/2473e1133a3acdd10cc82c3946338b52/play?jwt-token=XXXX a échoué.(Pardon my french, I have no idea how to get it in english, it means "The text/html HTTP Content-Type can't be handled, the media "..." can't be played)
Impossible de lire le média. Aucun décodeur pour les formats nécessaires : text/html, text/html, text/html, text/html, text/html, text/html, text/html, text/html, text/html, text/html, text/html(Can't read the media, no decoder for these formats)
Just to be sure I tried a HEAD on
https://music.be-ta.art/api/2473e1133a3acdd10cc82c3946338b52/play?jwt-token=XXXX, here's the result. As you can see now the file is considered to be a html page (and if I copy paste the link in my browser firefox wants to save a 0 Byte file named "song.flac")I'm sure this is actually some beginner stuff but Koel seems a bit to specific for Google so I'm hoping someone here knows how to solve this (it might even be helpful to someone else who knows !)
@phanan commented on GitHub (Aug 30, 2018):
If possible, can you send me the flac file in question?
@Tzigamm commented on GitHub (Aug 30, 2018):
Sure, it's online again, you can download it here (at least until I re-secure Koel): music.be-ta.art/song.flac
@Tzigamm commented on GitHub (Aug 31, 2018):
I tried a full reinstall, just to be sure. The issue is still here so I tried to serve the site using both apache2 and artisan, it does not seem to change anything though... Weird...
Edit: Actually it changed something but not much: the second message in the console does not appear anymore
@phanan commented on GitHub (Aug 31, 2018):
The file is 404 for me.
@Tzigamm commented on GitHub (Aug 31, 2018):
Oh sorry about that, forgot to copy it back after reinstalling, it's online again
@phanan commented on GitHub (Aug 31, 2018):
Works fine for me. Make sure your
FFMPEG_PATHsetting (found in.env) is sound.@Tzigamm commented on GitHub (Aug 31, 2018):
That's the problem, the song works perfectly fine when in the root directory, the problem is when I'm trying to stream it through Koel
Checked the ffmpeg path, if I copy-paste it in bash it works so this is not the problem
Would a burner account help you ? No idea if it would but I can make you something for testing purposes
@phanan commented on GitHub (Sep 1, 2018):
No, I mean the song streams perfectly with Koel.
Kévin Bergue notifications@github.com schrieb am Fr. 31. Aug. 2018 um
20:58:
@Tzigamm commented on GitHub (Sep 1, 2018):
So it's probably an issue with my install ? I thought the point of composer was to install everything needed for Koel to work out of the box, probably some dependency failed to install... Is there some kind of command to check on the dependencies?
@phanan commented on GitHub (Sep 1, 2018):
The dependencies should be totally fine. I’m sorry but I’m out of ideas —
Koel streams your file just fine for me. I’d check for apache/nginx
configuration; there might be something funny there.
Kévin Bergue notifications@github.com schrieb am Sa. 1. Sep. 2018 um
13:44:
@Tzigamm commented on GitHub (Sep 1, 2018):
But if it's Apache related the problem wouldn't appear when using artisan to serve, right ?
@phanan commented on GitHub (Sep 2, 2018):
You’re right. Something with your installation of ffmpeg/php, maybe? I’m
just throwing guesses around here.
Kévin Bergue notifications@github.com schrieb am Sa. 1. Sep. 2018 um
18:31:
@Tzigamm commented on GitHub (Sep 2, 2018):
Is there some way to check that ? In some log file maybe ?
@Tzigamm commented on GitHub (Sep 10, 2018):
After coming back from vacation I tried to dig some more, I don't really get what the -vvv option of serve does as it doesn't change anything in laravel.log, is there any other log file for koel ?
@phanan commented on GitHub (Sep 10, 2018):
No there isn’t.
Kévin Bergue notifications@github.com schrieb am Mo. 10. Sep. 2018 um
21:37:
@BrookeDot commented on GitHub (Apr 22, 2020):
I'm going to close this as I don't think An was able to replicate the issue and as far as I know it hasn't come up since. There are a few other Flac issues (#561 and #306 for example) but they seem unrelated.