this post was submitted on 04 Nov 2023
99 points (93.0% liked)

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

53939 readers
225 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


💰 Please help cover server costs.

Ko-FiLiberapay


founded 1 year ago
MODERATORS
 

I read somewhere that it is possible to rip youtube videos (music only) without the need for converting it into an mp3 as such.

The online conversion process (naturally) results in loss of quality, and (apparently) it is possible to preserve the original video's audio quality via a direct rip. If so, how would it be done and what format would it be in anyway?

thanks

you are viewing a single comment's thread
view the rest of the comments
[–] guitarsarereal@sh.itjust.works 29 points 10 months ago (1 children)

if you use yt-dlp or youtube-dl's -F flag you can get back a list of available formats. There are typically separately encoded audio tracks for most content on youtube, meaning you can just give it the stream id and get an m4a or webm file with no extra work.

[–] XEAL@lemm.ee 12 points 10 months ago (2 children)

The fork yt-dlp already downloads in the highest quality.

The problem is that, that's (sometimes?) webm format...

[–] neo@lemmy.comfysnug.space 3 points 10 months ago (1 children)

WARNING: webm doesn't support embedding a thumbnail, mkv will be used

Embed thumbnails, you'll never see a webm again.

[–] XEAL@lemm.ee 2 points 10 months ago (1 children)

I resorted to a shitty script that gets the most m4a video quality using grep and awk.

Is the thumbnail embedding a yt-dlp feature?

[–] neo@lemmy.comfysnug.space 2 points 10 months ago* (last edited 10 months ago)

yes but i think it's also present in youtube-dl --embed-thumbnail

[–] guitarsarereal@sh.itjust.works 2 points 10 months ago

Your intended playback device impacts which format you'll want. Or maybe I'm just fussy, I dunno.