this post was submitted on 17 Aug 2024
71 points (98.6% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

54345 readers
667 users here now

⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don't request invites, trade, sell, or self-promote

3. Don't request or link to specific pirated titles, including DMs

4. Don't submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder

📜 c/Piracy Wiki (Community Edition):


💰 Please help cover server costs.

Ko-Fi Liberapay
Ko-fi Liberapay

founded 1 year ago
MODERATORS
 

The thumbnail image is a screenshot from a Youtube video, for a song. the lyrics in gold color are Youtube closed captions, they look cool and stylish right? This is common in videos of 4K scaled anime openings. Can I get these offline? I know I can download videos using yt-dlp, and include subtitles in the container using the --embed-subs flag, I think you can also download subtitle files in vtt extension, but VLC can't read them I think.

I didn't include a link cuz it might become a hustle for dbzer0, but since some are asking here you go: https://www.youtube.com/watch?v=CXzoiiZo5LA
https://www.youtube.com/watch?v=StLX4kITjWU

there were better ones (Kaguya-sama openings) but I can't find them anymore on Youtube, stupid copyrights, thus my obsession of hoarding what I like

Update: @Majestic@lemmy.ml provided the solution,
1- download the subtitle file in vtt format using yt-dlp:
yt-dlp --skip-download --embed-subs https://youtu.be/5i3pX-2NLKk?si=waYB6Jv4d6gxsVuh

2- use Subtitle Edit's batch converter tool to convert the vtt file into .ass format

3- now just import it on VLC while watching your downloaded video, the subtitles will appear in the same styling as on Youtube, additionally you can embed them to the video container using ffmpeg

top 19 comments
sorted by: hot top controversial new old
[–] dabaldeagul@feddit.nl 22 points 2 months ago (2 children)

Are these the web based captions? I didn't know you could have those in 2 locations at the same time (top and bottom)... That's neat. But it does make me think they're baked into the video, in which case they'd always be included if you download them.

[–] zaknenou@lemmy.dbzer0.com 5 points 2 months ago (1 children)
[–] dabaldeagul@feddit.nl 12 points 2 months ago

Woah, that's pretty cool. I didn't know YouTube supported this type of format for the closed captions.

[–] Exec@pawb.social 3 points 2 months ago (1 children)
[–] nilloc@discuss.tchncs.de 3 points 2 months ago (1 children)

Wow, so there are color, location and timing options that can be coded into these.

Sounds like something the VLC maintainers should add support for.

[–] zaknenou@lemmy.dbzer0.com 2 points 2 months ago

VLC does support it, if the subtitles are in .ASS format

[–] jlow@beehaw.org 9 points 2 months ago (1 children)

Maybe check other players if they can display them correctly? Not sure if mpv can butt that's what I'd try first.

[–] zaknenou@lemmy.dbzer0.com 6 points 2 months ago

tried MPV since I'm on ubuntu, yeah it displayed the subtitles when I imported them (after downloading as vtt files). certainly better than VLC, but the effects and colors and exact position are not there. I think the position might be easy to adjust, but the other things no idea.

[–] Majestic@lemmy.ml 8 points 2 months ago* (last edited 2 months ago) (1 children)

Open the web subtitles in subtitleedit. Change format to ass (advanced substation alpha). Save and re-embed using mkvtoolnix.

Positioning of multiple lines works well with ass and VLC shouldn’t have an issue reading and displaying. Not sure if YouTube includes the positioning data in their subtitles though. You could recreate that in subtitle edit (free software btw, dk web domain I believe) but it would be a bit of an annoyance.

edit: Corrected domain name. Not German, but nikse is it as OP has suggested

[–] zaknenou@lemmy.dbzer0.com 3 points 2 months ago (1 children)

subtitleedit

this is the software ?

[–] Majestic@lemmy.ml 4 points 2 months ago (1 children)

Yes. It’s incredibly powerful but easy to use for a basic purpose like editing a line or converting formats.

[–] zaknenou@lemmy.dbzer0.com 1 points 2 months ago

update: It worked perfectly! I first tried some online converters but their produced .ass files didn't have even colors. but when I tried subtitle edit (on my brother's computer cuz I don't have Windows) the produced subtitles where exactly the same as in Youtube!

[–] unknowing8343@discuss.tchncs.de 7 points 2 months ago (1 children)

Link us to one of these examples, it doesn't seem that hard to get

[–] riquisimo@lemmy.dbzer0.com 2 points 2 months ago (2 children)

I really want to know how to extract them as well. I paid for a movie on YouTube since it was available nowhere else and yt wouldn't let me download it without DRM, so I just OBS'd the whole thing.

I had captions on, so they're baked in. I really like captions, but it would be nice to have the option to turn them off.

[–] zaknenou@lemmy.dbzer0.com 3 points 2 months ago* (last edited 2 months ago)

if they are not stylized you can download them as soft sub. you could download the movie too, all using yt-dlp, since you have access I think.
I mentioned how to download subtitles in my post

[–] zaknenou@lemmy.dbzer0.com 3 points 2 months ago (1 children)

update: a solution was provided and I edited the post

[–] riquisimo@lemmy.dbzer0.com 1 points 2 months ago (1 children)

Awesome! I'll check this out!!

[–] zaknenou@lemmy.dbzer0.com 1 points 2 months ago

feel free to dm/reply if a problem is faced, also r/youtubedl has a mod who answers almost every question