Monthly Archives: March 2015

Videobearbeitung

FFmpeg
VirtualDub

How to flip a video 180° (vertical/upside down) with FFmpeg?
Videofilm um 180 Grad drehen?

$ ffmpeg -i VID_20150227_105125.mp4 -vf "rotate=PI:bilinear=0,format=yuv420p" -m                                                                                                                                  etadata:s:v rotate=0 -codec:v libx264 -codec:a copy VID_20150227_105125_180.mp4
ffmpeg version N-70348-g9564375 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3                                                                                                                                   --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --ena                                                                                                                                  ble-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --e                                                                                                                                  nable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-lib                                                                                                                                  gsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencor                                                                                                                                  e-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enabl                                                                                                                                  e-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-l                                                                                                                                  ibtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-                                                                                                                                  libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-l                                                                                                                                  ibwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --ena                                                                                                                                  ble-lzma --enable-decklink --enable-zlib
  libavutil      54. 19.100 / 54. 19.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 23.106 / 56. 23.106
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'VID_20150227_105125.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 0
    compatible_brands: isom3gp4
    creation_time   : 2015-02-27 09:52:53
    location        : +47.4959+008.7180/
    location-eng    : +47.4959+008.7180/
  Duration: 00:01:26.44, start: 0.000000, bitrate: 14490 kb/s
    Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yu                                                                                                                                  vj420p(pc), 1280x720, 14400 kb/s, SAR 1:1 DAR 16:9, 29.99 fps, 30 tbr, 90k tbn,                                                                                                                                   25 tbc (default)
    Metadata:
      rotate          : 180
      creation_time   : 2015-02-27 09:52:53
      handler_name    : VideoHandle
    Side data:
      displaymatrix: rotation of 180.00 degrees
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, flt                                                                                                                                  p, 96 kb/s (default)
    Metadata:
      creation_time   : 2015-02-27 09:52:53
      handler_name    : SoundHandle
[swscaler @ 0000000000554320] deprecated pixel format used, make sure you did se                                                                                                                                  t range correctly
[libx264 @ 0000000002e60860] using SAR=1/1
[libx264 @ 0000000002e60860] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2                                                                                                                                   AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0000000002e60860] profile High, level 3.1
[libx264 @ 0000000002e60860] 264 - core 144 r2525 40bb568 - H.264/MPEG-4 AVC cod                                                                                                                                  ec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 r                                                                                                                                  ef=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_pski                                                                                                                                  p=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 deci                                                                                                                                  mate=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=2                                                                                                                                  5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.6                                                                                                                                  0 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'VID_20150227_105125_180.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 0
    compatible_brands: isom3gp4
    location-eng    : +47.4959+008.7180/
    location        : +47.4959+008.7180/
    encoder         : Lavf56.23.106
    Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1                                                                                                                                  280x720 [SAR 1:1 DAR 16:9], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
    Metadata:
      handler_name    : VideoHandle
      creation_time   : 2015-02-27 09:52:53
      rotate          : 0
      encoder         : Lavc56.26.100 libx264
    Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 96                                                                                                                                   kb/s (default)
    Metadata:
      creation_time   : 2015-02-27 09:52:53
      handler_name    : SoundHandle
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=   47 fps=0.0 q=0.0 size=       0kB time=00:00:02.04 bitrate=   0.2kbits/s                                                                                                                                  frame=   61 fps= 55 q=29.0 size=     111kB time=00:00:02.04 bitrate= 443.1kbits/                                                                                                                                  frame=   73 fps= 45 q=29.0 size=     181kB time=00:00:02.04 bitrate= 724.3kbits/                                                                                                                                  frame=   85 fps= 40 q=29.0 size=     276kB time=00:00:02.04 bitrate=1102.9kbits/                                                                                                                                  frame=   96 fps= 36 q=29.0 size=     352kB time=00:00:04.05 bitrate= 710.4kbits/                                                                                                                                  frame=  109 fps= 34 q=29.0 size=     452kB time=00:00:04.05 bitrate= 913.9kbits/                                                                                                                                  frame=  121 fps= 33 q=29.0 size=     528kB time=00:00:05.05 bitrate= 855.1kbits/                                                                                                                                  frame= 2585 fps= 19 q=-1.0 Lsize=   25078kB time=00:01:26.44 bitrate=2376.6kbits/s
video:23971kB audio:1014kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.375647%
[libx264 @ 0000000002e60860] frame I:14    Avg QP:21.65  size: 33711
[libx264 @ 0000000002e60860] frame P:1166  Avg QP:24.39  size: 14372
[libx264 @ 0000000002e60860] frame B:1405  Avg QP:26.87  size:  5206
[libx264 @ 0000000002e60860] consecutive B-frames: 10.7% 43.2% 22.2% 24.0%
[libx264 @ 0000000002e60860] mb I  I16..4: 16.7% 70.9% 12.3%
[libx264 @ 0000000002e60860] mb P  I16..4:  3.7%  9.8%  1.0%  P16..4: 51.8% 10.3%  4.8%  0.0%  0.0%    skip:18.7%
[libx264 @ 0000000002e60860] mb B  I16..4:  0.3%  0.9%  0.1%  B16..8: 43.4%  3.4%  0.5%  direct: 2.0%  skip:49.3%  L0:43.8% L1:53.0% BI: 3.2%
[libx264 @ 0000000002e60860] 8x8 transform intra:67.6% inter:82.2%
[libx264 @ 0000000002e60860] coded y,uvDC,uvAC intra: 44.9% 57.4% 10.9% inter: 14.2% 21.4% 0.2%
[libx264 @ 0000000002e60860] i16 v,h,dc,p: 24% 26% 13% 37%
[libx264 @ 0000000002e60860] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 17% 25%  5%  6%  6%  9%  8%  5%
[libx264 @ 0000000002e60860] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 23% 16%  4%  7%  7% 11%  6%  3%
[libx264 @ 0000000002e60860] i8c dc,h,v,p: 55% 19% 20%  6%
[libx264 @ 0000000002e60860] Weighted P-Frames: Y:7.2% UV:2.7%
[libx264 @ 0000000002e60860] ref P L0: 65.0% 14.3% 15.0%  5.6%  0.2%
[libx264 @ 0000000002e60860] ref B L0: 83.6% 14.7%  1.7%
[libx264 @ 0000000002e60860] ref B L1: 94.2%  5.8%
[libx264 @ 0000000002e60860] kb/s:2278.86