[libav-bugs] [Bug 389] New: Libav hangs, eating 100% CPU

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Thu Nov 1 10:51:45 CET 2012


https://bugzilla.libav.org/show_bug.cgi?id=389

           Summary: Libav hangs, eating 100% CPU
           Product: Libav
           Version: git HEAD
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: Normal
         Component: general
        AssignedTo: bugzilla at libav.org
        ReportedBy: dukavia at gmail.com


Avconv hangs and starts eating memory and CPU time. Command line may not be
exactly right, but it should just fail if cannot encoder.

$ avconv -y -i avconv_hangs_eating_cpu.mp4 -acodec libfaac -ab 64000 -ar 44100
-f mp4 /tmp/tmp.mp4
avconv version 0.8.3-6:0.8.3-1~bpo60+1fsio1, Copyright (c) 2000-2012 the Libav
developers
  built on Jun 21 2012 15:54:53 with gcc 4.4.5
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1de29c0] max_analyze_duration reached
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'avconv_hangs_eating_cpu.mp4':
  Metadata:
    major_brand     : M4A 
    minor_version   : 1
    compatible_brands: M4A mp42isom
    creation_time   : 2007-02-19 18:02:36
    composer        : Rick Gilbert
    comment         : Rick Gilbert presents the inaugural Power Speaking
podcast. The first segment gives executive level insights on how to deliver bad
news.
The second segment is a report on the Sundance Film Festival.
    title           : Power Speaking Podcast 1
    artist          : gtm
    album           : Podcast One
  Duration: 00:11:14.60, start: 0.000000, bitrate: 77 kb/s
    Chapter #0.0: start 0.000000, end 13.000000
    Metadata:
      title           : Start
    Chapter #0.1: start 13.000000, end 107.450000
    Metadata:
      title           : Introduction
    Chapter #0.2: start 107.450000, end 117.782993
    Metadata:
      title           : Delivering Bad News
    Chapter #0.3: start 117.782993, end 131.450000
    Metadata:
      title           : John Kispert
    Chapter #0.4: start 131.450000, end 161.782993
    Metadata:
      title           : Steve Blank
    Chapter #0.5: start 161.782993, end 195.116984
    Metadata:
      title           : Dan Warmenhoven
    Chapter #0.6: start 195.116984, end 238.999977
    Metadata:
      title           : Bad News Summary
    Chapter #0.7: start 238.999977, end 299.999977
    Metadata:
      title           : Sundance Introduction
    Chapter #0.8: start 299.999977, end 318.019977
    Metadata:
      title           : Black Snake Moan
    Chapter #0.9: start 318.019977, end 384.645986
    Metadata:
      title           : (null)
    Chapter #0.10: start 384.645986, end 463.332993
    Metadata:
      title           : Girl 27
    Chapter #0.11: start 463.332993, end 549.332993
    Metadata:
      title           : For the Bible Tells Me So
    Chapter #0.12: start 549.332993, end 599.666984
    Metadata:
      title           : Rocket Science
    Chapter #0.13: start 599.666984, end 652.999977
    Metadata:
      title           : Sundance Summary
    Chapter #0.14: start 652.999977, end 659.666984
    Metadata:
      title           : Power Speaking Web Site
    Chapter #0.15: start 659.666984, end 674.608345
    Metadata:
      title           : Production Crew
    Stream #0.0(eng): Subtitle: tx3g / 0x67337874, 0 kb/s
    Metadata:
      creation_time   : 2007-02-19 18:02:36
    Stream #0.1(eng): Subtitle: tx3g / 0x67337874, 0 kb/s
    Metadata:
      creation_time   : 2007-02-19 18:02:36
    Stream #0.2(eng): Audio: aac, 44100 Hz, stereo, s16, 64 kb/s
    Metadata:
      creation_time   : 2007-02-19 18:02:36
    Stream #0.3(eng): Video: mjpeg, yuvj420p, 300x300 [PAR 1:1 DAR 1:1], 10
kb/s, 0.04 fps, 44100 tbr, 44100 tbn, 44100 tbc
    Metadata:
      creation_time   : 2007-02-19 18:02:36
[buffer @ 0x1de7c20] w:300 h:300 pixfmt:yuvj420p
[libx264 @ 0x1e09600] using SAR=1/1
[libx264 @ 0x1e09600] MB rate (15920100) > level limit (983040)
[libx264 @ 0x1e09600] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle
Cache64
[libx264 @ 0x1e09600] profile Main, level 5.1
[libx264 @ 0x1e09600] 264 - core 120 r2151 a3f4407 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=3
deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00
mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=6 sliced_threads=0 nr=0 decimate=1
interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=0
b_adapt=1 b_bias=0 direct=1 weightb=0 open_gop=1 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.25 aq=1:1.00
Output #0, mp4, to '/tmp/tmp.mp4':
  Metadata:
    major_brand     : M4A 
    minor_version   : 1
    compatible_brands: M4A mp42isom
    creation_time   : 2007-02-19 18:02:36
    composer        : Rick Gilbert
    comment         : Rick Gilbert presents the inaugural Power Speaking
podcast. The first segment gives executive level insights on how to deliver bad
news.
The second segment is a report on the Sundance Film Festival.
    title           : Power Speaking Podcast 1
    artist          : gtm
    album           : Podcast One
    encoder         : Lavf53.21.0
    Chapter #0.0: start 0.000000, end 13.000000
    Metadata:
      title           : Start
    Chapter #0.1: start 13.000000, end 107.450000
    Metadata:
      title           : Introduction
    Chapter #0.2: start 107.450000, end 117.782993
    Metadata:
      title           : Delivering Bad News
    Chapter #0.3: start 117.782993, end 131.450000
    Metadata:
      title           : John Kispert
    Chapter #0.4: start 131.450000, end 161.782993
    Metadata:
      title           : Steve Blank
    Chapter #0.5: start 161.782993, end 195.116984
    Metadata:
      title           : Dan Warmenhoven
    Chapter #0.6: start 195.116984, end 238.999977
    Metadata:
      title           : Bad News Summary
    Chapter #0.7: start 238.999977, end 299.999977
    Metadata:
      title           : Sundance Introduction
    Chapter #0.8: start 299.999977, end 318.019977
    Metadata:
      title           : Black Snake Moan
    Chapter #0.9: start 318.019977, end 384.645986
    Metadata:
      title           : (null)
    Chapter #0.10: start 384.645986, end 463.332993
    Metadata:
      title           : Girl 27
    Chapter #0.11: start 463.332993, end 549.332993
    Metadata:
      title           : For the Bible Tells Me So
    Chapter #0.12: start 549.332993, end 599.666984
    Metadata:
      title           : Rocket Science
    Chapter #0.13: start 599.666984, end 652.999977
    Metadata:
      title           : Sundance Summary
    Chapter #0.14: start 652.999977, end 659.666984
    Metadata:
      title           : Power Speaking Web Site
    Chapter #0.15: start 659.666984, end 674.608345
    Metadata:
      title           : Production Crew
    Stream #0.0(eng): Video: libx264, yuvj420p, 300x300 [PAR 1:1 DAR 1:1],
q=-1--1, 44100 tbn, 44100 tbc
    Metadata:
      creation_time   : 2007-02-19 18:02:36
    Stream #0.1(eng): Audio: libfaac, 44100 Hz, stereo, s16, 64 kb/s
    Metadata:
      creation_time   : 2007-02-19 18:02:36
Stream mapping:
  Stream #0:3 -> #0:0 (mjpeg -> libx264)
  Stream #0:2 -> #0:1 (aac -> libfaac)
Press ctrl-c to stop encoding
^Came=    1 fps=  0 q=0.0 size=       0kB time=7.94 bitrate=   0.0kbits/s    
^Z


Avconv:

$ avconv -v 9 -loglevel 99 -i 
avconv version 0.8.3-6:0.8.3-1~bpo60+1abc1, Copyright (c) 2000-2012 the Libav
developers
  built on Jun 21 2012 15:54:53 with gcc 4.4.5
  configuration: --extra-version='6:0.8.3-1~bpo60+1abc1' --arch=amd64
--prefix=/usr --enable-vdpau --enable-bzlib --enable-frei0r --enable-gnutls
--enable-libcdio --enable-libgsm --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib
--enable-libvpx --enable-runtime-cpudetect --enable-libfreetype
--enable-libpulse --enable-libopenjpeg --enable-libfaac --enable-nonfree
--enable-gpl --enable-postproc --enable-swscale --enable-x11grab
--enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264
--enable-libdc1394 --enable-shared --disable-static
  libavutil    51. 22. 1 / 51. 22. 1
  libavcodec   53. 35. 0 / 53. 35. 0
  libavformat  53. 21. 0 / 53. 21. 0
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 15. 0 /  2. 15. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  52.  0. 0 / 52.  0. 0
Missing argument for option 'i'

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list