clinton-hall / nzbToMedia

Provides NZB and Torrent postprocessing To CouchPotatoServer, SickBeard/SickRage, HeadPhones, Mylar and Gamez
GNU General Public License v3.0
674 stars 176 forks source link

Can't get media file checking to work with ffmpeg #773

Closed rfgamaral closed 9 years ago

rfgamaral commented 9 years ago

I used the getffmpeg.sh script to install ffmpeg, yasm and x264 but I believe this is still not working for me. Here's the output from the log file:

2015-06-11 16:21:22 DEBUG   ::MAIN: calling command: /usr/bin/ffprobe -v quiet -print_format json -show_format -show_streams -show_error /opt/nzbToMedia/tests/test.mp4
2015-06-11 16:21:22 ERROR   ::TRANSCODER: Checking [/opt/nzbToMedia/tests/test.mp4] has failed
2015-06-11 16:21:22 INFO    ::TRANSCODER: DISABLED: ffprobe failed to analyse test file. Stopping corruption check.

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:

amaral@ATLASBOX:/opt/nzbToMedia$ /usr/bin/ffprobe -v debug -print_format json -show_format -show_streams -show_error /opt/nzbToMedia/tests/test.mp4
avprobe version 0.8.17-6:0.8.17-1, Copyright (c) 2007-2014 the Libav developers
  built on Mar 15 2015 17:00:31 with gcc 4.7.2
  configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.17-1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
  avutil      configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libfdk-aac --enable-libdc1394 --disable-a  swscale     configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libfdk-aac --enable-libdc1394 --disable-a  libavutil    51. 22. 3 / 51. 73.101
  libavcodec   53. 35. 0 / 53. 35. 0
  libavformat  53. 21. 1 / 53. 21. 1
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 15. 0 /  2. 15. 0
  libswscale    2.  1. 0 /  2.  1.101
  libpostproc  52.  0. 0 / 52.  0. 0
Unrecognized option 'print_format'
Failed to set value 'json' for option 'print_format'

If I take the -print_format json bit, I get this:

(...)
Unrecognized option 'show_error'
Failed to set value '/opt/nzbToMedia/tests/test.mp4' for option 'show_error'

Both of these give me an exit code of 1 with echo $? (which is an error). But if I get the -show_error option out, I get a much longer output:

amaral@ATLASBOX:/opt/nzbToMedia$ /usr/bin/ffprobe -v debug -show_format -show_streams /opt/nzbToMedia/tests/test.mp4
avprobe version 0.8.17-6:0.8.17-1, Copyright (c) 2007-2014 the Libav developers
  built on Mar 15 2015 17:00:31 with gcc 4.7.2
  configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.17-1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
  avutil      configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libfdk-aac --enable-libdc1394 --disable-a  swscale     configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libfdk-aac --enable-libdc1394 --disable-a  libavutil    51. 22. 3 / 51. 73.101
  libavcodec   53. 35. 0 / 53. 35. 0
  libavformat  53. 21. 1 / 53. 21. 1
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 15. 0 /  2. 15. 0
  libswscale    2.  1. 0 /  2.  1.101
  libpostproc  52.  0. 0 / 52.  0. 0
