audio - 警告 : passthru() has been disabled for security reasons in _audioconverter_scheduler_ffmpeg_helper

标签 audio drupal-7 ffmpeg audio-converter

我在我自己的运行 Aegir 和 Nginx 的 vps 上使用带有 ffmpeg 的 Drupal 7 中的 audioconverter 模块和 audiorecorderfield 模块。 audioconverter 模块已停止将 wav 文件转换为 mp3。这是错误;

Warning: passthru() has been disabled for security reasons in _audioconverter_scheduler_ffmpeg_helper() (line 358 of /mysite/drupal-7.16/sites/all/modules/audioconverter/audioconverter.module). 

在我的日志中;
MESSAGE: executing: /usr/bin/ffmpeg -i /mysite/drupal-7.16/sites/default/files/1354856044.wav /mysite/drupal-7.16/sites/default/files/1354856044.wav.mp3

MESSAGE: Audio conversion failed. FFMPEG reported the following output: 

SEVERITY: error

MESSAGE: converted file is an empty file.

我可以看到 wav 文件是由 audiorecorderfield 模块创建的,但 audioconverter 模块在转换时失败。

这是我的 ffmpeg 信息;
ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers
built on Jun 13 2012 14:01:54 with gcc 4.4.5
configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --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-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libfreetype --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
libavutil    50. 43. 0 / 50. 43. 0
libavcodec   52.123. 0 / 52.123. 0
libavformat  52.111. 0 / 52.111. 0
libavdevice  52.  5. 0 / 52.  5. 0
libavfilter   1. 80. 0 /  1. 80. 0
libswscale    0. 14. 1 /  0. 14. 1
libpostproc  51.  2. 0 / 51.  2. 0
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

php.ini 中的安全模式已关闭,所以我不知道为什么 audioconverter 无法正常工作。

最佳答案

通过从 php.ini 中的 disable_functions 中删除“passthru”来禁用 passthru 来解决

耶!

关于audio - 警告 : passthru() has been disabled for security reasons in _audioconverter_scheduler_ffmpeg_helper,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13756663/

相关文章:

ffmpeg 命令失败

http - 在一个容器中保存多个 .ts 文件,同时保留直接 http 访问

c# - 如何使用 c#asp.net 为 ffmpeg 制作加载屏幕

audio - 在处理中获取多个音频输入

configuration - 如何在 Drupal 7 中使用 Mandrill 发送群发邮件

database - Drupal 7 - db_insert 返回错误

Drupal 7 - View 中的更多链接未显示

audio - 使用不同的FFT方法时,音频中出现奇怪的嘶嘶声/伪影

windows - 如何动态选择音频设备?

audio - 如何将声卡的立体声输出配置为两个单独的输出并从不同的音频输入向每个输出发送音频?