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
Comment #0.0
pixelsweatshop commentedadd info
Comment #0.1
pixelsweatshop commentedmore info
Comment #1
hypertext200Go to your preset settings and change settings of presets match with your FFmpeg installation.
Comment #2
hypertext200You can look at http://drupal.org/project/video_presets for FFmpeg support version.
Comment #3
pixelsweatshop commentedThank 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.
Comment #4
hypertext200That means you do not have any codec installed, basically FFmpeg installation was not success
Comment #5
idflood commentedI'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.
any idea?
edit: i've followed this guide to install ffmpeg on ubuntu: http://ubuntuforums.org/showpost.php?p=9868359&postcount=1289
Comment #6
hypertext200Please update the module to the latest version.
Comment #7
idflood commentedWow thanks for this quick answer. I've updated to 7.x-2.x-dev and it looks like it's working now.
Comment #8
hypertext200Comment #9
gumdrop commentedI am having the same issues plus these notices:
Plus trying to encode:
I use the same ffmpeg installation with other applications and I haven't had any problems.
formats show:
And preset codecs aren't showing up as well.
Any ideas?
Comment #10
idflood commented@gumdrop: this reminds me an issue I had. Can you try the patch in #3 of #1308260: Codec validation false negative (ffmpeg) ?
Comment #11
gumdrop commented@idflood Thanks, I tried that and it didn't work at all.
I do get:
But I keep getting the exact same issues as I explained above.
Comment #12
captain_blie commentedI 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.
Comment #13
gumdrop commented@captain_blie this was fixed using the solution from here:
http://drupal.org/node/1325664#comment-5188926
Comment #14
hypertext200Please try out the patch #1325664: Undefined offset: in PHPVideoToolkit->getFFmpegInfo() and if its working provide your feedback. Close as duplicate.
Comment #14.0
hypertext200more info