[ Video Sharing CMS v4 ] FFMPEG tester error

Started by ulrich4756,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ulrich4756Topic starter

 Please help me ;)

PHPVibe FFMPEG tester
File to convert: test.avi
Converted file: test.mp4
Command send to server: ffmpeg -i test.avi -vcodec libx264 -s 640x360 -threads 4 -movflags faststart test.mp4
FFmpeg output

array(0) {
}
int(1)
  •  

Marius P.

Hi! Open ff.php in the tester folder in an editor like notepad++

find this line:

/*
The ffmpeg command supported by your server
*/
and use the one under:

$ffmpegmd = "ffmpeg";



Edit it to your ffmpeg command (you've choosed this when installing ffmpeg, is usually the ffmpeg location if ffmpeg is not registered as simple ffmpeg command).


Example:



$ffmpegmd = "/usr/bin/ffmpeg";





If it doesn't work and still no error is printed, find down:


/* FFMpeg template */
$output ="{ffmpeg-cmd} -i {input} -vcodec libx264 -s {ffmpeg-vsize} -threads 4 -movflags faststart {output}.mp4";



change it to:



/* FFMpeg template */
$output ="{ffmpeg-cmd} -i {input} -vcodec libx264 -s {ffmpeg-vsize} -threads 4 -movflags faststart {output}.mp4 2>&1";



Note that I've just added 2>&1 at the end.


Use the new tester ff.php file with the edits, see if it prints any error or works.


Some posts on topic:
http://www.phpvibe.com/uploading-not-working-on-phpvibe-missing-video-ffmpeg-debug/
http://www.phpvibe.com/choosing-a-server-for-phpvibe/
http://www.phpvibe.com/ffmpeg-installation-for-a-video-script/

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

ulrich4756Topic starter

is this ok http://my-egypt.net/tester/ff.php

File to convert: test.avi
Converted file: test.mp4
Command send to server: /usr/bin/ffmpeg -i test.avi -vcodec libx264 -s 640x360 -threads 4 -movflags faststart test.mp4 2>&1
FFmpeg output

array(15) {
 
  • =>
      string(67) "FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers"
      [1]=>
      string(73) "  built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)"
      [2]=>
      string(747) "  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-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab"
      [3]=>
      string(35) "  libavutil     50.15. 1 / 50.15. 1"
      [4]=>
      string(35) "  libavcodec    52.72. 2 / 52.72. 2"
      [5]=>
      string(35) "  libavformat   52.64. 2 / 52.64. 2"
      [6]=>
      string(35) "  libavdevice   52. 2. 0 / 52. 2. 0"
      [7]=>
      string(35) "  libavfilter    1.19. 0 /  1.19. 0"
      [8]=>
      string(35) "  libswscale     0.11. 0 /  0.11. 0"
      [9]=>
      string(35) "  libpostproc   51. 2. 0 / 51. 2. 0"
      [10]=>
      string(45) "[avi @ 0x23a1670]max_analyze_duration reached"
      [11]=>
      string(31) "Input #0, avi, from 'test.avi':"
      [12]=>
      string(59) "  Duration: 00:00:06.06, start: 0.000000, bitrate: 891 kb/s"
      [13]=>
      string(82) "    Stream #0.0: Video: IV41 / 0x31345649, 256x240, 30 fps, 30 tbr, 30 tbn, 30 tbc"
      [14]=>
      string(30) "Unrecognized option 'movflags'"
    }
    int(1)
  •  

ulrich4756Topic starter

  •  

Marius P.

You have an very old ffmpeg. Is 0.6 and PHPVibe doesn't work with it, it requires at least 1.0 http://www.phpvibe.com/requirements/ (there is even an red warning telling it does not work with 0.6)
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)