[FFmpeg-user] hflip so slooooooooow

JD jd1008 at gmail.com
Sat Mar 4 02:27:05 EET 2017


On Fri, Mar 3, 2017 at 1:06 AM, Moritz Barsnick <barsnick at gmx.net> wrote:

> On Thu, Mar 02, 2017 at 18:39:16 -0700, JD wrote:
> > Hi all, should horizontal flipping be as slow as this:
> > frame=27067 fps= 12 q=28.0 size=  143993kB time=00:18:06.27
> > bitrate=1085.9kbits/s dup=0 drop=35 speed=0.47x
>
> How do these numbers compare to when you omit the filter?
>
> > the command was:
> > $ ~/bin/ffmpeg.d/ffmpeg -i video_mnt13.mp4  -vf "hflip" -y
> > video_mnt13-hflip-m1B6z-54q_0.mp4
> > ffmpeg version 3.2.4-static http://johnvansickle.com/ffmpeg/  Copyright
> (c)
> > 2000-2017 the FFmpeg developers   built with gcc 5.4.1 (Debian 5.4.1-5)
> > 20170205
>
> The complete, uncut console output is much more practical for us.
>
> > how can I speed it up? (I thought that flipping should not need
> > transcoding)???
>
> Using filters in ffmpeg always requires re-encoding. Furthermore, I'm
> not aware that "mp4" (we don't even know which [input] codec you used,
> because you didn't show us the complete, uncut console output), or
> rather the common codecs such as mpeg4 of h264, support lossless
> rotation or flipping. JPEG (and as such probably Motion JPEG) does
> allow that under certain constraints. ffmpeg doesn't support it for
> those though, and if it did, that would be a so-called "bitstream
> filter" ("-bsf:v").
>
> Moritz
>

​Here is what u r asking for:​

​ffmpeg version 3.2.4-static http://johnvansickle.com/ffmpeg/  Copyright
(c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.1 (Debian 5.4.1-5) 20170205
  configuration: --enable-gpl --enable-version3 --enable-static
--disable-debug --disable-ffplay --disable-indev=sndio
--disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-gray --enable-libass --enable-libfreetype
--enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
--enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxvid --enable-libzimg
  libavutil      55. 34.101 / 55. 34.101
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'mnt13-.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2016-12-24T10:40:35.000000Z
    encoder         : Lavf56.1.0
  Duration: 02:13:31.51, start: 0.000000, bitrate: 1136 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv,
bt709), 1280x720 [SAR 1:1 DAR 16:9], 1005 kb/s, 24.95 fps, 24.92 tbr, 90k
tbn, 49.90 tbc (default)
    Metadata:
      creation_time   : 2016-12-24T10:40:35.000000Z
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2016-12-24T10:40:35.000000Z
      handler_name    : SoundHandler
[libx264 @ 0x4063360] using SAR=1/1
[libx264 @ 0x4063360] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1
Cache64
[libx264 @ 0x4063360] profile High, level 3.1
[libx264 @ 0x4063360] 264 - core 148 r333 90a61ec - H.264/MPEG-4 AVC codec
- Copyleft 2003-2017 - 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=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=24 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 'mnt13--hflip-m1B6z-54q_0.mp4':
​


More information about the ffmpeg-user mailing list