[FFmpeg-user] analyze duration takes too long

Cem İbrahim ARI artdusunce at gmail.com
Mon Oct 28 19:08:53 CET 2013


Sorry about external link,

Command line i use :
ffmpeg -probesize 4M -analyzeduration 10000000 -rtbufsize 10000000 -f
mpegts -i "http://10.0.0.5:4242/chnum/1" -acodec aac -strict experimental
-ar 22050 -ac 2 -async 1 -b:a 48k -vcodec libx264 -x264opts
keyint=10:partitions=none,i8x8,i4x4:me=umh:merange=16:subme=3:ref=1:mixed-refs=no:trellis=0:mbtree=no:weightp=0:bitrate=1408
-sc_threshold 0 -deblock 1:2 -r 25 -bufsize 2M -s 720x576 -ar 44100 -b:v
128k -f flv "rtmp://127.0.0.1/live/teststream"

And console output is;

ffmpeg version N-56297-g7ac6c63 Copyright (c) 2000-2013 the FFmpeg
developers
  built on Sep 15 2013 19:58:32 with gcc 4.4.7 (GCC) 20120313 (Red Hat
4.4.7-3)
  configuration: --enable-version3 --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libvpx --enable-libfaac
--enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264
--enable-libxvid --enable-gpl --enable-postproc --enable-nonfree
--enable-pthreads --enable-libvo-aacenc --enable-postproc --enable-swscale
--enable-avfilter --enable-shared --enable-runtime-cpudetect
--disable-stripping --extra-cflags='-O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC'
  libavutil      52. 43.100 / 52. 43.100
  libavcodec     55. 31.101 / 55. 31.101
  libavformat    55. 16.102 / 55. 16.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 84.100 /  3. 84.100
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpegts, from 'http://10.0.0.5:4242/chnum/1':
  Duration: N/A, start: 5477.871656, bitrate: 256 kb/s
  Program 1
    Metadata:
      service_name    : Channel 1
      service_provider:
  Program 2
    Metadata:
      service_name    : Channel 2
      service_provider:
  Program 3
    Metadata:
      service_name    : Channel 3
      service_provider:
  No Program
    Stream #0:0[0x201]: Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR
16:15 DAR 4:3], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x294]: Audio: mp2, 48000 Hz, stereo, s16p, 256 kb/s
-async is forwarded to lavfi similarly to -af
aresample=async=1:min_hard_comp=0.100000:first_pts=0.
[libx264 @ 0x1e9d4c0] VBV maxrate unspecified, assuming CBR
[libx264 @ 0x1e9d4c0] using SAR=8/9
[libx264 @ 0x1e9d4c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x1e9d4c0] profile High, level 2.1
[libx264 @ 0x1e9d4c0] 264 - core 138 r2358 9e941d1 - H.264/MPEG-4 AVC codec
- Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1
ref=1 deblock=1:1:2 analyse=0x3:0x3 me=umh subme=3 psy=1 psy_rd=1.00:0.00
mixed_ref= 0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0
deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 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=0 keyint=10 keyint_min=1
scenecut=0 intra_refresh=0 rc_lookahead= 35 rc=cbr mbtree=0 bitrate=1408
ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1408
vbv_bufsize=2000 nal_hrd=none ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00
Output #0, flv, to 'rtmp://127.0.0.1/live/teststream':
  Metadata:
    encoder         : Lavf55.16.102
    Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p,
480x320 [SAR 8:9 DAR 4:3], q=-1--1, 1408 kb/s, 1k tbn, 25 tbc
    Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo,
fltp, 48 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> libx264)
  Stream #0:1 -> #0:1 (mp2 -> aac)
Press [q] to stop, [?] for help
[mpegts @ 0x1ae8120] PES packet size mismatchme=00:00:06.06
bitrate=1039.9kbits/s
[mp2 @ 0x1b13a80] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mpeg2video @ 0x1b11fa0] 00 motion_type at 0 30=00:00:09.63
bitrate=1131.8kbits/s
[mpeg2video @ 0x1b11fa0] 00 motion_type at 0 31
[mpeg2video @ 0x1b11fa0] ac-tex damaged at 0 32
[mpeg2video @ 0x1b11fa0] ac-tex damaged at 0 33
[mpeg2video @ 0x1b11fa0] ac-tex damaged at 0 34
[mpeg2video @ 0x1b11fa0] ac-tex damaged at 0 35
[mpeg2video @ 0x1b11fa0] 00 motion_type at 13 23
[mpeg2video @ 0x1b11fa0] Warning MVs not available
[mpeg2video @ 0x1b11fa0] concealing 585 DC, 585 AC, 585 MV errors in B frame
frame=  439 fps= 48 q=14.0 size=    2926kB time=00:00:18.11
bitrate=1323.6kbits/s


More information about the ffmpeg-user mailing list