我花了最后 4 天试图实现这一目标,但没有运气,
我正在尝试使用 FFmpeg 检测流链接的音量或保存音频文件,我尝试了每一个命令行。
ffmpeg -f lavfi -i amovie=sample1.aac,volumedetect -f null -y test.txt
输出
There was a problem! Array (
[0] => FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
[1] => built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)
[2] => configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
[3] => libavutil 50.15. 1 / 50.15. 1
[4] => libavcodec 52.72. 2 / 52.72. 2
[5] => libavformat 52.64. 2 / 52.64. 2
[6] => libavdevice 52. 2. 0 / 52. 2. 0
[7] => libavfilter 1.19. 0 / 1.19. 0
[8] => libswscale 0.11. 0 / 0.11. 0
[9] => libpostproc 51. 2. 0 / 51. 2. 0
[10] => Unknown input format: 'lavf'
)
基本上我现在的问题是:
Unknown input format: 'lavf'
请提供任何帮助
我的 FFMpeg 版本是
[root@bea ~]# ffmpeg -formats | grep lavfi
--enable-avfilter --enable-avfilter-lavf --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable -libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable- postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab libavutil 50.15。1 / 50.15。1 libavcodec 52.72。2 / 52.72。2 库格式 52.64。2 / 52.64。2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.19. 0 / 1.19。0 libswscale 0.11。0 / 0.11。0 libpostproc 51. 2. 0 / 51. 2. 0 64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.19. 0 / 1.19。0 libswscale 0.11。0 / 0.11。0 libpostproc 51. 2. 0 / 51. 2. 0 64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.19. 0 / 1.19。0 libswscale 0.11。0 / 0.11。0 libpostproc 51. 2. 0 / 51. 2. 0
来自 PHP 信息
ffmpeg
ffmpeg-php 版本 0.6.0-svn ffmpeg-php 构建于 Sep 21 2013 15:38:20 ffmpeg-php gd support enabled ffmpeg libavcodec version Lavc52.72.2 ffmpeg libavformat version Lavf52.64.2 ffmpeg swscaler version SwS0.11.0
指令本地值主值 ffmpeg.allow_persistent 0 0 ffmpeg.show_warnings 0 0