Welcome Guest, Not a member yet? Register   Sign In
problem in converting video avi to flv using ffmpeg probelm??
#1

[eluser]Zeeshan Rasool[/eluser]
Hi, im using ffmpeg to convert my avi file to flv, its fine on local but not working on server online. one thing i noticed that on local apche error log it produce some thing like this.

Code:
FFmpeg version SVN-r7760, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  configuration:  --enable-memalign-hack --enable-gpl --cpu=i686 --enable-swscaler --enable-pthreads --enable-avisynth --enable-mp3lame --enable-xvid --enable-x264 --enable-libnut --enable-libogg --enable-vorbis --enable-libtheora --enable-faad --enable-faac --enable-libgsm --enable-dts --enable-a52 --enable-amr_nb --enable-amr_wb
  libavutil version: 49.2.0
  libavcodec version: 51.29.0
  libavformat version: 51.8.0
  built on Jan 29 2007 19:58:47, gcc: 3.4.6
Input #0, avi, from 'C:/wamp/www/project/assets/products_stuff/56/in.avi':
  Duration: 00:02:53.0, start: 0.000000, bitrate: 155 kb/s
  Stream #0.0: Video: mpeg4, yuv420p, 208x130, 30.01 fps(r)
  Stream #0.1: Audio: mp3, 22050 Hz, mono, 32 kb/s
Output #0, flv, to 'C:/wamp/www/project/assets/products_stuff/56//in.flv':
  Stream #0.0: Video: flv, yuv420p, 208x130, q=2-31, 200 kb/s, 30.01 fps(c)
  Stream #0.1: Audio: mp3, 22050 Hz, mono, 32 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
Compiler did not align stack variables. Libavcodec has been miscompiled
and may be very slow or crash. This is not a bug in libavcodec,
but in the compiler. Do not report crashes to FFmpeg developers.
i just put this to be more clear. please any solution for this? Online its stopped and page is executing for long time and failed to upload.
in my model i am using this code after file is uploaded
Code:
$tmp = exec( '.\ffmpeg -i '.$directory_path_full.' -y -acodec copy -ar 22050 -ab 64k -ac 1 '.$directory_path.'/'.$file_name.'.'.'flv');
Thanks a lot ! waiting for your valuable solutions.
#2

[eluser]mallcom[/eluser]
possible causes:

php.ini->

max_execution_time
max_upload= 2m

proper rights?
#3

[eluser]Zeeshan Rasool[/eluser]
thanks, but max_execution time is 30 in my php.ini on localhost. how much it should be ?
#4

[eluser]xeroblast[/eluser]
if your problem is the php.ini then you could add ini_set('max_execution_time',30)...
#5

[eluser]Zeeshan Rasool[/eluser]
actually i dont know where is problem. ffmpeg is not converting the video file to flv, its fine on localhost some bugs in log file as i provided in first posting
#6

[eluser]xeroblast[/eluser]
if it is running perfectly on your local then the problem is in your server...

is FFMPEG installed in your server?
if it is, is it running correctly?




Theme © iAndrew 2016 - Forum software by © MyBB