【发布时间】:2011-03-17 09:38:08
【问题描述】:
当我跑步时
exec("ffmpeg -i $flv -y -f mjpeg -ss 00:00:05 -s 120x90 -vframes 1 -an thumb.jpg",$error);
$error 返回空值 但是当我使用 cron 作业运行这个命令时 这一个向我发送一封通知电子邮件,其中包含诸如
之类的信息FFmpeg 版本 0.5.2,版权所有 (c) 2000-2009 Fabrice Bellard 等人。 配置: --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-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora - -enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab libavutil 49.15。 0 / 49.15。 0 libavcodec 52.20。 1 / 52.20。 1 libav 格式 52.31。 0 / 52.31。 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 建于 2010 年 6 月 13 日 23:44:18,gcc: 4.1.2 20080704 (Red Hat 4.1.2-48)
我需要能够在 php 中获取这些错误,这样我才能知道拇指是否已创建
谢谢。
【问题讨论】:
-
如何在ffmpeg中进行错误处理?
标签: ffmpeg