LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-11-2022, 11:21 PM   #1
sofasurfer
Member
 
Registered: Oct 2003
Posts: 253

Rep: Reputation: 20
ERROR: Postprocessing: ffprobe and ffmpeg not found


I download videos using yt-dlp. Here is my most recent attempt...

Code:
 $ cd Downloads; yt-dlp -x --audio-format mp3 https://youtu.be/MujE5tObk50
[youtube] MujE5tObk50: Downloading webpage
[youtube] MujE5tObk50: Downloading android player API JSON
[info] MujE5tObk50: Downloading 1 format(s): 251
[download] How the Pro's sharpen a chainsaw [MujE5tObk50].webm has already been downloaded
[download] 100% of 12.82MiB
ERROR: Postprocessing: ffprobe and ffmpeg not found. Please install or provide the path using --ffmpeg-location
I started getting the error at the end of the process after I did a system reinstall...
Code:
ERROR: Postprocessing: ffprobe and ffmpeg not found. Please install or provide the path using --ffmpeg-location
I installed and upgraded ffmpeg and this made no difference. What is happening?
 
Old 05-12-2022, 12:33 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by sofasurfer View Post
What is happening?
Doesn't it say so in the message?
Quote:
provide the path using --ffmpeg-location
 
Old 05-12-2022, 02:28 AM   #3
sofasurfer
Member
 
Registered: Oct 2003
Posts: 253

Original Poster
Rep: Reputation: 20
Yes, that is what it says but I don't know what I am supposed to do with that info. I am using the GUI not the command line. I never had to do this before so where is this path to be input and why was it never needed before? I don't know what the path is or how to enter it.
 
Old 05-12-2022, 01:33 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by sofasurfer View Post
Yes, that is what it says but I don't know what I am supposed to do with that info. I am using the GUI not the command line. I never had to do this before so where is this path to be input and why was it never needed before? I don't know what the path is or how to enter it.
yt-dlp is a command line tool...
 
Old 05-12-2022, 08:08 PM   #5
sofasurfer
Member
 
Registered: Oct 2003
Posts: 253

Original Poster
Rep: Reputation: 20
O cwap! I don't know what I was thinking. Well, it was 2:00 in the morning. I still maintain that I never had this problem before the reinstall.
Ok, I'm off to explore my problem.
 
Old 05-12-2022, 09:28 PM   #6
sofasurfer
Member
 
Registered: Oct 2003
Posts: 253

Original Poster
Rep: Reputation: 20
Ok. I had to add
Code:
 --ffmpeg-location /usr/bin
to the command line.
If yt-dlp is required to know the path to its own binary file it seems like it should be built in. Is this something I can edit in a config file (where?) or is a yt-dpl reinstall in order?
 
Old 05-13-2022, 12:39 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by sofasurfer View Post
Is this something I can edit in a config file (where?) or is a yt-dpl reinstall in order?
Depends on how you installed it.
Try 'man yt-dlp' or 'yt-dlp --help'.

yt-dlp should be updated constantly.
 
Old 05-13-2022, 01:48 PM   #8
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,330
Blog Entries: 6

Rep: Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916
Quote:
yt-dlp -x --audio-format mp3 https://youtu.be/MujE5tObk50
What do you get from
Code:
which ffmpeg
which ffplay
Can you start ffmpeg at all?
Code:
ffmpeg --help
Let me choose a smaller video at random for a test. 2 min.
Code:
yt-dlp -x --audio-format mp3 https://m.youtube.com/watch?v=J2iBX_wGbkU -o myfile.mp3

file myfile.mp3
file.mp3: Audio file with ID3 version 2.4.0, contains: MPEG ADTS, layer III, v1, 64 kbps, 48 kHz, Stereo
Yup, that works. Looks like ffmpeg is not in your $PATH for executables.

You could also use ffmpeg by itself. That is what it is for
Code:
yt-dlp -f 140 https://youtu.be/MujE5tObk50 -o file1.m4a

ffmpeg -vn -c:a libmp3lame -b:a 128k file1.mp3
Or look at:
Code:
yt-dlp -F https://youtu.be/MujE5tObk50
See:
man yt-dlp
man ffmpeg
man ffplay
echo $PATH
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using ffprobe to sort videos Entropy1024 Linux - Newbie 2 04-13-2018 09:50 AM
Why do some tools (e.g. ffprobe) split their output between sdtout and stderr ? markus-n Linux - General 6 01-07-2018 04:21 PM
Gamma adjustment: during scanning or as postprocessing? jlinkels Linux - General 3 05-13-2014 04:43 PM
Sound applications for postprocessing recordings MasterOfTheWind Linux - Software 2 03-06-2008 11:10 AM
Postprocessing in xine cld Linux - Software 0 09-19-2004 06:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration