ffmpeg と avconv

昨日までは「ffmpeg使ったスクリプト書いたわーい」などと言ってましたが、
今日、wheezyにffmpeg入れて実行してみると、怪しげな文字が表示されている...

The ffmpeg program is only provided for script compatibility and will be removed
in a future release. It has been deprecated in the Libav project to allow for
incompatible command line syntax improvements in its replacement called avconv
(see Changelog for details). Please use avconv instead.

ほう。

Debian jessie には ffmpeg というパッケージはなく、libav-tools というパッケージなっている。」ことは、以前から知ってたのですが、ffmpeg というコマンドが何に置き換わったのか?については知りませんでした。

でも、はっきり書かれてるじゃないですか笑

its replacement called avconv

試しに使ってみたログ

shotam@bigcool ~/download % avconv -i  test.avi output.mp4
avconv version 11-6:11-2, Copyright (c) 2000-2014 the Libav developers
  built on Oct 19 2014 20:25:25 with gcc 4.9.1 (Debian 4.9.1-18)
Input #0, avi, from 'test.avi':
  Duration: 00:00:32.73, start: 0.000000, bitrate: 995330 kb/s
    Stream #0.0: Video: rawvideo, bgra, 1920x1080, 15 tbn
Constant framerate requested for the output stream #0:0, but no information about the input framerate is available. Falling back to a default value of 25fps. Use the -r option if you want a different framerate.
[libx264 @ 0x252a440] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x252a440] profile High, level 4.0
[libx264 @ 0x252a440] 264 - core 142 r2431 a5831aa - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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=-2 threads=6 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 'output.mp4':
  Metadata:
    encoder         : Lavf56.1.0
    Stream #0.0: Video: libx264, yuv420p, 1920x1080, q=-1--1, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.1.0 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press ctrl-c to stop encoding
frame=  817 fps= 70 q=28.0 Lsize=    3185kB time=32.56 bitrate= 801.4kbits/s    s/s
video:3172kB audio:0kB other streams:0kB global headers:0kB muxing overhead: 0.412206%
[libx264 @ 0x252a440] frame I:5     Avg QP:17.40  size:235389
[libx264 @ 0x252a440] frame P:269   Avg QP:20.03  size:  7201
[libx264 @ 0x252a440] frame B:543   Avg QP:29.38  size:   246
[libx264 @ 0x252a440] consecutive B-frames: 11.1%  0.0%  2.2% 86.7%
[libx264 @ 0x252a440] mb I  I16..4: 29.4% 43.9% 26.6%
[libx264 @ 0x252a440] mb P  I16..4:  1.8%  2.2%  0.8%  P16..4:  2.5%  0.5%  0.4%  0.0%  0.0%    skip:91.8%
[libx264 @ 0x252a440] mb B  I16..4:  0.1%  0.2%  0.0%  B16..8:  1.2%  0.0%  0.0%  direct: 0.0%  skip:98.4%  L0:54.5% L1:45.0% BI: 0.4%
[libx264 @ 0x252a440] 8x8 transform intra:47.3% inter:51.7%
[libx264 @ 0x252a440] coded y,uvDC,uvAC intra: 26.1% 23.2% 15.4% inter: 0.5% 0.4% 0.1%
[libx264 @ 0x252a440] i16 v,h,dc,p: 38% 56%  1%  4%
[libx264 @ 0x252a440] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 16% 38%  2%  2%  2%  2%  2%  3%
[libx264 @ 0x252a440] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 34% 14%  3%  3%  4%  4%  4%  4%
[libx264 @ 0x252a440] i8c dc,h,v,p: 70% 19%  7%  3%
[libx264 @ 0x252a440] Weighted P-Frames: Y:4.1% UV:1.9%
[libx264 @ 0x252a440] ref P L0: 68.8% 15.9% 11.5%  2.9%  0.8%
[libx264 @ 0x252a440] ref B L0: 67.7% 29.8%  2.5%
[libx264 @ 0x252a440] ref B L1: 91.8%  8.2%
[libx264 @ 0x252a440] kb/s:795.03
shotam@bigcool ~/download % ls
output.mp4  test.avi