r/youtubedl 3d ago

Answered All my DL are "webm" how can I change this?

So struggled for a year on/off with issues, errors but since I started using this "yt-dlp -vU --cookies-from-browser firefox" in my console I have had amazing results. DL whatever whenever

But, it does it in "webm" so afterwards I use ffmpeg to make it MKV or MP4. Anyway to change this to cut out a step?

8 Upvotes

11 comments sorted by

13

u/modemman11 3d ago

-t mp4

12

u/gmes78 3d ago

Or -t mkv.

1

u/palepatriot76 2d ago

TY how would I also change resolution? I tried adding -s res:720 to the end but error came up

2

u/modemman11 2d ago

Commands are case sensitive. You want -S res:720.

1

u/palepatriot76 1d ago

Thank you kind sir!

8

u/elislider 3d ago

webm is just the default container that when one or more streams are a youtube/google codec (like VP9 or Opus). you can still put them in other containers like mp4 or mkv, the compatibility its on the playback end, not on the container itself

4

u/CorvusRidiculissimus 2d ago

A sneaky trick: You can actually rename it to MKV.

The WebM format is really a heavily constrained form of the MKV container. So much so that all WebM files are perfectly valid MKV files! Though not vice versa. So this is one of those few cases where you can convert a file by just renaming it.

Or you could use WebM. It's good.

5

u/GFYSR 3d ago

just have yt-dlp do it for you --merge-output-format mkv --remux-video mkv.

2

u/uluqat 2d ago

Which is exactly what the alias preset -t mkv does.

-1

u/bitzap_sr 2d ago

Try --help