deniscerri / ytdlnis

Android Video/Audio Downloader app using yt-dlp
GNU General Public License v3.0
3.62k stars 123 forks source link

[BUG] Cannot embed chapters to audio #406

Open ksi opened 6 months ago

ksi commented 6 months ago

Describe the bug Some videos cannot be downloaded successfully. It failes on chapter adding in audio only mode. See logs.

To Reproduce Try to download the video in audio only mode: https://youtube.com/watch?v=Ao-746CujAE&si=qfoMLu2cQdb6v28w

(please complete the following information):

Additional context

 -N "3" --cookies "/data/user/0/com.deniscerri.ytdl/cache/cookies.txt" --trim-filenames "202" --no-mtime --sponsorblock-remove "music_offtopic,selfpromo,preview,sponsor,intro,outro,filler,interaction" --parse-metadata "%(channel,uploader,creator,artist|null)s:%(uploader)s" --parse-metadata "%(uploader)s:%(album_artist)s" --parse-metadata "%(release_year,release_date>%Y,upload_date>%Y)s:%(meta_date)s" --parse-metadata "video:%(uploader)s:%(album_artist)s" --parse-metadata "%(album,title)s:%(meta_album)s" -x --audio-format "m4a" -P "/data/user/0/com.deniscerri.ytdl/cache/downloads/677" -S "hasaud,acodec:aac,ext:m4a" --embed-metadata --embed-thumbnail --convert-thumbnails "jpg" -o "%(uploader,channel)s - %(title)s.%(ext)s" "https://youtube.com/watch?v=Ao-746CujAE&si=qfoMLu2cQdb6v28w"

WARNING: unable to embed using mutagen; chapter 3 title: 'utf-8' codec can't decode byte 0xd0 in position 254: unexpected end of data
ERROR: Postprocessing: Unable to embed using ffprobe & ffmpeg;   Stream #1:0 -> #0:1 (copy)
zaednasr commented 6 months ago

Does this happen always or just in this video because judging from the command it looks fine

ksi commented 6 months ago

Fore some videos. This is an example. I saw people looking for the same error in yt-dpl, ffmpeg and python itself

On Thu, Feb 15, 2024, 15:28 zaednasr @.***> wrote:

Does this happen always or just in this video because judging from the command it looks fine

— Reply to this email directly, view it on GitHub https://github.com/deniscerri/ytdlnis/issues/406#issuecomment-1946000902, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABB6WHPANXMSCXBHLEOBHLYTX5M7AVCNFSM6AAAAABDIK7MYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBWGAYDAOJQGI . You are receiving this because you authored the thread.Message ID: @.***>

zaednasr commented 6 months ago

Well this app relies on ytdlp. Ytdlp has to fix the download process and it will work in the app too

ksi commented 6 months ago

As for me workaround is:

In this case file will be downloaded and processed successfully.

tusharchopra07 commented 6 months ago

It can't be the solution of your problem, still if it's working, I guess you can simply disable embed metadata from settings

ksi commented 6 months ago

I don't know what exactly does it embed. It tries to embed chapters, but I cannot see chapters in my podcatcher even if the issue is not reproduced.