Closed rfgamaral closed 9 years ago
getffmpeg.sh may have installed ffmpeg into a different location. Your /usr/bin/ffprobe is actually avprobe
which is from lib-av (avconv), not ffmpeg.
if you rename /usr/bin/ffprobe to /usr/bin/avprobe and try running the script again, this may work.
or search to see if you have other versions of ffprobe (ffmpeg) in differnet locations, and set that location for
[General]
ffmpeg_path =
e.g if you installed ffmpeg at /usr/local/bin/ffmpeg
then you would set
ffmpeg_path = /usr/local/bin/
You are indeed correct:
amaral@ATLASBOX:/opt/nzbToMedia$ ll /usr/bin/ff*
lrwxrwxrwx 1 root root 6 Mar 15 17:03 /usr/bin/ffplay -> avplay
lrwxrwxrwx 1 root root 7 Mar 15 17:03 /usr/bin/ffprobe -> avprobe
lrwxrwxrwx 1 root root 8 Mar 15 17:03 /usr/bin/ffserver -> avserver
amaral@ATLASBOX:/opt/nzbToMedia$ ll /usr/local/bin/ff*
-rwxr-xr-x 1 root root 14151440 Jun 11 15:53 /usr/local/bin/ffmpeg
-rwxr-xr-x 1 root root 14088560 Jun 11 15:53 /usr/local/bin/ffprobe
-rwxr-xr-x 1 root root 12910512 Jun 11 15:53 /usr/local/bin/ffserver
Changing to ffmpeg_path = /usr/local/bin/
seemed to work just fine :)
A couple of questions before I close this:
libav-tools
were installed through the system package manager and ffmpeg
are no where to be found (checked with dpkg -l | grep <pkg>
), so can I assume that getffmpeg.sh
installed ffmpeg in /usr/local/bin
?ffprobe
command always tests the same file (/opt/nzbToMedia/tests/test.mp4
)? Shouldn't test the downloaded file? Or does this file gets overwritten somewhere in the process?Get ffmpeg.sh should have installed to /usr/local/bin. The /usr/bin version is from your package manager... For whatever reason they link ffmpeg to lib-av on some systems.
Each run, this script will teste test.mp4 to verify that ffprobe works correctly with the commands (to prevent a false "failed" report). If test.mp4 can be parsed, it will then parse the actual downloaded file.
Got it. Thank you :)
I used the
getffmpeg.sh
script to installffmpeg
,yasm
andx264
but I believe this is still not working for me. Here's the output from the log file:The script continues and completes successfully (calls CouchPotato renamer if that's relevant).
If I run that command manually and switch
-v quiet
to-v debug
, I get the following:If I take the
-print_format json
bit, I get this:Both of these give me an exit code of
1
withecho $?
(which is an error). But if I get the-show_error
option out, I get a much longer output:And an exit code of
0
, which is successful.So, what am I missing here? Is that
ffprobe
command with the correct parameters and I'm using an unsupportedffmpeg
version? I read somewhere it could be that but I don't understand how since I used thegetffmpeg.sh
script to install it.Thoughts?