[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.