[Libav-user] FFmpeg version 3.1's avcodec_decode_video2 is slower than 3.0.5.

Hwangho Kim loveall0926 at gmail.com
Wed Jan 11 03:21:12 EET 2017


2017-01-10 20:01 GMT+09:00 Carl Eugen Hoyos <ceffmpeg at gmail.com>:

> 2017-01-10 2:20 GMT+01:00 Hwangho Kim <loveall0926 at gmail.com>:
> >
> > 2017. 1. 9. 오후 9:08, Carl Eugen Hoyos <ceffmpeg at gmail.com> 작성:
> >
> > > 60b75186
>
> I know that I am cutting a lot when replying but this was definitely too
> much.
>
> > I tested and as you said 6f69f7a8 is slow and 60b75186 is not slow.
>
> I cannot reproduce this.
>
> Please either provide ffmpeg -i output for the file you tested or explain
> how I can reproduce.
>
> Carl Eugen
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>


Maybe my email program cuts automatically. I should use other program.


Please find attached output link for ffmpeg -i and FYI, I attached result
log.
And this may not be reproduced in macOS or windows but only iOS.

https://www.dropbox.com/s/6vrjrmu477ytw5f/video.mp4?dl=0


You could just check the duration time between that avcodec_decode_video2 for
3.0.5 and 3.1 and
I'll try to make simple test xÇode program to check this.

If you have iPhone and xcode then you could test this.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20170111/cd81ff20/attachment.html>
-------------- next part --------------
KimHwanghoui-MacBook-Pro:ffplay-3.2.2 kimhwangho$ ./ffmpeg -i IMG_8458.MP4 video.mp4
ffmpeg version 3.2.2-tessus Copyright (c) 2000-2016 the FFmpeg developers
  built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzmq --enable-version3 --disable-ffplay --disable-indev=qtkit --disable-indev=x11grab_xcb
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  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 'IMG_8458.MP4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2016-12-26T06:58:05.000000Z
  Duration: 00:00:34.09, start: 0.000000, bitrate: 17171 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 16965 kb/s, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      creation_time   : 2016-12-26T06:58:05.000000Z
      handler_name    : VideoHandle
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 156 kb/s (default)
    Metadata:
      creation_time   : 2016-12-26T06:58:05.000000Z
      handler_name    : SoundHandle
[libx264 @ 0x7fc717809200] using SAR=1/1
[libx264 @ 0x7fc717809200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x7fc717809200] profile High, level 4.0
[libx264 @ 0x7fc717809200] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - 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 'video.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    encoder         : Lavf57.56.100
    Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
    Metadata:
      creation_time   : 2016-12-26T06:58:05.000000Z
      handler_name    : VideoHandle
      encoder         : Lavc57.64.101 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2016-12-26T06:58:05.000000Z
      handler_name    : SoundHandle
      encoder         : Lavc57.64.101 aac
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
frame= 1020 fps= 15 q=-1.0 Lsize=   16171kB time=00:00:34.09 bitrate=3885.9kbits/s speed=0.506x    
video:15603kB audio:530kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.234793%
[libx264 @ 0x7fc717809200] frame I:5     Avg QP:20.67  size:156084
[libx264 @ 0x7fc717809200] frame P:257   Avg QP:23.11  size: 34795
[libx264 @ 0x7fc717809200] frame B:758   Avg QP:25.32  size:  8251
[libx264 @ 0x7fc717809200] consecutive B-frames:  0.9%  0.0%  0.3% 98.8%
[libx264 @ 0x7fc717809200] mb I  I16..4: 12.0% 70.6% 17.3%
[libx264 @ 0x7fc717809200] mb P  I16..4:  1.0%  3.8%  0.1%  P16..4: 50.1%  9.9%  8.6%  0.0%  0.0%    skip:26.5%
[libx264 @ 0x7fc717809200] mb B  I16..4:  0.0%  0.8%  0.0%  B16..8: 36.5%  1.1%  0.2%  direct: 1.5%  skip:59.9%  L0:47.2% L1:51.5% BI: 1.3%
[libx264 @ 0x7fc717809200] 8x8 transform intra:81.5% inter:74.6%
[libx264 @ 0x7fc717809200] coded y,uvDC,uvAC intra: 64.2% 44.9% 2.5% inter: 12.9% 12.3% 0.0%
[libx264 @ 0x7fc717809200] i16 v,h,dc,p: 11%  9% 13% 67%
[libx264 @ 0x7fc717809200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 10% 41%  8%  6%  5%  5%  6%  6%
[libx264 @ 0x7fc717809200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 13% 14% 14% 14%  8%  6%  7%  8%
[libx264 @ 0x7fc717809200] i8c dc,h,v,p: 67% 15% 14%  3%
[libx264 @ 0x7fc717809200] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7fc717809200] ref P L0: 44.8%  7.6% 34.6% 13.1%
[libx264 @ 0x7fc717809200] ref B L0: 74.6% 18.9%  6.5%
[libx264 @ 0x7fc717809200] ref B L1: 92.1%  7.9%
[libx264 @ 0x7fc717809200] kb/s:3759.31
[aac @ 0x7fc71780aa00] Qavg: 4408.412


More information about the Libav-user mailing list