PHP ffmpeg conversion error -


I tried to convert some videos with ffmpeg and PHP

When I PHP exec () execute the following command thee

  / usr / local / bin / ffmpeg -i /home/test/public_html/test.m4v-vcodec libx264 -acodec libmp3lame -r 30 -s 640x480 B 100k /home/test/public_html/output_640x480_test.m4v   

Output:

  / usr / local / bin / ffmpeg: line 4: / var / log / Ffmpeg.log: Permission denied FFmpeg version SVN-R26402, Copyright (C) 2000-2011 FFMPG Developers Created on April 18, 2012 at 05:19:10 GCC 4.1.2 Or 20080704 (Red Hat 4.1.2-52) Configuration: --prefix = / usr / local / src / ffmpeg --libdir = / usr / lib64 --shlibdir = / usr / lib64 --mandir = / usr / share / Man --incdir = / usr / contains --disable-aviSynth --extra-CFLAGS = '- O2G -Pipe -Wall -Wp, -D_FORTIFY_SOURCE = 2 -fexceptions -fstack-protector --param = SSP-buffer size = 4 -m64 -mtune = normal -fPIC '--enable-avfilter --enable-libdirac --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb - -enable-libx264 --enable-gpl --enable-nonfree - enabled postprocal - enabled-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab --enable -libxvid --enable-libvorbis --enable-libtheora libavutil 50.36. 0 / 50.36 0 Livikor 0.16 1 / 0.16 1 libavcodec 52.108 0 / 52.108 0 Livivormet 52.93 0 / 52.93 0 Libvdavis 52. 2. 3 / 52. 2. 3 Laibfiltr 1.74 0 / 1.74 0 Libssskel 0.12 0 / 0.12 0 libpostproc 51. 2 0 / 51. 2. 0 Section 1 codec frame rate is different from the container frame rate: 1200.00 (1200/1) - & gt; 10.00 (10.01) Input # 0, mov, mp4, M4A, 3GP, 3G2, mj2, '/home/test/public_html/test.m4v of' metadata: major_brand: M4VP minor_version: 1 compatible_brands: M4VPM4V M4A mp42isom CREATION_TIME : 2013-03-14 10:08:25 Encoder: Mac OS X v10.7.4 (CMA 891, CM 705.78, x86_64) Date: 2013-03-10T14: 05: 41 + 1100 Duration: 00: 00: 02.30, start : 0.000000, Bitrate: 245 kb / s Stream # 0.0 (Und): Audio: AAC, 32000 Hz, 2 Channels (FC), S16, 31Kb / s Metadata: creation_time: 2013-03-14 10:08:25 Stream # 0.1 (und): Video: h264, yuv420p, 400x226 [equal 1: 1dar 200: 113], 216 kb / s, 10.35 fps, 10 tbr, 600 tbn, 1200 tbb metadata: Creation_time: 2013-03-14 10: 08: 25 [buffer @ 0xf6093c0] w: 400 h: 226 pkmtt: uuv 420p [scale 0xf609790] w: 400 h: 226 ftt: yuv420p - & gt; W: 640 H: 480 fmt: yuv420p flags: 0xa0000004 [libx264 @ 0xf605cd0] broken ffmpeg detected default settings [libx264 @ 0xf605cd0] [libx264 @ 0xf605cd0] preset encoding using use pre-defined (eg -vpre through): -vpre & LT; Speed ​​& gt; -Pair & lt; Profile & gt; [Libx264 @ 0xf605cd0] Speed ​​presets are listed in x264 --help [libx264 @ 0xf605cd0] Profile is optional; High Output # 0 x264 default, iPod, '/home/test/public_html/output_640x480_test.m4v': # 0.0 (und) Stream: Video: libx264, yuv420p, 640x480 [equal to 150: 113 DAR 200: 113 ], Q = 2-31, 800 KB / s, TBN of 90, 10 TBC Metadata: Production_time: 2013-03-14 10:08:25 Stream # 0.1 (und): Audio: libmp3lame, 32000 Hz, 2 channels, S16, 64Kb / s Metadata: creation_time: 2013-03-14 10:08:25 Stream Mapping: Stream # 0.1 - & gt; # 0.0 Stream # 0.0 - & gt; Error # - Opening Encoder for # 0.1 output stream # 0.0 - Probably bad parameters like beta_tate, rate, width or height   

The same conversion is working fine in other servers. But what should I do to get rid of this error not in our current server?

Try setting up ffmpeg again and try again.

Install Guide:

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -