# Yt-dlp command for those who like it tidy

**URL:** <https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733>\
**Category:** Applications\
**Created:** [June 21, 2025, 1:08am UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733 "2025-06-21T01:08:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![drunkenvicar](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/drunkenvicar/32/112222_2.png) [@drunkenvicar](https://forum.endeavouros.com/u/drunkenvicar)\
**Post date:** [June 21, 2025, 1:08am UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733/1 "2025-06-21T01:08:12Z")

</div>

I knew I wanted to stop playing video `.webm` and .`mp4` video downloads in my _music player_ so I actually RTFM (`man yt-dlp`) because I wanted to strip video out and collect audio only of my `yt-dlp` downloads…

So:  
`yt-dlp -x --audio-format mp3 https://youtu.be/ff0oWESdmH0`  
-`x` = strip out video, audio only  
` --audio-format mp3` means you pick which format (opus, flac, mp3, all the big ones etc) you wanted–I picked mp3

Behold a pale horse:  
 ![k2](https://forum.endeavouros.com/uploads/default/optimized/3X/3/7/3781acfda08fdae03b245b06697141201cd01876_2_690x44.png)

we made 40MB go right down the toilet! hooray!

When you get to the `-x` and `--audio-format` of the `man`, there are a bunch of granular controls in this area including showing/selecting source quality of the download, etc.

For those of you that already know this, you didn’t need this ‘tutorial.’  
For those that downloaded a bunch of mp4s _just to listen to, not watch_ (GUILTY) and are not rocking a 1TB SSD, this might help you.  
` -x --audio-format mp3` --if I can make a habit of these arguments, I can reclaim a lot of space.  
Dig it.

---

<div class="post-metadata">

**Author:** ![dirn](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dirn/32/126414_2.png) [@dirn](https://forum.endeavouros.com/u/dirn)\
**Post date:** [June 21, 2025, 8:26am UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733/2 "2025-06-21T08:26:15Z")

</div>

Thank you! I’m not aware of this. All this while I convert it to mp3 online 😅

---

<div class="post-metadata">

**Author:** ![cscs](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/cscs/32/118726_2.png) [@cscs](https://forum.endeavouros.com/u/cscs)\
**Post date:** [June 21, 2025, 9:19am UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733/3 "2025-06-21T09:19:05Z")

</div>

Even if you didnt want to read the man pages yourself an assortment of commands/options are listed at the archwiki page

> **[yt-dlp - ArchWiki](https://wiki.archlinux.org/title/Yt-dlp)**

Even more info at the git project;

> **[GitHub - yt-dlp/yt-dlp: A feature-rich command-line audio/video downloader](https://github.com/yt-dlp/yt-dlp)**
>
> A feature-rich command-line audio/video downloader

---

<div class="post-metadata">

**Author:** ![emk2203](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/emk2203/32/42832_2.png) [@emk2203](https://forum.endeavouros.com/u/emk2203)\
**Post date:** [June 21, 2025, 10:08am UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733/4 "2025-06-21T10:08:05Z")

</div>

Stripping out the video is also useful if you cast to audio receivers or smart tvs.

---

<div class="post-metadata">

**Author:** ![PackRat](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/packrat/32/114391_2.png) [@PackRat](https://forum.endeavouros.com/u/PackRat)\
**Post date:** [June 21, 2025, 10:54am UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733/5 "2025-06-21T10:54:21Z")

</div>

> [@drunkenvicar](#):
>
> if I can make a habit of these arguments,

bash aliases are your friends 😁

---

<div class="post-metadata">

**Author:** ![Moonbase59](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/moonbase59/32/112659_2.png) [@Moonbase59](https://forum.endeavouros.com/u/Moonbase59)\
**Post date:** [June 21, 2025, 11:12am UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733/6 "2025-06-21T11:12:22Z")

</div>

Also sometimes useful:

- Check available formats: `yt-dlp "URL" -F`
- Download only selected: `yt-dlp "URL" -f 270,140` (for example)

(Put the option at the end so you can easily backspace and type selected format numbers.)

---

<div class="post-metadata">

**Author:** ![rich52](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/r/ecb155/32.png) [@rich52](https://forum.endeavouros.com/u/rich52)\
**Post date:** [June 21, 2025, 11:22am UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733/7 "2025-06-21T11:22:02Z")

</div>

I suppose ‘Clipgrab’ would work just as well. . . . i.e. ( it allows you to download video’s with music and then selecting just mp3 it will strip the video away in the download process. . . ). My 2-cents worth. . .

Rich 😉

---

<div class="post-metadata">

**Author:** ![moxdrox](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/moxdrox/32/87725_2.png) [@moxdrox](https://forum.endeavouros.com/u/moxdrox)\
**Post date:** [June 21, 2025, 11:23am UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733/8 "2025-06-21T11:23:04Z")

</div>

Used that in the past. But now i find `yt-dlp -f "bestvideo[height<=1440]+bestaudio" "URL"` easier 🙂

---

<div class="post-metadata">

**Author:** ![dirn](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dirn/32/126414_2.png) [@dirn](https://forum.endeavouros.com/u/dirn)\
**Post date:** [June 21, 2025, 12:50pm UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733/9 "2025-06-21T12:50:01Z")

</div>

I have learned two things from this topic.

1. yt-dlp - to download mp3 audio
2. creating aliases - a method to simplify command usage in the terminal.

The outcome:

```auto
alias yt-mp3-download='yt-dlp -x --audio-format mp3 --audio-quality 320K -o "~/Music/yt-dl/%(title)s.%(ext)s"'

```

Thank you all 😃

---

<div class="post-metadata">

**Author:** ![drunkenvicar](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/drunkenvicar/32/112222_2.png) [@drunkenvicar](https://forum.endeavouros.com/u/drunkenvicar)\
**Post date:** [June 21, 2025, 2:16pm UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733/10 "2025-06-21T14:16:28Z")

</div>

> [@dirn](#):
>
> yt-dlp - to download mp3 audio

also we are using it to download mp4 video then changing it to audio 🙂 . Real glad you found a new tool.

> [@Moonbase59](#):
>
> - Check available formats: `yt-dlp "URL" -F`
> - Download only selected: `yt-dlp "URL" -f 270,140` (for example)
> 
> (Put the option at the end so you can easily backspace and type selected format numbers.)

Love these additional variables.

> [@emk2203](#):
>
> Stripping out the video is also useful if you cast to audio receivers or smart tvs.

interesting, is that because it is a smaller file?

---

<div class="post-metadata">

**Author:** ![thefrog](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/thefrog/32/114250_2.png) [@thefrog](https://forum.endeavouros.com/u/thefrog)\
**Post date:** [June 21, 2025, 2:21pm UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733/11 "2025-06-21T14:21:13Z")

</div>

> [@drunkenvicar](#):
>
> interesting, is that because it is a smaller file?

That is only a fraction of it. Stripping out video also strips out needed resources for video. No need to worry about video frame rates/bitrates, Cards, etc or other resources that would also consume the bandwidth of the stream.

---

<div class="post-metadata">

**Author:** ![drunkenvicar](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/drunkenvicar/32/112222_2.png) [@drunkenvicar](https://forum.endeavouros.com/u/drunkenvicar)\
**Post date:** [June 21, 2025, 2:34pm UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733/12 "2025-06-21T14:34:12Z")

</div>

> [@thefrog](#):
>
> Stripping out video also strips out needed resources for video. No need to worry about video frame rates/bitrates, Cards, etc or other resources that would also consume the bandwidth of the stream.

ahhhh videos might also come driver,s codecs, etc, and bandwidth baggage so if you are just listening to music it’s insanely inefficient to listen to videos. that makes sense, thank you. apparently I didnt think that one through… 🙂

---

<div class="post-metadata">

**Author:** ![dirn](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dirn/32/126414_2.png) [@dirn](https://forum.endeavouros.com/u/dirn)\
**Post date:** [June 21, 2025, 3:00pm UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733/13 "2025-06-21T15:00:04Z")

</div>

As a result, I no longer need to rely on online MP3 converters or search for and download songs from \*bay websites. 😇

---

<div class="post-metadata">

**Author:** ![drunkenvicar](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/drunkenvicar/32/112222_2.png) [@drunkenvicar](https://forum.endeavouros.com/u/drunkenvicar)\
**Post date:** [June 21, 2025, 3:08pm UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733/14 "2025-06-21T15:08:57Z")

</div>

> [@dirn](#):
>
> online MP3 converters

I even had an browser extension that did that but I never do trust those kinds of things these days

---

<div class="post-metadata">

**Author:** ![Moonbase59](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/moonbase59/32/112659_2.png) [@Moonbase59](https://forum.endeavouros.com/u/Moonbase59)\
**Post date:** [June 21, 2025, 3:30pm UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733/15 "2025-06-21T15:30:24Z")

</div>

I’m oldstyle. I prefer to listen to FLAC on my [_Lyrion Music Server_](https://lyrion.org/), connected to the livingroom stereo.

So I sometimes buy “mixed boxes” of CDs on the other \*bay (with an “e”), rip them using _whipper_, do my regular processing chain and they end up on my media NAS.

---

<div class="post-metadata">

**Author:** ![thefrog](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/thefrog/32/114250_2.png) [@thefrog](https://forum.endeavouros.com/u/thefrog)\
**Post date:** [June 21, 2025, 3:32pm UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733/16 "2025-06-21T15:32:27Z")

</div>

Yeah I converted a large portion of my music to flac. much better quality than mp3 and with the size of drives today space isn’t as much a concern anymore.

---

<div class="post-metadata">

**Author:** ![Moonbase59](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/moonbase59/32/112659_2.png) [@Moonbase59](https://forum.endeavouros.com/u/Moonbase59)\
**Post date:** [June 21, 2025, 3:34pm UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733/17 "2025-06-21T15:34:24Z")

</div>

But you surely wouldn’t convert bad ole MP3 or AAC to FLAC, right? ’Cause you can’t make bad things better 😉

Totally agree with the cost per gigabyte, so FLAC is really an option.

---

<div class="post-metadata">

**Author:** ![thefrog](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/thefrog/32/114250_2.png) [@thefrog](https://forum.endeavouros.com/u/thefrog)\
**Post date:** [June 21, 2025, 4:15pm UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733/18 "2025-06-21T16:15:29Z")

</div>

No when I said convert I meant that I replaced the old mp3’s with Newer Ripped Flac’s. 😉

---

<div class="post-metadata">

**Author:** ![emk2203](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/emk2203/32/42832_2.png) [@emk2203](https://forum.endeavouros.com/u/emk2203)\
**Post date:** [June 22, 2025, 8:49am UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733/19 "2025-06-22T08:49:45Z")

</div>

> [@drunkenvicar](#):
>
> interesting, is that because it is a smaller file?

That’s one reason, but not an important one.

Speaking from experience with these devices: If you cast a ‘video’ (often a still image w/ music track) to an audio receiver without the video capability, it can get rejected (“audio only”), your PC might want to show the video while the audio is transferred to the receiver, or a couple of similar annoying, unwanted options. Better to eliminate the potential for unwanted behaviour and stream audio only.

If you cast it to an (older) OLED TV, the TV shows the still image and you get burn-in over time. I have a couple of mood music videos with 8 hours length and basically a still image. Example: [https://www.youtube.com/watch?v=hIkvQHk\_sWM](https://www.youtube.com/watch?v=hIkvQHk_sWM) Not good. You also spend a lot of electricity for displaying the image, with audio only, the TV can shut down the video circuitry and use only a fraction of the power.

So, it’s better and also easy enough to strip the video if it’s just a filler.

---

<div class="post-metadata">

**Author:** ![emk2203](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/emk2203/32/42832_2.png) [@emk2203](https://forum.endeavouros.com/u/emk2203)\
**Post date:** [June 22, 2025, 9:20am UTC](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733/20 "2025-06-22T09:20:13Z")

</div>

One question to y’all who convert to mp3: Do you _really_ need it in this format?

Reason I am asking is that YouTube now stores audio either in opus or in m4a format. You can check this with `yt-dlp -F <URL>` and look in the acodec column. There’s no mp3 on the YT servers, except maybe for very old files.

So downloading with `yt-dlp -x --audio-format opus <URL>` gives you the audio as YouTube has it, 1:1 bitcopy without another conversion. **Any** conversion to mp3 makes the quality worse, doesn’t matter if it’s at 320k or 192k.

Which devices out there cannot deal with the opus format?

[Next page](https://forum.endeavouros.com/t/yt-dlp-command-for-those-who-like-it-tidy/72733.md?page=2)
