yt-dlp / FFmpeg-Builds

FFmpeg Builds for yt-dlp
MIT License
707 stars 58 forks source link

how to install on ubuntu #19

Closed jayvgithub closed 2 years ago

jayvgithub commented 2 years ago

how to install on ubuntu

gamer191 commented 2 years ago

Are you using this with yt-dlp? If yes, which method did you use to install yt-dlp?

nihil-admirari commented 2 years ago

Just unpack the archive:

tar xf ffmpeg-master-latest-linux64-gpl.tar.xz -C /opt

Then either add /opt/ffmpeg-master-latest-linux64-gpl/bin to PATH, or use --ffmpeg-location command line argument.

P.S. Strictly specking, you no longer need this build on Linux. Patches here only enable long path support on Windows. Everything else was already merged into FFmpeg master.

Goldmaster commented 2 years ago

P.S. Strictly specking, you no longer need this build on Linux. Patches here only enable long path support on Windows. Everything else was already merged into FFmpeg master.

So are you saying just install normal ffmpeg with sudo apt install ffmpeg?

gamer191 commented 2 years ago

@Goldmaster that comment is outdated. These builds now fix https://github.com/yt-dlp/yt-dlp/issues/4127, which does affect Linux. Also, sudo apt install ffmpeg won't install FFmpeg master, it will install FFmpeg's latest* stable release, which doesn't yet fix https://github.com/yt-dlp/yt-dlp/issues/871. So you should use these builds if you care about either of those issues. But otherwise, sudo apt install ffmpeg is probably fine

*actually, it will probably be a few versions behind, depending on your Linux distro

Goldmaster commented 2 years ago

Ah ok, im on debian. So I guess it wait a bit till it worked it's way into the main release?

Winston6079 commented 1 year ago

@nihil-admirari Sorry if im making a basic question, but how do you add /opt/ffmpeg-master-latest-linux64-gpl/bin to PATH

nihil-admirari commented 1 year ago

Depends on your shell, see e.g.: https://unix.stackexchange.com/a/26059.

With Bash, adding to ~/.bash_profile and doing a re-login should work:

export PATH="/opt/ffmpeg-master-latest-linux64-gpl/bin:$PATH"
sebma commented 1 year ago

@nihil-admirari

Then either add /opt/ffmpeg-master-latest-linux64-gpl/bin to PATH, or use --ffmpeg-location command line argument.

Just to be a little more explicit, did you mean ? : yt-dlp --ffmpeg-location PATH

nihil-admirari commented 1 year ago
yt-dlp --ffmpeg-location /opt/ffmpeg-master-latest-linux64-gpl/bin
Ray7788 commented 9 months ago
yt-dlp --ffmpeg-location /opt/ffmpeg-master-latest-linux64-gpl/bin

Hi there, Unfortunately I tried but failed. I checked the latest README and it says "Now this command is no longer documented."

nihil-admirari commented 9 months ago

--ffmpeg-location is still documented in https://github.com/yt-dlp/yt-dlp. Have you typed

yt-dlp --ffmpeg-location /opt/ffmpeg-master-latest-linux64-gpl/bin OTHER_OPTIONS_SUCH_AS_VIDEO_ID

or just literally

yt-dlp --ffmpeg-location /opt/ffmpeg-master-latest-linux64-gpl/bin
Ray7788 commented 9 months ago

--ffmpeg-location is still documented in https://github.com/yt-dlp/yt-dlp. Have you typed

yt-dlp --ffmpeg-location /opt/ffmpeg-master-latest-linux64-gpl/bin OTHER_OPTIONS_SUCH_AS_VIDEO_ID

or just literally

yt-dlp --ffmpeg-location /opt/ffmpeg-master-latest-linux64-gpl/bin

Thank you for your reply! I tried the second one and it failed, now it works(but I didn't try the 1st one, that's weird), anyway thank you for your help!

ufkhf commented 2 months ago

--ffmpeg-location is still documented in https://github.com/yt-dlp/yt-dlp. Have you typed

yt-dlp --ffmpeg-location /opt/ffmpeg-master-latest-linux64-gpl/bin OTHER_OPTIONS_SUCH_AS_VIDEO_ID

or just literally

yt-dlp --ffmpeg-location /opt/ffmpeg-master-latest-linux64-gpl/bin

Hi, when i tried the 2 commands, it didnt work. I uploaded a screenshot of the terminal.

ufkhf commented 2 months ago

Terminal

seproDev commented 2 months ago

@ufkhf You don't literally need to write OTHER_OPTIONS_SUCH_AS_VIDEO_ID, but need to provide a video URL you want to download or some other command line options. So for example:

yt-dlp --ffmpeg-location /opt/ffmpeg-master-latest-linux64-gpl/bin "https://www.youtube.com/watch?v=2yJgwwDcgV8"

Also don't use sudo.

ufkhf commented 2 months ago

Is it possible to install it, so i dont have to do each time: yt-dlp --ffmpeg-location /opt/ffmpeg-master-latest-linux64-gpl/bin.

seproDev commented 2 months ago

Either add ffmpeg to your path, or add --ffmpeg-location /opt/ffmpeg-master-latest-linux64-gpl/bin to your yt-dlp config file. Though generally, unless you are on a really ancient OS, I would recommend just installing FFmpeg from your distro instead.