I need some light

  • 3 Posts
  • 17 Comments
Joined 1 year ago
cake
Cake day: May 19th, 2024

help-circle

  • It is not a dumb question at all. I asked my self the same question a few months ago. You are correct. It is essentially just metadata. You can embed them with something like kid3 directly into the music file it self. So for example I have a .lrc file(the sync lyrics file). It will look something like this:

    [00:16.60]Through your terribly fragile heart.

    [00:24.70]Even the secret of the red fruit is, "I’ll give it all to you.

    [00:32.90]Even though I’m still hurting your leaky heart

    [00:40.50]I still see your dream

    [00:44.00]A person whose beauty that can’t be achieved whose beauty can’t be achieved…

    [00:51.80]I want you to love me, I want you to love me …

    U can just copy the text in the .lrc file and then write it into the music file with a lyrics tag with something like kid3. If u open the music file with a music player that supports it, u will get synced lyrics. The process is quite tedious to do manually, so I made an app to download audio from YouTube videos and embed the subtitles as lyrics to do it for me (yes, this is a shameless plug). If you are interested, you can check it out. Azul box










  • For the first question, I assume that you want to put all video downloaded into one big video in CLI. I guess you can do something like this with ffmpeg: ffmpeg -i "concat:input1|input2|input3|etc" -codec copy output.mkv If you want to work it out with yt-dlp you can try this:

    yt-dlp "a link" Assuming you get mp4 format ls -1 *.mp4 > file_list.txt then ffmpeg -safe 0 -f concat -i list.txt -c copy output.mp4

    Also, is downloading the mp4 significantly different in sound quality than bestaudio (which tends to output a webm rather than mp4)?

    For your second question, I am not sure my self to be honest. I never actually look at it. That is why for my app this is the arg I use to get best video and also best audio: -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"

    You can probably play a bit more with the format, if you feel like it.

    Hope this help!