Version : 7.x-2.10+11-dev

Reported errors

PHPVideoToolkit error: Execute error. Output for file "/home/onevid/public_html/sites/default/files/videos/original/qw_1.mpg" 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().
Executed commands and output

/usr/bin/ffmpeg -i '/home/onevid/public_html/sites/default/files/videos/original/qw_1.mpg' -vf 'scale=540:360' -strict experimental -vcodec 'libx264' -vpre 'libx264-normal' -qscale '12' -acodec 'libfaac' -ac '2' -pass '1' -passlogfile '/home/onevid/public_html/tmp/1377243445-5217113563c93-multipass'  -y /home/onevid/public_html/tmp/1377243445-5217113563b49.mp4
FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jan 29 2012 23:55:02 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
  configuration: --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-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
[mpeg @ 0x16b08b0]max_analyze_duration reached

Seems stream 0 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 30000.00 (30000/1)
Input #0, mpeg, from '/home/onevid/public_html/sites/default/files/videos/original/qw_1.mpg':
  Duration: 00:00:14.00, start: 0.011978, bitrate: 3235 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480 [PAR 1:1 DAR 3:2], 3000 kb/s, 29.97 fps, 30k tbr, 90k tbn, 59.94 tbc
    Stream #0.1[0x1c0]: Audio: mp2, 44100 Hz, 2 channels, s16, 160 kb/s
Unrecognized option 'vf'

Comments

jorrit’s picture

Your FFmpeg version is very old. Is there any chance you can update it?

Nikdhil Mdohfan’s picture

Which is the latest version of FFmpeg? Is there any specific tutorials to do it. Can you help me on this.

Nikdhil Mdohfan’s picture

Also what about the PHPVideoToolkit error: Execute error. Output for file error ?

Nikdhil Mdohfan’s picture

Yes i can update FFmpeg. Also what about the PHPVideoToolkit error: Execute error. Output for file error ?

Nikdhil Mdohfan’s picture

I got this

Package ffmpeg-0.6.5-1.el5.rf.x86_64 already installed and latest version
Nothing to do
Nikdhil Mdohfan’s picture

Category: support » bug

Confirm that ffmpeg installed the latest version.

jorrit’s picture

It is the latest version on your Linux distribution, but not the latest version of the software. You can try to build it yourself using the latest sources. The first error is caused by the second error.

Nikdhil Mdohfan’s picture

Okay. I will do that.
Is there any best practices to install and configure FFmpeg to use with Drupal to convert mp4, ogg, webm ? Some bash script or something ?

Nikdhil Mdohfan’s picture

Priority: Normal » Major

ffmpeg version 1.2.2

Reported errors

PHPVideoToolkit error: Execute error. It was not possible to encode "/home/onevid/public_html/sites/default/files/videos/original/qw_1.mpg" as FFmpeg returned an error. The error is with the video codec of the input file. FFmpeg reports the error to be "Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height".
Executed commands and output

/usr/local/bin/ffmpeg -i '/home/onevid/public_html/sites/default/files/videos/original/qw_1.mpg' -vf 'scale=540:360' -strict experimental -vcodec 'h263' -qscale '12' -acodec 'aac' -ac '2' -pass '1' -passlogfile '/tmp/1377530626-521b73028a987-multipass'  -y /tmp/1377530626-521b73028a7ea.mp4
ffmpeg version 1.2.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Aug 26 2013 15:10:42 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3)
  configuration: --disable-yasm
  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
[mpeg @ 0x2e89160] max_analyze_duration 5000000 reached at 5015467 microseconds
Input #0, mpeg, from '/home/onevid/public_html/sites/default/files/videos/original/qw_1.mpg':
  Duration: 00:00:14.00, start: 0.011978, bitrate: 3235 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 1:1 DAR 3:2], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, stereo, s16p, 160 kb/s
Please use -q:a or -q:v, -qscale is ambiguous
[h263 @ 0x2e8b180] The specified picture size of 540x360 is not valid for the H.263 codec.
Valid sizes are 128x96, 176x144, 352x288, 704x576, and 1408x1152. Try H.263+.
Output #0, mp4, to '/tmp/1377530626-521b73028a7ea.mp4':
    Stream #0:0: Video: h263, yuv420p, 540x360 [SAR 1:1 DAR 3:2], q=2-31, pass 1, 200 kb/s, 90k tbn, 29.97 tbc
    Stream #0:1: Audio: none, 44100 Hz, stereo, fltp, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> h263)
  Stream #0:1 -> #0:1 (mp2 -> aac)
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
jorrit’s picture

The error that is important here is:

[h263 @ 0x2e8b180] The specified picture size of 540x360 is not valid for the H.263 codec.
Valid sizes are 128x96, 176x144, 352x288, 704x576, and 1408x1152. Try H.263+.

It appears you selected H.263 as your video codec. I think this is a mistake, you should select H.264. These two are entirely different.

jorrit’s picture

Issue summary: View changes

code formatted

hypertext200’s picture

Component: Video Transcoding » General
Status: Active » Closed (works as designed)