[FFmpeg-user] What causes excessive CPU usage?

Loadlinx limiteddi at gmail.com
Sun May 25 15:04:53 CEST 2014


Server was running well, each ffmpeg process consumed half a core. A day
ago I added TBS6284 to existing 2xTBS6285 dvb cards. After boot i
discovered that none of the processes work as even 1 exhausts the server
that now takes 4-6 cores to transcode.It doesnt fit in my head that TBS6284
can cause this.

I updated ffmpeg to latest but no change.

Here is how I launch ffmpeg

/root/bin/ffmpeg -i udp://127.0.0.9:10552 -deinterlace -vcodec libx264 -vb
700k -s 540x450 -preset superfast -acodec libfdk_aac -ar 44100 -ab 32k -map
0:1 -map 0:2 -f flv rtmp://10.10.200.200:1935/live/babytv

Here is what happens when ffmpeg runs, i never got these errors before.

ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
  built on May 24 2014 13:20:32 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --prefix=/root/ffmpeg_build
--extra-cflags=-I/root/ffmpeg_build/include
--extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin
--extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac
--enable-libfreetype --enable-pic --enable-libtheora --enable-libvorbis
--enable-libx264 --enable-nonfree
  libavutil      52. 86.100 / 52. 86.100
  libavcodec     55. 63.100 / 55. 63.100
  libavformat    55. 40.100 / 55. 40.100
  libavdevice    55. 13.101 / 55. 13.101
  libavfilter     4.  5.100 /  4.  5.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
[mpeg2video @ 0x387e540] Invalid frame dimensions 0x0.
    Last message repeated 1 times
[mpegts @ 0x3868e40] PES packet size mismatch
Input #0, mpegts, from 'udp://127.0.0.9:10552':
  Duration: N/A, start: 30988.638822, bitrate: 377 kb/s
  Program 10552
    Metadata:
      service_name    : Baby TV
      service_provider: DVB
    Stream #0:0[0x1039](pol): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
stereo, s16p, 192 kb/s
    Stream #0:1[0x1040](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
stereo, s16p, 185 kb/s
    Stream #0:2[0x1041]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p(tv), 704x576 [SAR 12:11 DAR 4:3], max. 15000 kb/s, 25 fps, 25 tbr,
