sentriz / gonic

music streaming server / free-software subsonic server API implementation
ircs://irc.libera.chat/#gonic
GNU General Public License v3.0
1.57k stars 112 forks source link

Could not read tags #523

Closed Artifechs closed 3 months ago

Artifechs commented 3 months ago

if from docker, docker tag: 0e45f5e

This happens on files that I tagged with MusicBrainz Picard, just like the rest of my collection.

2024/06/26 16:42:19 error while scanning: "/music/[...]/[ALBUM NAME]": populate track "[TRACK NAME]": open: cannot process /music/[...]/[ALBUM NAME]/[TRACK NAME]: could not read tags

This file: file.ogg.zip

sentriz commented 3 months ago

how did you create this ogg file? it looks like the audio track is not really audio data, and there are two extra video tracks - one with most of the audio metadata. i don't think that's what you really want

ffprobe ``` ffprobe version n6.1.1 Copyright (c) 2007-2023 the FFmpeg developers Input #0, ogg, from 'file.ogg': Duration: 00:03:47.93, start: 0.000000, bitrate: 113 kb/s Stream #0:0: Video: theora, yuv444p, 1280x1280 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn Metadata: ARTIST : Seeed album_artist : Seeed comment : Cover (front) ALBUM : BAM BAM GENRE : Pop TOTALTRACKS : 11 DATE : 2019-10-04 track : 1 TITLE : Ticket ENCODER : Lavc60.31.102 libtheora ACOUSTID_ID : 81af6438-668c-4525-a7b8-451a9c506747 MUSICBRAINZ_RELEASEGROUPID: e3098485-31ee-4f45-9cb5-1842e31ee6a5 ORIGINALDATE : 2019-10-04 ORIGINALYEAR : 2019 RELEASETYPE : album MUSICBRAINZ_ALBUMID: 6ebfb934-0630-497b-a439-2e5111607ca2 BARCODE : 4050538545203 SCRIPT : Latn MUSICBRAINZ_ALBUMARTISTID: 49c43c49-328d-4b14-8a1d-be99cafaec14 ALBUMARTISTSORT : Seeed RELEASESTATUS : official TOTALDISCS : 1 MEDIA : Digital Media disc : 1 MUSICBRAINZ_TRACKID: 5d131a00-6e0b-4cb6-909a-ce9b1c31f110 ISRC : DELV41900225 MUSICBRAINZ_ARTISTID: 49c43c49-328d-4b14-8a1d-be99cafaec14 ARTISTSORT : Seeed ARTISTS : Seeed MUSICBRAINZ_RELEASETRACKID: 6bfe6ebd-e59e-4773-8131-79963feedf98 TRACKTOTAL : 11 DISCTOTAL : 1 Stream #0:1: Audio: vorbis, 44100 Hz, stereo, fltp, 112 kb/s Metadata: encoder : Lavc60.31.102 libvorbis ALBUM : BAM BAM album_artist : Seeed ARTIST : Seeed DATE : 2019 TITLE : Ticket TRACKTOTAL : 11 track : 1 GENRE : Pop Stream #0:2: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 500x500 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn (attached pic) Metadata: comment : Cover (front) ```
sentriz commented 3 months ago

it works after extracting only the audio track ffmpeg -i file.ogg -vn -acodec copy out.ogg

sentriz commented 3 months ago

closing since doesnt seem to be a gonic issue (taglib can't read it either) but feel free to ask for more help

Artifechs commented 3 months ago

It was downloaded with yt-dlp, so that's probably where the issue is. Alright, thanks for the help!