I am getting the following message when I try to save the transcoder settings:
Notice: Array to string conversion in t() (line 1500 of /storage/server_syms/videos-core/includes/bootstrap.inc).

Watchdog gives the following as well:
Notice: Undefined index: configuration in PHPVideoToolkit->getFFmpegInfo() (line 579 of /storage/server_syms/videos-sites/all/modules/video/libraries/phpvideotoolkit/phpvideotoolkit.php5.php).
Notice: Undefined index: in PHPVideoToolkit->getFFmpegInfo() (line 579 of /storage/server_syms/videos-sites/all/modules/video/libraries/phpvideotoolkit/phpvideotoolkit.php5.php).
Notice: Undefined index: formats in PHPVideoToolkit->getFFmpegInfo() (line 594 of /storage/server_syms/videos-sites/all/modules/video/libraries/phpvideotoolkit/phpvideotoolkit.php5.php).
Notice: Undefined index: in PHPVideoToolkit->getFFmpegInfo() (line 594 of /storage/server_syms/videos-sites/all/modules/video/libraries/phpvideotoolkit/phpvideotoolkit.php5.php).
Notice: Undefined index: codecs in PHPVideoToolkit->getFFmpegInfo() (line 609 of /storage/server_syms/videos-sites/all/modules/video/libraries/phpvideotoolkit/phpvideotoolkit.php5.php).
Notice: Undefined index: in PHPVideoToolkit->getFFmpegInfo() (line 609 of /storage/server_syms/videos-sites/all/modules/video/libraries/phpvideotoolkit/phpvideotoolkit.php5.php).

Comments

hypertext200’s picture

Category: bug » support

did you install Ffmpeg?

pumpkinkid’s picture

Category: support » bug

Yes I did... I also get the following under the bootstrap error:

    FFmpeg version Array found on your system.
    The configuration options have been saved.

This seems to be more an issue with the string keeping the setting itself...

hypertext200’s picture

What is the version of FFmpeg you installed?. May be there are some incompatibility of versions I installed and tested on 0.6.1

pumpkinkid’s picture

This is what I get when I run ffmpeg version:

ffmpeg version N-32814-gcab2860, Copyright (c) 2000-2011 the FFmpeg developers
  built on Sep 23 2011 10:20:03 with gcc 4.4.3
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab --enable-libmp3lame --enable-libvpx
  libavutil    51. 17. 0 / 51. 17. 0
  libavcodec   53. 17. 0 / 53. 17. 0
  libavformat  53. 13. 0 / 53. 13. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 43. 3 /  2. 43. 3
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
ffmpeg N-32814-gcab2860
libavutil    51. 17. 0 / 51. 17. 0
libavcodec   53. 17. 0 / 53. 17. 0
libavformat  53. 13. 0 / 53. 13. 0
libavdevice  53.  4. 0 / 53.  4. 0
libavfilter   2. 43. 3 /  2. 43. 3
libswscale    2.  1. 0 /  2.  1. 0
libpostproc  51.  2. 0 / 51.  2. 0
hypertext200’s picture

I believe this could be a version issue. I will install newer version of Ffmpeg and see how it works.

pumpkinkid’s picture

Thank you, let me know how it goes or if I can provide you some more feedback.

hypertext200’s picture

Status: Active » Needs review
StatusFileSize
new8.85 KB

Patch attached.

We are producing a series of screen-casts for all the video module users so please donate $10 or more to our donation campaign to make it happen.

hypertext200’s picture

hypertext200’s picture

pumpkinkid’s picture

StatusFileSize
new112.42 KB

Well that patch did fix the issue with the bootstrap, but now I have these errors:

hypertext200’s picture

Status: Needs review » Closed (works as designed)

You have to configure video presets.

pumpkinkid’s picture

Status: Closed (works as designed) » Needs review

The preset is already configured... it is saying:
Error set options PHPVideoToolkit Error: Value "libx264" set from $toolkit->setVideoCodec, can not be used to encode the output as the version of FFmpeg that you are using does not have the capability to encode video with this codec.

I have tested ffmpeg and know it works as I am using it on a Drupal 6 site on the same system...

hypertext200’s picture

Status: Needs review » Closed (works as designed)

This is just only the way it should configure. Work as designed.

jh3’s picture

I'm receiving an error similar to the issue you closed as a duplicate (http://drupal.org/node/1227766): PHPVideoToolkit Error: Execute error. Output for file "/path/to/my/video.wmv" was not found. Please check server write permissions and/or available codecs compiled with FFmpeg. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().

I have Video convert on node submit enabled. I also have the module set to generate three thumbnails.

The preset I have configured is using FLV format as the video output extension and Flash Video (FLV) / Sorenson Spark / Sorenson H.263 as the video codec.

Videos seem to upload fine. Sometimes there are only two thumbnails shown when there should be three. I think it actually generates all three, though, because I see them on the server.

When I go to save the node I get the error. I am pretty sure it is not a permission issue because Drupal is creating directories inside of converted/.

Here is the version information from ffmpeg:


FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers
  built on Dec  4 2010 15:37:20 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
  configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --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 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' --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
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   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
ffmpeg: missing argument for option '-version'

I appreciate any help you may give.

davidam’s picture

Component: Video Trasncoding » Video Core

This bug continues in 7.x-2.4 and 7.x-2.x-dev with debian stable and ffmpeg 0.7.11, but not with ffmpeg 0.5.6-3 (there are another problems with this version).

roman-drupal’s picture

I too can confirm the same problem as ejh3 (#14) with version 7.x.2.4, however my shared hosted server is running ffmpeg 0.6.1. I’ve checked my video presets which are all configured fine and as ejh3 mentioned the video uploads fine with thumbnails generated yet the transcoder still fails on save.

In my case however, within the logs and error message I did notice something wrong and the stipulated path.

The error message reads:
PHPVideoToolkit Error: Execute error. Output for file "/home/domains/example.com/www_root/sites/default/files/private/videos/video_01_0_1.mp4" was not found. Please check server write permissions and/or available codecs compiled with FFmpeg. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().

Now, the prefix section of this absolute path (/home/domains/…) is actually incorrect, and I have verified this with the hosting company. The correct path is “/var/www/domains/example.com/www_root/…”

Could this possibly be the issue, hence “Output for file was not found”?
How does this path get generated or derived?

Thanking all of you in advanced for your help.

poorva’s picture

Me also confirming the same issue with ffmpeg-php version 0.6.0 at my server.

Error message in watchdog appears:
Error set options PHPVideoToolkit Error: Value "ffv1" set from $toolkit->setVideoCodec, can not be used to encode the output as the version of FFmpeg that you are using does not have the capability to encode video with this codec.

Please help if anybody has solution as I have spent 2=3 days to resolve it.

Thanks in advance.