I have been fumbling through setting this up and have run into issues (Tried using the D6 documentation, but it's very different than the D7 version. Also tried perusing the issue queue for some insight). Here are the steps I have taken:

1. Installed FFmpeg that includes:
configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable- libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac -- enable-libfaad --enable-libmp3lame --enable-libtheora -- enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra- ldflags=/usr/local/cpffmpeg/lib --enable-decoder=ac3 --enable-decoder=asv1 --enable-decoder=asv2 --enable-decoder=flac -- enable-decoder=wmv1 --enable-decoder=wmv2 --enable-decoder=wmv3 --enable-decoder=mpeg1video --enable- decoder=mpeg2video --enable-decoder=flv --enable-decoder=fraps --enable- decoder=h263 --enable-decoder=h264 -- enable-decoder=libgsm --enable-decoder=mjpeg --enable-decoder=mpeg4 --enable-decoder=mpeg4aac --enable- decoder=mpegvideo --enable-decoder=mpeg4aac --enable-decoder=msmpeg4v1 --enable-decoder=msmpeg4v2 --enable- decoder=msmpeg4v3 --enable-decoder=pcm_alaw --enable-decoder=pcm_mulaw --enable-encoder=ac3 --enable- encoder=asv1 --enable-encoder=asv2 --enable-encoder=flac --enable-encoder=h263 --enable-encoder=flashsv --enable- encoder=flv --enable-encoder=libgsm --enable-encoder=mjpeg --enable-encoder=msmpeg4v3 --enable-encoder=pcm_alaw --enable-encoder=pcm_mulaw --enable-encoder=mpeg1video --enable-encoder=mpeg2video --enable-encoder=mpeg4 -- enable-encoder=msmpeg4v1 --enable-encoder=msmpeg4v2 --enable-encoder=rv10 --enable-encoder=rv20 --enable- e encoder=vorbis --enable-encoder=wmav1 --enable-encoder=wmav2 --enable-encoder=wmv1 --enable-encoder=wmv2 -- disable- demuxer=v4l --disable-demuxer=v4l2 --enable-version3

2. Using all of the Video module default settings out of the box, except I have change the Video transcoder setting to FFmpeg.

3. Path to FFmpeg executable is correct.

4. Setup a video content type with a video upload field, Enable auto video conversion.

5. Now I am seeing a few errors (Although thumbnails were generated):

Notice: Undefined index: video_extension in Transcoder->executeConvertion() (line 103 of /sites/all/modules/video/includes/Transcoder.inc).
Something went wrong with your video transcoding. Please check your recent log entries for further debugging.

In watchdog I see:

PHPVideoToolkit Error: Execute error. Output for file "/sites/default/files/videos/original/test.mov" 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().

Notice: Undefined index: video_extension in Transcoder->executeConvertion() (line 103 of /sites/all/modules/video/includes/Transcoder.inc).

Notice: Undefined offset: 3 in PHPVideoToolkit->getFFmpegInfo() (line 609 of /sites/all/modules/video/libraries/phpvideotoolkit/phpvideotoolkit.php5.php).

If you have any thoughts I where to start debuggging this that would be great. Once I have it going, I would love to contribute back some documentation on installation and setup for the D7 version (including screenshots).

Comments

pixelsweatshop’s picture

Issue summary: View changes

add info

pixelsweatshop’s picture

Issue summary: View changes

more info

hypertext200’s picture

Go to your preset settings and change settings of presets match with your FFmpeg installation.

hypertext200’s picture

Status: Active » Fixed

You can look at http://drupal.org/project/video_presets for FFmpeg support version.

pixelsweatshop’s picture

Status: Fixed » Active

Thank you so much for the prompt response.

When adding a preset, the

Video output extension, Video codec and Audio codec are all blank and have no options to choose from in their dropdowns.

hypertext200’s picture

That means you do not have any codec installed, basically FFmpeg installation was not success

idflood’s picture

I'm having similar issue on my local MAMP setup (osx). On ubuntu 10.04 it's working perfectly, so in my case it's certainly because I've installed ffmpeg the lazy way (using the binary from ffmpegx).

So i thought, let's use homebrew and install ffmpeg as cleanly as possible. With the following I've no more "PHPVideoToolkit->getFFmpegInfo()" notices. But the extension/video/audio codec remains empty.

#install homebrew (http://mxcl.github.com/homebrew/)
brew install --use-gcc ffmpeg

#replace the old lazy ffmpeg with the new one
sudo mv /opt/local/bin/ffmpeg /opt/local/bin/ffmpeg_old
sudo ln -s /usr/local/Cellar/ffmpeg/0.6/bin/ffmpeg /opt/local/bin/ffmpeg

any idea?

edit: i've followed this guide to install ffmpeg on ubuntu: http://ubuntuforums.org/showpost.php?p=9868359&postcount=1289

hypertext200’s picture

Please update the module to the latest version.

idflood’s picture

Wow thanks for this quick answer. I've updated to 7.x-2.x-dev and it looks like it's working now.

hypertext200’s picture

Status: Active » Fixed
gumdrop’s picture

Version: 7.x-2.1-alpha2 » 7.x-2.x-dev
Status: Fixed » Active

I am having the same issues plus these notices:

    Notice: Undefined offset: 2 in PHPVideoToolkit->getFFmpegInfo() (line 611 of /home/html/sites/all/modules/video/libraries/phpvideotoolkit/phpvideotoolkit.php5.php).
    Notice: Undefined offset: 1 in PHPVideoToolkit->getFFmpegInfo() (line 626 of /home//html/sites/all/modules/video/libraries/phpvideotoolkit/phpvideotoolkit.php5.php).
    Notice: Undefined offset: 3 in PHPVideoToolkit->getFFmpegInfo() (line 641 of /home/html/sites/all/modules/video/libraries/phpvideotoolkit/phpvideotoolkit.php5.php).

Plus trying to encode:

WD transcoder: Error set options PHPVideoToolkit Error: Value "h264" set from $toolkit->setVideoCodec, can not be    [error]
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.
WD transcoder: PHPVideoToolkit Error: Execute error. Output for file "" was not found. Please check server write     [error]
permissions and/or available codecs compiled with FFmpeg. You can check the encode decode availability by inspecting
the output array from PHPVideoToolkit::getFFmpegInfo().
WD transcoder: Video conversion has been failed!. Please check further logs for debugging.       

I use the same ffmpeg installation with other applications and I haven't had any problems.

formats show:

ffmpeg -formats
FFmpeg version SVN-r19215, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --prefix=/usr --enable-static --enable-gpl --enable-postproc --enable-pthreads --enable-libspeex --enable-libamr-nb --enable-libamr-wb --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libx264 --disable-ffserver --disable-ffplay --disable-debug --disable-network --enable-nonfree --enable-avfilter --enable-avfilter-lavf --disable-devices
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.31. 2 / 52.31. 2
  libavformat   52.34. 0 / 52.34. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    0. 5. 0 /  0. 5. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Jun 17 2009 13:18:52, gcc: 4.1.2 20080704 (Red Hat 4.1.2-44)
File formats:
  E 3g2             3GP2 format
  E 3gp             3GP format
 D  4xm             4X Technologies format
 D  IFF             IFF format
 D  ISS             Funcom ISS format
 D  MTV             MTV format
 DE RoQ             raw id RoQ format
 D  aac             raw ADTS AAC
 DE ac3             raw AC-3
  E adts            ADTS AAC
 DE aiff            Audio IFF
 DE alaw            PCM A-law format
 DE amr             3GPP AMR file format
 D  apc             CRYO APC format
 D  ape             Monkey's Audio
 DE asf             ASF format
  E asf_stream      ASF format
 DE ass             SSA/ASS format
 DE au              SUN AU format
 DE avi             AVI format
  E avm2            Flash 9 (AVM2) format
 D  avs             AVS format
 D  bethsoftvid     Bethesda Softworks VID format
 D  bfi             Brute Force & Ignorance
 D  c93             Interplay C93
 D  cavsvideo       raw Chinese AVS video
  E crc             CRC testing format
 DE daud            D-Cinema audio format
 DE dirac           raw Dirac
 DE dnxhd           raw DNxHD (SMPTE VC-3)
 D  dsicin          Delphine Software International CIN format
 DE dts             raw DTS
 DE dv              DV video format
  E dvd             MPEG-2 PS format (DVD VOB)
 D  dxa             DXA
 D  ea              Electronic Arts Multimedia Format
 D  ea_cdata        Electronic Arts cdata
 DE eac3            raw E-AC-3
 DE f32be           PCM 32 bit floating-point big-endian format
 DE f32le           PCM 32 bit floating-point little-endian format
 DE f64be           PCM 64 bit floating-point big-endian format
 DE f64le           PCM 64 bit floating-point little-endian format
 DE ffm             FFM (FFserver live feed) format
 D  film_cpk        Sega FILM/CPK format
 DE flac            raw FLAC
 D  flic            FLI/FLC/FLX animation format
 DE flv             FLV format
  E framecrc        framecrc testing format
  E gif             GIF Animation
 D  gsm             raw GSM
 DE gxf             GXF format
 DE h261            raw H.261
 DE h263            raw H.263
 DE h264            raw H.264 video format

[...etc..]

And preset codecs aren't showing up as well.

Any ideas?

idflood’s picture

@gumdrop: this reminds me an issue I had. Can you try the patch in #3 of #1308260: Codec validation false negative (ffmpeg) ?

gumdrop’s picture

@idflood Thanks, I tried that and it didn't work at all.
I do get:

FFmpeg version 19215 found on your system.

But I keep getting the exact same issues as I explained above.

captain_blie’s picture

Component: Video Trasncoding » Video Core

I had a similar problem where ffmpeg would work on the command line but not in drupal, with no codecs were showing up in the presets. This was a result of me having a broken ffmpeg-php enabled in php.ini. The video and presets modules look to be calling ffmpeg directly.

gumdrop’s picture

@captain_blie this was fixed using the solution from here:
http://drupal.org/node/1325664#comment-5188926

hypertext200’s picture

Status: Active » Closed (duplicate)

Please try out the patch #1325664: Undefined offset: in PHPVideoToolkit->getFFmpegInfo() and if its working provide your feedback. Close as duplicate.

hypertext200’s picture

Issue summary: View changes

more info