[NULL @ 0x1d248e0] Value 4707126720094797824.000000 for parameter 'probesize' out of range
[NULL @ 0x1d248e0] Value 4707126720094797824.000000 for parameter 'analyzeduration' out of range
[NULL @ 0x1d248e0] Value 4697254411347427328.000000 for parameter 'indexmem' out of range
[NULL @ 0x1d248e0] Value 4703785510416416768.000000 for parameter 'rtbufsize' out of range
[NULL @ 0x1d248e0] Value -4616189618054758400.000000 for parameter 'fpsprobesize' out of range
[NULL @ 0x1d248e0] Value 4607182418800017408.000000 for parameter 'f_err_detect' out of range
[NULL @ 0x1d248e0] Value 4607182418800017408.000000 for parameter 'err_detect' out of range
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1d248e0] Probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1d248e0] ISO: File Type Major Brand: isom
[NULL @ 0x1d26c20] Value 4686111960511545344.000000 for parameter 'b' out of range
[NULL @ 0x1d26c20] Value 4686111960511545344.000000 for parameter 'ab' out of range
[NULL @ 0x1d26c20] Value 4705844345939427328.000000 for parameter 'bt' out of range
[NULL @ 0x1d26c20] Value 4617315517961601024.000000 for parameter 'me_method' out of range
[NULL @ 0x1d26c20] Value 4622945017495814144.000000 for parameter 'g' out of range
[NULL @ 0x1d26c20] Value 4611686018427387904.000000 for parameter 'qmin' out of range
[NULL @ 0x1d26c20] Value 4629418941960159232.000000 for parameter 'qmax' out of range
[NULL @ 0x1d26c20] Value 4613937818241073152.000000 for parameter 'qdiff' out of range
[NULL @ 0x1d26c20] Value -4616189618054758400.000000 for parameter 'wpredp' out of range
[NULL @ 0x1d26c20] Value 4607182418800017408.000000 for parameter 'bug' out of range
[NULL @ 0x1d26c20] Value 4607182418800017408.000000 for parameter 'er' out of range
[NULL @ 0x1d26c20] Value 4607182418800017408.000000 for parameter 'err_detect' out of range
[NULL @ 0x1d26c20] Value 4613937818241073152.000000 for parameter 'ec' out of range
[NULL @ 0x1d26c20] Value 4620693217682128896.000000 for parameter 'ildctcmp' out of range
[NULL @ 0x1d26c20] Value 4620693217682128896.000000 for parameter 'subq' out of range
[NULL @ 0x1d26c20] Value 4696837138094751744.000000 for parameter 'ibias' out of range
[NULL @ 0x1d26c20] Value 4696837138094751744.000000 for parameter 'pbias' out of range
[NULL @ 0x1d26c20] Value 4642507528377204736.000000 for parameter 'lmin' out of range
[NULL @ 0x1d26c20] Value 4660262442142531584.000000 for parameter 'lmax' out of range
[NULL @ 0x1d26c20] Value 4696130710463840256.000000 for parameter 'flags2' out of range
[NULL @ 0x1d26c20] Value 4607182418800017408.000000 for parameter 'threads' out of range
[NULL @ 0x1d26c20] Value 4620693217682128896.000000 for parameter 'nssew' out of range
[NULL @ 0x1d26c20] Value -4586705114244317184.000000 for parameter 'profile' out of range
[NULL @ 0x1d26c20] Value -4586705114244317184.000000 for parameter 'level' out of range
[NULL @ 0x1d26c20] Value 4623507967449235456.000000 for parameter 'skipcmp' out of range
[NULL @ 0x1d26c20] Value 4642507528377204736.000000 for parameter 'mblmin' out of range
[NULL @ 0x1d26c20] Value 4660262442142531584.000000 for parameter 'mblmax' out of range
[NULL @ 0x1d26c20] Value 4643211215818981376.000000 for parameter 'mepc' out of range
[NULL @ 0x1d26c20] Value 4607182418800017408.000000 for parameter 'bidir_refine' out of range
[NULL @ 0x1d26c20] Value -4616189618054758400.000000 for parameter 'cqp' out of range
[NULL @ 0x1d26c20] Value 4627730092099895296.000000 for parameter 'keyint_min' out of range
[NULL @ 0x1d26c20] Value 4607182418800017408.000000 for parameter 'refs' out of range
[NULL @ 0x1d26c20] Value -4616189618054758400.000000 for parameter 'directpred' out of range
[NULL @ 0x1d26c20] Value 4618441417868443648.000000 for parameter 'sc_factor' out of range
[NULL @ 0x1d26c20] Value 4643211215818981376.000000 for parameter 'mv0_threshold' out of range
[NULL @ 0x1d26c20] Value 4630826316843712512.000000 for parameter 'b_sensitivity' out of range
[NULL @ 0x1d26c20] Value -4616189618054758400.000000 for parameter 'compression_level' out of range
[NULL @ 0x1d26c20] Value -4616189618054758400.000000 for parameter 'min_prediction_order' out of range
[NULL @ 0x1d26c20] Value -4616189618054758400.000000 for parameter 'max_prediction_order' out of range
[NULL @ 0x1d26c20] Value -4616189618054758400.000000 for parameter 'prediction_order_method' out of range
[NULL @ 0x1d26c20] Value -4616189618054758400.000000 for parameter 'min_partition_order' out of range
[NULL @ 0x1d26c20] Value -4616189618054758400.000000 for parameter 'max_partition_order' out of range
[NULL @ 0x1d26c20] Value 4607182418800017408.000000 for parameter 'ticks_per_frame' out of range
[NULL @ 0x1d26c20] Value 4611686018427387904.000000 for parameter 'color_primaries' out of range
[NULL @ 0x1d26c20] Value 4611686018427387904.000000 for parameter 'color_trc' out of range
[NULL @ 0x1d26c20] Value 4611686018427387904.000000 for parameter 'colorspace' out of range
[NULL @ 0x1d26c20] Value -4616189618054758400.000000 for parameter 'aq_mode' out of range
[NULL @ 0x1d26c20] Value -4616189618054758400.000000 for parameter 'rc_lookahead' out of range
[NULL @ 0x1d26c20] Value -4616189618054758400.000000 for parameter 'lpc_type' out of range
[NULL @ 0x1d26c20] Value -4616189618054758400.000000 for parameter 'lpc_passes' out of range
[NULL @ 0x1d26c20] Value 4613937818241073152.000000 for parameter 'thread_type' out of range
[NULL @ 0x1d26c20] Value -4616189618054758400.000000 for parameter 'request_sample_fmt' out of range
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1d248e0] multiple edit list entries, a/v desync might occur, patch welcome
[NULL @ 0x1d2a0a0] Value 4686111960511545344.000000 for parameter 'b' out of range
[NULL @ 0x1d2a0a0] Value 4686111960511545344.000000 for parameter 'ab' out of range
[NULL @ 0x1d2a0a0] Value 4705844345939427328.000000 for parameter 'bt' out of range
[NULL @ 0x1d2a0a0] Value 4617315517961601024.000000 for parameter 'me_method' out of range
[NULL @ 0x1d2a0a0] Value 4622945017495814144.000000 for parameter 'g' out of range
[NULL @ 0x1d2a0a0] Value 4611686018427387904.000000 for parameter 'qmin' out of range
[NULL @ 0x1d2a0a0] Value 4629418941960159232.000000 for parameter 'qmax' out of range
[NULL @ 0x1d2a0a0] Value 4613937818241073152.000000 for parameter 'qdiff' out of range
[NULL @ 0x1d2a0a0] Value -4616189618054758400.000000 for parameter 'wpredp' out of range
[NULL @ 0x1d2a0a0] Value 4607182418800017408.000000 for parameter 'bug' out of range
[NULL @ 0x1d2a0a0] Value 4607182418800017408.000000 for parameter 'er' out of range
[NULL @ 0x1d2a0a0] Value 4607182418800017408.000000 for parameter 'err_detect' out of range
[NULL @ 0x1d2a0a0] Value 4613937818241073152.000000 for parameter 'ec' out of range
[NULL @ 0x1d2a0a0] Value 4620693217682128896.000000 for parameter 'ildctcmp' out of range
[NULL @ 0x1d2a0a0] Value 4620693217682128896.000000 for parameter 'subq' out of range
[NULL @ 0x1d2a0a0] Value 4696837138094751744.000000 for parameter 'ibias' out of range
[NULL @ 0x1d2a0a0] Value 4696837138094751744.000000 for parameter 'pbias' out of range
[NULL @ 0x1d2a0a0] Value 4642507528377204736.000000 for parameter 'lmin' out of range
[NULL @ 0x1d2a0a0] Value 4660262442142531584.000000 for parameter 'lmax' out of range
[NULL @ 0x1d2a0a0] Value 4696130710463840256.000000 for parameter 'flags2' out of range
[NULL @ 0x1d2a0a0] Value 4607182418800017408.000000 for parameter 'threads' out of range
[NULL @ 0x1d2a0a0] Value 4620693217682128896.000000 for parameter 'nssew' out of range
[NULL @ 0x1d2a0a0] Value -4586705114244317184.000000 for parameter 'profile' out of range
[NULL @ 0x1d2a0a0] Value -4586705114244317184.000000 for parameter 'level' out of range
[NULL @ 0x1d2a0a0] Value 4623507967449235456.000000 for parameter 'skipcmp' out of range
[NULL @ 0x1d2a0a0] Value 4642507528377204736.000000 for parameter 'mblmin' out of range
[NULL @ 0x1d2a0a0] Value 4660262442142531584.000000 for parameter 'mblmax' out of range
[NULL @ 0x1d2a0a0] Value 4643211215818981376.000000 for parameter 'mepc' out of range
[NULL @ 0x1d2a0a0] Value 4607182418800017408.000000 for parameter 'bidir_refine' out of range
[NULL @ 0x1d2a0a0] Value -4616189618054758400.000000 for parameter 'cqp' out of range
[NULL @ 0x1d2a0a0] Value 4627730092099895296.000000 for parameter 'keyint_min' out of range
[NULL @ 0x1d2a0a0] Value 4607182418800017408.000000 for parameter 'refs' out of range
[NULL @ 0x1d2a0a0] Value -4616189618054758400.000000 for parameter 'directpred' out of range
[NULL @ 0x1d2a0a0] Value 4618441417868443648.000000 for parameter 'sc_factor' out of range
[NULL @ 0x1d2a0a0] Value 4643211215818981376.000000 for parameter 'mv0_threshold' out of range
[NULL @ 0x1d2a0a0] Value 4630826316843712512.000000 for parameter 'b_sensitivity' out of range
[NULL @ 0x1d2a0a0] Value -4616189618054758400.000000 for parameter 'compression_level' out of range
[NULL @ 0x1d2a0a0] Value -4616189618054758400.000000 for parameter 'min_prediction_order' out of range
[NULL @ 0x1d2a0a0] Value -4616189618054758400.000000 for parameter 'max_prediction_order' out of range
[NULL @ 0x1d2a0a0] Value -4616189618054758400.000000 for parameter 'prediction_order_method' out of range
[NULL @ 0x1d2a0a0] Value -4616189618054758400.000000 for parameter 'min_partition_order' out of range
[NULL @ 0x1d2a0a0] Value -4616189618054758400.000000 for parameter 'max_partition_order' out of range
[NULL @ 0x1d2a0a0] Value 4607182418800017408.000000 for parameter 'ticks_per_frame' out of range
[NULL @ 0x1d2a0a0] Value 4611686018427387904.000000 for parameter 'color_primaries' out of range
[NULL @ 0x1d2a0a0] Value 4611686018427387904.000000 for parameter 'color_trc' out of range
[NULL @ 0x1d2a0a0] Value 4611686018427387904.000000 for parameter 'colorspace' out of range
[NULL @ 0x1d2a0a0] Value -4616189618054758400.000000 for parameter 'aq_mode' out of range
[NULL @ 0x1d2a0a0] Value -4616189618054758400.000000 for parameter 'rc_lookahead' out of range
[NULL @ 0x1d2a0a0] Value -4616189618054758400.000000 for parameter 'lpc_type' out of range
[NULL @ 0x1d2a0a0] Value -4616189618054758400.000000 for parameter 'lpc_passes' out of range
[NULL @ 0x1d2a0a0] Value 4613937818241073152.000000 for parameter 'thread_type' out of range
[NULL @ 0x1d2a0a0] Value -4616189618054758400.000000 for parameter 'request_sample_fmt' out of range
[h264 @ 0x1d26c20] err{or,}_recognition separate: 0; 0
[h264 @ 0x1d26c20] err{or,}_recognition combined: 0; 0
[h264 @ 0x1d26c20] Unsupported bit depth: 0
[aac @ 0x1d2a0a0] err{or,}_recognition separate: 0; 0
[aac @ 0x1d2a0a0] err{or,}_recognition combined: 0; 0
[aac @ 0x1d2a0a0] Unsupported bit depth: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1d248e0] Probe buffer size limit 0 reached
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/opt/nzbToMedia/tests/test.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf55.37.102
  Duration: 00:00:05.01, bitrate: 187 kb/s
    Stream #0.0(eng), 0, 1/11988: Video: h264, 1152x480, 1/11988, 221 kb/s, 23.98 fps, 23.98 tbr, 11988 tbn, 11988 tbc
    Stream #0.1(eng), 0, 1/44100: Audio: aac, 44100 Hz, stereo, s16, 3 kb/s
