-vf无法识别与php exec()函数 [英] -vf unrecognized with php exec() function

查看:170
本文介绍了-vf无法识别与php exec()函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用php创建一个具有淡入淡出效果的视频。但是exec()函数提供以下输出:

I am using php to create a video with fade effects. But exec() function gives following output:

array(19){
[0] =>
string(67)FFmpeg版本0.6 .1,版权所有(c)2000-2010 FFmpeg开发人员

array(19) { [0]=> string(67) "FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers"

[1] =>
string(74)建于2010年12月4日15: 35:31 with gcc 4.1.2 20080704(Red Hat 4.1.2-48)

[1]=> string(74) " built on Dec 4 2010 15:35:31 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)"

[2] =>
string(649)配置: --prefix = / usr --libdir = / usr / lib64 --shlibdir = / usr / lib64 --mandir = / usr / share / man --incdir = / usr / include --disable-avisynth --extra-cflags =' - O2 -g -ipe -Wall -Wp,-D_FORTIFY_SOURCE = 2 -fexceptions -fstack-protector --param = ssp-buffer-size = 4 -m64 -mtune = generic -fPIC'--enable-avfilter - enable-avfilter-lavf --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb - -enable-libx264 --enable-gpl --enable-nonfree --enable-postproc-enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab

[2]=> string(649) " 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-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab"

[3] =>
string(35)libavutil 50.15。 1 / 50.15。 1

[3]=> string(35) " libavutil 50.15. 1 / 50.15. 1"

[4] =>
string(35)libavcodec 52.72。 2 / 52.72。 2

[4]=> string(35) " libavcodec 52.72. 2 / 52.72. 2"

[5] =>
string(35)libavformat 52.64。 2 / 52.64。 2

[5]=> string(35) " libavformat 52.64. 2 / 52.64. 2"

[6] =>
string(35)libavdevice 52. 2. 0 / 52. 2. 0

[6]=> string(35) " libavdevice 52. 2. 0 / 52. 2. 0"

[7] =>
string(35)libavfilter 1.19。 0 / 1.19。 0

[7]=> string(35) " libavfilter 1.19. 0 / 1.19. 0"

[8] =>
string(35)libswscale 0.11。 0 / 0.11。 0

[8]=> string(35) " libswscale 0.11. 0 / 0.11. 0"

[9] =>
string(35)libpostproc 51. 2. 0 / 51. 2. 0

[9]=> string(35) " libpostproc 51. 2. 0 / 51. 2. 0"

[10] =>
string(122)输入#0,mov,mp4,m4a,3gp,3g2,mj2,从'/usr/slideshow/frame1.mp4' :

[10]=> string(122) "Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/usr/slideshow/frame1.mp4':"

[11] =>
string(11)元数据:

[11]=> string(11) " Metadata:"

[ 12] =>
string(26)major_brand:isom

[12]=> string(26) " major_brand : isom"

[13] =>
string(25)minor_version:512

[13]=> string(25) " minor_version : 512"

[14] =>
string(35)compatible_brands:isomiso2mp41

[14]=> string(35) " compatible_brands: isomiso2mp41"

[15 ] =>
string(33)编码器:Lavf52.64.2

[15]=> string(33) " encoder : Lavf52.64.2"

[16] =>
string(58)持续时间:00 :00:05.00,start:0.000000,bitrate:31 kb / s

[16]=> string(58) " Duration: 00:00:05.00, start: 0.000000, bitrate: 31 kb/s"

[17] =>
string(107)Stream#0.0 ):视频:mpeg4,yuv420p,320x240 [PAR 1:1 DAR 4:3],29
kb / s,1 fps,1 tbr,1 tbn,1 tbc

[17]=> string(107) " Stream #0.0(und): Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 29 kb/s, 1 fps, 1 tbr, 1 tbn, 1 tbc"

[18] =>
string(24)无法识别的选项'vf'
}

[18]=> string(24) "Unrecognized option 'vf'" }

无法识别的选项'vf',运行时工作正常直接在server.My命令是:ffmpeg -i /usr/slideshow/frame1.mp4 -vf'fade = out:0:5'/usr/slideshow/fade1.mp4\"

Why it is giving unrecognized option 'vf' while it works fine when run directly on server.My command is : "ffmpeg -i /usr/slideshow/frame1.mp4 -vf 'fade=out:0:5' /usr/slideshow/fade1.mp4"

我用exec()函数执行它。为什么错误来了,我应该用什么来应用过滤器到我的输入视频。我正在使用CentOS服务器。

I am executing it with exec() function. Why the error is coming and what should i use to apply filter to my input video. I am working on CentOS server.

请指导我...

推荐答案

我发现答案我刚刚尝试ffmpeg目录的完整路径,其中安装了ffmpeg,并且它正常工作...

I found the answer i just tried the full path of ffmpeg directory where ffmpeg was installed and it worked...

这篇关于-vf无法识别与php exec()函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