Witam,

potrzebuje przekonwertowac w php plik mov na flv, do tego celu używam biblioteki ffmpeg ale niestety wysypują mi się w niej błędy których nie rozumiem... Używam polecenia:
  1. echo shell_exec("ffmpeg -y -i sample_iTunes.mov -ar 44100 output.flv &");

Daje mi to wynik:
Kod
ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on May 10 2013 16:31:05 with gcc 4.8.0 (GCC) 20130502 (prerelease)
  configuration: --prefix=/usr --disable-debug --disable-static --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-vdpau --enable-version3 --enable-x11grab
  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sample_iTunes.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2005-10-17 22:54:32
  Duration: 00:01:25.50, start: 0.000000, bitrate: 307 kb/s
    Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 261 kb/s, 10 fps, 10 tbr, 3k tbn, 25 tbc
    Metadata:
      creation_time   : 2005-10-17 22:54:33
      handler_name    : Apple Video Media Handler
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 32000 Hz, mono, fltp, 43 kb/s
    Metadata:
      creation_time   : 2005-10-17 22:54:34
      handler_name    : Apple Sound Media Handler
Output #0, flv, to 'output.flv':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    encoder         : Lavf54.63.104
    Stream #0:0(eng): Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 1k tbn, 10 tbc
    Metadata:
      creation_time   : 2005-10-17 22:54:33
      handler_name    : Apple Video Media Handler
    Stream #0:1(eng): Audio: mp3 ([2][0][0][0] / 0x0002), 44100 Hz, mono, fltp
    Metadata:
      creation_time   : 2005-10-17 22:54:34
      handler_name    : Apple Sound Media Handler
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg4 -> flv)
  Stream #0:1 -> #0:1 (aac -> libmp3lame)
Press [q] to stop, [?] for help
[mpeg4 @ 0xb5fc00] Cannot allocate memory.
[mpeg4 @ 0xb635e0] Cannot allocate memory.
(...wyciete powtorzenia...)
[mpeg4 @ 0xb7cb00] Cannot allocate memory.
[mpeg4 @ 0xb804e0] Cannot allocate memory.
Error while decoding stream #0:0: Operation not permitted
[mpeg4 @ 0xb5fc00] Cannot allocate memory.
Error while decoding stream #0:0: Operation not permitted
[mpeg4 @ 0xb635e0] Cannot allocate memory.
Error while decoding stream #0:0: Operation not permitted
[mpeg4 @ 0xb66fc0] Cannot allocate memory.
(...wyciete powtorzenia...)
Error while decoding stream #0:0: Operation not permitted
[mpeg4 @ 0xb7cb00] Cannot allocate memory.
Error while decoding stream #0:0: Operation not permitted
[mpeg4 @ 0xb804e0] Cannot allocate memory.
Error while decoding stream #0:0: Operation not permitted
frame=   47 fps=0.0 q=2.0 size=     239kB time=00:00:13.27 bitrate= 147.3kbits/s    
alloc_buffer: av_image_alloc() failed
[mpeg4 @ 0xb5fc00] get_buffer() failed (-12 0 (nil))
Error while decoding stream #0:0: Operation not permitted
[mpeg4 @ 0xb635e0] alloc_buffer: av_image_alloc() failed
[mpeg4 @ 0xb635e0] get_buffer() failed (-12 0 (nil))
Error while decoding stream #0:0: Operation not permitted
[mpeg4 @ 0xb66fc0] alloc_buffer: av_image_alloc() failed
(...wyciete powtorzenia...)
Error while decoding stream #0:0: Operation not permitted
[mpeg4 @ 0xb7cb00] alloc_buffer: av_image_alloc() failed
[mpeg4 @ 0xb7cb00] get_buffer() failed (-12 0 (nil))
Error while decoding stream #0:0: Operation not permitted
[mpeg4 @ 0xb804e0] alloc_buffer: av_image_alloc() failed
[mpeg4 @ 0xb804e0] get_buffer() failed (-12 0 (nil))
Video encoding failed


Mozecie cos podpowiedziec ? Google milczy na temat "Cannot allocate memory" sad.gif dalem przed tym ini_set("memory_limit", "200M"); ale to nic nie dalo ... plik mov ma rozmiar 3 MB