Related Topics


[Video CMS v4]FFMPEG tester error  (Read 2094 times) Print

1 B


ulrich4756  September 24, 2014, 07:04:07 PM

 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)

Logged


@Mario  September 24, 2014, 10:04:01 PM

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:

Code
$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:



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






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


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


change it to:



Code
/* 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/


Logged
Hello!
If you wish to learn how to start coding on the PHPVibe Video CMS head to the blog.

Please use the search before opening a new topic!


ulrich4756  September 24, 2014, 11:22:09 PM

is this ok newbielink:http://my-egypt.net/tester/ff.php [nonactive]

 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)

Logged


ulrich4756  September 25, 2014, 11:44:22 AM

can you me help

Logged


@Mario  September 25, 2014, 09:27:06 PM

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)

Logged
Hello!
If you wish to learn how to start coding on the PHPVibe Video CMS head to the blog.

Please use the search before opening a new topic!