[h264 @ 0x1d26c20] err{or,}_recognition separate: 0; 0
[h264 @ 0x1d26c20] err{or,}_recognition combined: 0; 0
[aac @ 0x1d2a0a0] err{or,}_recognition separate: 0; 0
[aac @ 0x1d2a0a0] err{or,}_recognition combined: 0; 0
[aac @ 0x1d2a0a0] Unsupported bit depth: 0
[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
codec_type=video
codec_time_base=1/11988
codec_tag_string=avc1
codec_tag=0x31637661
width=1152
height=480
has_b_frames=1
pix_fmt=unknown
level=0
r_frame_rate=2997/125
avg_frame_rate=2997/125
time_base=1/11988
start_time=N/A
duration=5.015516
nb_frames=96
TAG:language=eng
[/STREAM]
[STREAM]
index=1
codec_name=aac
codec_long_name=Advanced Audio Coding
codec_type=audio
codec_time_base=1/44100
codec_tag_string=mp4a
codec_tag=0x6134706d
sample_rate=44100.000000
channels=2
bits_per_sample=0
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/44100
start_time=N/A
duration=5.015510
nb_frames=216
TAG:language=eng
[/STREAM]
[FORMAT]
filename=/opt/nzbToMedia/tests/test.mp4
nb_streams=2
format_name=mov,mp4,m4a,3gp,3g2,mj2
format_long_name=QuickTime/MPEG-4/Motion JPEG 2000 format
start_time=N/A
duration=5.015516
size=117308.000000
bit_rate=187112.000000
TAG:major_brand=isom
TAG:minor_version=512
TAG:compatible_brands=isomiso2avc1mp41
TAG:encoder=Lavf55.37.102
[/FORMAT]

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 unsupported ffmpeg version? I read somewhere it could be that but I don't understand how since I used the getffmpeg.sh script to install it.

Thoughts?

clinton-hall commented 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.

clinton-hall commented 9 years ago

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/

rfgamaral commented 9 years ago

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:

  1. 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?
  2. Why does the 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?
clinton-hall commented 9 years ago

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.

rfgamaral commented 9 years ago

Got it. Thank you :)