90k tbn, 50 tbc
[libx264 @ 0x3895ba0] using SAR=10/9
[libx264 @ 0x3895ba0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
SlowShuffle
[libx264 @ 0x3895ba0] profile High, level 3.0
[libx264 @ 0x3895ba0] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft
2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=1
deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 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=24 lookahead_threads=3
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=1 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc=abr mbtree=0 bitrate=700 ratetol=1.0 qcomp=0.60 qpmin=0
qpmax=69 qpstep=4 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00
Output #0, flv, to 'rtmp://10.10.200.200:1935/live/babytv':
  Metadata:
    encoder         : Lavf55.40.100
    Stream #0:0(eng): Audio: aac (libfdk_aac) ([10][0][0][0] / 0x000A),
44100 Hz, stereo, s16, 32 kb/s
    Metadata:
      encoder         : Lavc55.63.100 libfdk_aac
    Stream #0:1: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p,
540x450 [SAR 10:9 DAR 4:3], q=-1--1, 700 kb/s, 25 fps, 1k tbn, 25 tbc
    Metadata:
      encoder         : Lavc55.63.100 libx264
Stream mapping:
  Stream #0:1 -> #0:0 (mp2 -> libfdk_aac)
  Stream #0:2 -> #0:1 (mpeg2video -> libx264)
Press [q] to stop, [?] for help
[mpeg2video @ 0x387e540] Warning MVs not available
[mpeg2video @ 0x387e540] concealing 55 DC, 55 AC, 55 MV errors in P frame
[mpegts @ 0x3868e40] PES packet size mismatchme=00:00:01.67 bitrate=
208.9kbits/s
[mpeg2video @ 0x387e540] mb incr damaged
[mpeg2video @ 0x387e540] Warning MVs not available
[mpeg2video @ 0x387e540] concealing 132 DC, 132 AC, 132 MV errors in P frame
[mp2 @ 0x387da20] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mpeg2video @ 0x387e540] Warning MVs not available
[mpeg2video @ 0x387e540] concealing 60 DC, 60 AC, 60 MV errors in P frame
[mpeg2video @ 0x387e540] Warning MVs not available:00:01.92 bitrate=
328.6kbits/s
[mpeg2video @ 0x387e540] concealing 83 DC, 83 AC, 83 MV errors in P frame
[mpeg2video @ 0x387e540] 00 motion_type at 37 23
[mpeg2video @ 0x387e540] Warning MVs not available
[mpeg2video @ 0x387e540] concealing 88 DC, 88 AC, 88 MV errors in P frame
[mpegts @ 0x3868e40] PES packet size mismatch
[mp2 @ 0x387da20] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mpeg2video @ 0x387e540] 00 motion_type at 5 33=00:00:02.83 bitrate=
394.1kbits/s
[mpeg2video @ 0x387e540] 00 motion_type at 2 34
[mpeg2video @ 0x387e540] slice mismatch
[mpeg2video @ 0x387e540] 00 motion_type at 7 35
[mpeg2video @ 0x387e540] 00 motion_type at 6 4
[mpeg2video @ 0x387e540] invalid cbp 0 at 1 5
[mpeg2video @ 0x387e540] 00 motion_type at 1 6
[mpeg2video @ 0x387e540] ac-tex damaged at 1 7
[mpeg2video @ 0x387e540] 00 motion_type at 11 8
[mpeg2video @ 0x387e540] 00 motion_type at 2 9
[mpeg2video @ 0x387e540] 00 motion_type at 1 10
[mpeg2video @ 0x387e540] slice mismatch
[mpeg2video @ 0x387e540] ac-tex damaged at 40 12
[mpeg2video @ 0x387e540] 00 motion_type at 0 13
[mpeg2video @ 0x387e540] 00 motion_type at 0 14
[mpeg2video @ 0x387e540] 00 motion_type at 0 15
[mpeg2video @ 0x387e540] mb incr damaged
[mpeg2video @ 0x387e540] 00 motion_type at 0 17
[mpeg2video @ 0x387e540] 00 motion_type at 0 18
[mpeg2video @ 0x387e540] 00 motion_type at 0 19
[mpeg2video @ 0x387e540] 00 motion_type at 0 20
[mpeg2video @ 0x387e540] 00 motion_type at 1 21
[mpeg2video @ 0x387e540] 00 motion_type at 0 22
[mpeg2video @ 0x387e540] 00 motion_type at 0 23
[mpeg2video @ 0x387e540] 00 motion_type at 9 24
[mpeg2video @ 0x387e540] 00 motion_type at 0 25
[mpeg2video @ 0x387e540] 00 motion_type at 4 26
[mpeg2video @ 0x387e540] 00 motion_type at 0 27
[mpeg2video @ 0x387e540] 00 motion_type at 16 28
[mpeg2video @ 0x387e540] mb incr damaged
[mpeg2video @ 0x387e540] 00 motion_type at 31 30
[mpeg2video @ 0x387e540] Warning MVs not available
[mpeg2video @ 0x387e540] concealing 1408 DC, 1408 AC, 1408 MV errors in B
frame
[mpegts @ 0x3868e40] PES packet size mismatch
[mp2 @ 0x387da20] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mpeg2video @ 0x387e540] mb incr damagedkB time=00:00:09.17 bitrate=
667.4kbits/s
[mpeg2video @ 0x387e540] slice mismatch
[mpeg2video @ 0x387e540] end mismatch left=950 5510
[mpeg2video @ 0x387e540] slice mismatch
[mpeg2video @ 0x387e540] invalid cbp 0 at 16 5
[mpeg2video @ 0x387e540] invalid cbp 0 at 13 6
[mpeg2video @ 0x387e540] mb incr damaged
[mpeg2video @ 0x387e540] invalid cbp -1 at 28 7
[mpeg2video @ 0x387e540] ac-tex damaged at 28 8
[mpeg2video @ 0x387e540] ac-tex damaged at 15 10
[mpeg2video @ 0x387e540] ac-tex damaged at 34 10
[mpeg2video @ 0x387e540] invalid mb type in P Frame at 38 11
[mpeg2video @ 0x387e540] mb incr damaged
[mpeg2video @ 0x387e540] ac-tex damaged at 7 13
[mpeg2video @ 0x387e540] invalid mb type in P Frame at 31 14
[mpeg2video @ 0x387e540] mb incr damaged
[mpeg2video @ 0x387e540] ac-tex damaged at 12 17
[mpeg2video @ 0x387e540] slice mismatch
[mpeg2video @ 0x387e540] invalid cbp -1 at 8 19
[mpeg2video @ 0x387e540] mb incr damaged
[mpeg2video @ 0x387e540] slice mismatch
[mpeg2video @ 0x387e540] ac-tex damaged at 21 22
[mpeg2video @ 0x387e540] invalid mb type in P Frame at 16 22
[mpeg2video @ 0x387e540] mb incr damaged
[mpeg2video @ 0x387e540] invalid cbp -1 at 7 25
[mpeg2video @ 0x387e540] ac-tex damaged at 14 25
[mpeg2video @ 0x387e540] mb incr damaged
[mpeg2video @ 0x387e540] invalid cbp -1 at 40 27
[mpeg2video @ 0x387e540] ac-tex damaged at 40 29
[mpeg2video @ 0x387e540] invalid mb type in P Frame at 42 30
[mpeg2video @ 0x387e540] mb incr damaged
[mpeg2video @ 0x387e540] ac-tex damaged at 1 31
[mpeg2video @ 0x387e540] ac-tex damaged at 33 32
[mpeg2video @ 0x387e540] mb incr damaged
[mpeg2video @ 0x387e540] Warning MVs not available
[mpeg2video @ 0x387e540] concealing 1452 DC, 1452 AC, 1452 MV errors in P
frame
[mpeg2video @ 0x387e540] invalid mb type in P Frame at 37 3 bitrate=
689.6kbits/s
[mpeg2video @ 0x387e540] mb incr damaged
[mpeg2video @ 0x387e540] Warning MVs not available
[mpeg2video @ 0x387e540] concealing 308 DC, 308 AC, 308 MV errors in P frame
[mpeg2video @ 0x387e540] Warning MVs not available:00:39.27 bitrate=
720.8kbits/s
[mpeg2video @ 0x387e540] concealing 349 DC, 349 AC, 349 MV errors in B frame
[mpeg2video @ 0x387e540] 00 motion_type at 9 17=00:00:42.01 bitrate=
714.1kbits/s
[mpeg2video @ 0x387e540] Warning MVs not available
[mpeg2video @ 0x387e540] concealing 220 DC, 220 AC, 220 MV errors in B frame
[mpeg2video @ 0x387e540] invalid mb type in P Frame at 10 27bitrate=
726.2kbits/s
[mpeg2video @ 0x387e540] Warning MVs not available
[mpeg2video @ 0x387e540] concealing 220 DC, 220 AC, 220 MV errors in P frame
[mpegts @ 0x3868e40] PES packet size mismatch
[mp2 @ 0x387da20] Header missing    5928kB time=00:01:06.93 bitrate=
725.6kbits/s
Error while decoding stream #0:1: Invalid data found when processing input
[mpeg2video @ 0x387e540] mb incr damagedkB time=00:01:19.56 bitrate=
740.3kbits/s
[mpeg2video @ 0x387e540] Warning MVs not available
[mpeg2video @ 0x387e540] concealing 264 DC, 264 AC, 264 MV errors in B frame
[mpeg2video @ 0x387e540] Warning MVs not available:01:20.44 bitrate=
736.8kbits/s
[mpeg2video @ 0x387e540] concealing 60 DC, 60 AC, 60 MV errors in P frame
[mpegts @ 0x3868e40] PES packet size mismatch
[mp2 @ 0x387da20] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mpeg2video @ 0x387e540] Warning MVs not available:01:23.88 bitrate=
736.9kbits/s
[mpeg2video @ 0x387e540] concealing 360 DC, 360 AC, 360 MV errors in P frame
[mpegts @ 0x3868e40] PES packet size mismatch
[mp2 @ 0x387da20] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x387da20] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mpeg2video @ 0x387e540] Warning MVs not available
[mpeg2video @ 0x387e540] concealing 107 DC, 107 AC, 107 MV errors in P frame
[mpegts @ 0x3868e40] PES packet size mismatchme=00:01:27.48 bitrate=
727.8kbits/s
[mpeg2video @ 0x387e540] Warning MVs not available
[mpeg2video @ 0x387e540] concealing 26 DC, 26 AC, 26 MV errors in I frame
[mp2 @ 0x387da20] Header missing    7805kB time=00:01:28.18 bitrate=
725.1kbits/s
Error while decoding stream #0:1: Invalid data found when processing input
[mpeg2video @ 0x387e540] 00 motion_type at 15 1=00:01:30.45 bitrate=
725.7kbits/s
[mpeg2video @ 0x387e540] Warning MVs not available
[mpeg2video @ 0x387e540] concealing 440 DC, 440 AC, 440 MV errors in B frame
[mpeg2video @ 0x387e540] 00 motion_type at 37 3500:01:30.97 bitrate=
726.5kbits/s
[mpeg2video @ 0x387e540] 00 motion_type at 37 5
[mpeg2video @ 0x387e540] mb incr damaged
[mpeg2video @ 0x387e540] invalid cbp -1 at 5 7
[mpeg2video @ 0x387e540] 00 motion_type at 2 8
[mpeg2video @ 0x387e540] 00 motion_type at 1 9
[mpeg2video @ 0x387e540] ac-tex damaged at 8 11
[mpeg2video @ 0x387e540] 00 motion_type at 4 11
[mpeg2video @ 0x387e540] 00 motion_type at 0 12
[mpeg2video @ 0x387e540] mb incr damaged
[mpeg2video @ 0x387e540] ac-tex damaged at 28 14
[mpeg2video @ 0x387e540] ac-tex damaged at 36 15
[mpeg2video @ 0x387e540] ac-tex damaged at 1 16
[mpeg2video @ 0x387e540] 00 motion_type at 0 17
[mpeg2video @ 0x387e540] 00 motion_type at 7 18
[mpeg2video @ 0x387e540] mb incr damaged
[mpeg2video @ 0x387e540] 00 motion_type at 5 21
[mpeg2video @ 0x387e540] ac-tex damaged at 4 21
[mpeg2video @ 0x387e540] 00 motion_type at 29 22
[mpeg2video @ 0x387e540] 00 motion_type at 0 23
[mpeg2video @ 0x387e540] 00 motion_type at 0 24
[mpeg2video @ 0x387e540] mb incr damaged
[mpeg2video @ 0x387e540] 00 motion_type at 19 26
[mpeg2video @ 0x387e540] 00 motion_type at 0 27
[mpeg2video @ 0x387e540] 00 motion_type at 0 28
[mpeg2video @ 0x387e540] 00 motion_type at 0 29
[mpeg2video @ 0x387e540] 00 motion_type at 6 30
[mpeg2video @ 0x387e540] 00 motion_type at 0 31
[mpeg2video @ 0x387e540] 00 motion_type at 20 32
[mpeg2video @ 0x387e540] mb incr damaged
[mpeg2video @ 0x387e540] 00 motion_type at 10 34
[mpeg2video @ 0x387e540] 00 motion_type at 0 35
[mpeg2video @ 0x387e540] Warning MVs not available
[mpeg2video @ 0x387e540] concealing 1232 DC, 1232 AC, 1232 MV errors in P
frame

And then it breaks at some point


More information about the ffmpeg-user mailing list