Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to install on ubuntu #19

Closed
jayvgithub opened this issue Mar 2, 2022 · 17 comments
Closed

how to install on ubuntu #19

jayvgithub opened this issue Mar 2, 2022 · 17 comments

Comments

@jayvgithub
Copy link

jayvgithub commented Mar 2, 2022

how to install on ubuntu

@gamer191
Copy link

gamer191 commented Mar 8, 2022

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

@nihil-admirari
Copy link
Collaborator

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.

@pukkandan pukkandan pinned this issue Apr 9, 2022
@Goldmaster
Copy link

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
Copy link

@Goldmaster that comment is outdated. These builds now fix yt-dlp/yt-dlp#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 yt-dlp/yt-dlp#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
Copy link

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

@pukkandan pukkandan unpinned this issue Nov 20, 2022
@pukkandan pukkandan pinned this issue Nov 20, 2022
@Winston6079
Copy link

@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
Copy link
Collaborator

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
Copy link

sebma commented Jun 30, 2023

@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
Copy link
Collaborator

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

@Ray7788
Copy link

Ray7788 commented Feb 5, 2024

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
Copy link
Collaborator

--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
Copy link

Ray7788 commented Feb 6, 2024

--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
Copy link

ufkhf commented Sep 7, 2024

--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
Copy link

ufkhf commented Sep 7, 2024

Terminal

@seproDev
Copy link
Member

seproDev commented Sep 7, 2024

@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
Copy link

ufkhf commented Sep 7, 2024

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
Copy link
Member

seproDev commented Sep 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants