Closed hoferbeck closed 3 months ago
try to delete AUDIO_DOWNLOAD_DIR=/downloads-music
or this may helpful
"postprocessors": [ {"key":"SponsorBlock", "categories":["music_offtopic"], "when": "after_filter"}, {"key": "ModifyChapters", "remove_sponsor_segments": {"music_offtopic"}} ]
Hello,
i have commeted the AUDIO_DOWNLOAD_DIR variable, but i still get the same error.
if im trying the postprocessor from you i get this Docker error: services.metube.environment.[3]: unexpected type map[string]interface {}
[B7xai5u_tnk].temp.m4a.concat':
Duration: N/A, start: 0.000000, bitrate: 127 kb/s
Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s
Metadata:
handler_name : ISO Media file produced by Google Inc.
vendor_id : [0][0][0][0]
Stream #0:1: Video: png, rgb24(pc), 1280x720, 90k tbr, 90k tbn <-------- a png in m4a file
[ipod @ 0x7f8e75e15ac0] Could not find tag for codec png in stream #1, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:1 --
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
ERROR: Stream #0:1 -> #0:1 (copy)
Traceback (most recent call last):
..........
yt_dlp.postprocessor.ffmpeg.FFmpegPostProcessorError: Stream #0:1 -> #0:1 (copy)
yes there is an issue, which looks like m4a has an embed thumbnail and ffmpeg can't deal with it. I tried ffmpeg 5.2 to 6.1 and this issue exists. maybe we need to use ffmpeg to delete the png after download. but I don't know how, sorry
Wouldn't it be possible to implement the --sponsorblock-remove music_offtopic
argument into Metube?
as its working flawless for me (even inside the metube container)
Wouldn't it be possible to implement the
--sponsorblock-remove music_offtopic
argument into Metube? as its working flawless for me (even inside the metube container)
works for mp4 :joy:
MP4 files are too big for my main use case
Hear the music on my phone/ car radio
"writethumbnail":false,
"postprocessors":[
{"key": "FFmpegCopyStream"},
{"key":"SponsorBlock","categories":["music_offtopic"],"when": "after_filter"},
{"key": "ModifyChapters","remove_sponsor_segments": ["music_offtopic"]},
Using these parameters will not throw an error, but I don't know if it removes the sponsor block correctly.
YTDL_OPTIONS='"writethumbnail":false,"postprocessors":[{"key":"FFmpegCopyStream"},{"key":"SponsorBlock","categories":["music_offtopic"],"when":"after_filter"},{"key":"ModifyChapters","remove_sponsor_segments":["music_offtopic"]}]'
seems you missed a ] in the and but now get the error "YTDL_OPTIONS is invalid" at start
with a part of json, it should be fasle
, which is I'm using.
with a part of python, it should be False
, maybe you should use it.
I was able to get it running with a multi line string in the docker compose yaml. For some reason, I got the error mentioned before that config is invalid, when i do everything into one line
YTDL_OPTIONS: >
{"writethumbnail":false,
"postprocessors":[
{"key": "FFmpegCopyStream"},
{"key":"SponsorBlock","categories":["music_offtopic"],"when": "after_filter"},
{"key": "ModifyChapters","remove_sponsor_segments": ["music_offtopic"]}]}
In that case my "main" problem is closed, would be nice if it is somehow possible to get it working with a thumbnail (but that's a low importance for me
Hello,
Im using Metube to download songs to my music library .
Inspired by this Im trying to also add sponsorblock but it fails when i try to download a OPUS/M4A file (with MP3 its working)
I also try it manually via yt-dlp cli:
yt-dlp https://www.youtube.com/watch?v=B7xai5u_tnk --sponsorblock-remove music_offtopic -f 140
i got the same HTTP400 error but it got downloaded anyways and cut the segment away
Example Video (the last few Seconds are cut(non music segement)
Docker Config:
Docker Logs:
Edit: I updated the Image the HTTP 400 Errors are now gone, but Post processing isnt still working: