All pastes #2969234 Raw Edit

Mine

public unlisted text v1 · immutable
#2969234 ·published 2015-04-08 09:45 UTC
rendered paste body
>php -f "code.php"
ffmpeg -y -i './file/file.jpg' -i './file/file.mp4' -acodec copy  './file/file.new.mp4' 
ffmpeg version N-44629-g3c91239-   http://johnvansickle.com/ffmpeg/    Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (Debian 4.9.2-10)
  configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --cc=gcc-4.9
  libavutil      54. 22.100 / 54. 22.100
  libavcodec     56. 32.100 / 56. 32.100
  libavformat    56. 27.100 / 56. 27.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 13.101 /  5. 13.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, image2, from './file/file.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 31092 kb/s
    Stream #0:0: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 600x598 [SAR 72:72 DAR 300:299], 25 tbr, 25 tbn, 25 tbc
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from './file/file.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf56.27.100
  Duration: 00:00:37.01, start: 0.000000, bitrate: 202 kb/s
    Stream #1:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuvj444p(pc), 600x598 [SAR 1:1 DAR 300:299], 8506 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 191 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
No pixel format specified, yuvj444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0xb20d400] using SAR=1/1
[libx264 @ 0xb20d400] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowCTZ SlowAtom SlowPshufb
[libx264 @ 0xb20d400] profile High 4:4:4 Predictive, level 3.0, 4:4:4 8-bit
[libx264 @ 0xb20d400] 264 - core 146 r61 121396c - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to './file/file.new.mp4':
  Metadata:
    encoder         : Lavf56.27.100
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj444p(pc), 600x598 [SAR 72:72 DAR 300:299], q=-1--1, 25 fps, 12800 tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.32.100 libx264
    Stream #0:1(und): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 191 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
  Stream #1:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=28.0 Lsize=     917kB time=00:00:37.01 bitrate= 202.9kbits/s    
video:42kB audio:867kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.826465%
[libx264 @ 0xb20d400] frame I:1     Avg QP:29.30  size: 41844
[libx264 @ 0xb20d400] mb I  I16..4:  4.8% 73.5% 21.7%
[libx264 @ 0xb20d400] 8x8 transform intra:73.5%
[libx264 @ 0xb20d400] coded y,u,v intra: 80.7% 68.8% 48.7%
[libx264 @ 0xb20d400] i16 v,h,dc,p: 10% 12% 17% 61%
[libx264 @ 0xb20d400] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 12% 29%  7%  7%  6%  7%  8% 10%
[libx264 @ 0xb20d400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 16% 18% 11%  8%  7% 10%  7%  8%
[libx264 @ 0xb20d400] kb/s:8368.80
>Exit code: 0