[libav-bugs] [Bug 288] New: avplay consumes all the memory available

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Fri May 11 01:13:07 CEST 2012


http://bugzilla.libav.org/show_bug.cgi?id=288

           Summary: avplay consumes all the memory available
           Product: Libav
           Version: git HEAD
          Platform: X86
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: Normal
         Component: utilities
        AssignedTo: bugzilla at libav.org
        ReportedBy: nenjordi at gmail.com


When playing a rtmp file from rubberducky (git 4ba498c) served from
libav/hakzsam (https://github.com/hakzsam/libav 394dbde) with libav (git
1de53d0) avplay after a playing for a while image freezes and memory usage
scales abruptly until swapping.
File played http://dl.dropbox.com/u/20290701/Battleship.mkv

Computer characteristics
========================
Debian wheezy amd64 up to date
amd64 x2 5600+
4GB Ram
Radeon HD2600xt with propietary drivers fglrx
gcc --version  gcc (Debian 4.6.3-1) 4.6.3
librtmp0 Versión: 2.4+20111222.git4e06e21-1 (From repos)


TOP OUTPUT
==========
  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND           
 6898 nenjordi  20   0 6675m 2,4g  14m S   6,6 62,5   0:07.59 avplay            
22539 nenjordi  20   0 1453m 592m 4364 D   0,7 14,9  21:25.50 firefox           
 1567 root      20   0  704m 319m 265m D   0,3  8,1  72:12.42 Xorg              
 6893 nenjordi  20   0  121m  55m 2176 D  64,8  1,4   0:27.10 avconv            
13496 nenjordi  20   0 1767m  19m 4972 D   0,0  0,5  19:22.34 ktorrent          
22269 nenjordi  20   0  514m  17m 2900 D   0,0  0,4   1:55.28 konversation      
 3140 nenjordi  20   0  382m  15m 2948 S   0,0  0,4   1:34.12 konsole           
 6855 nenjordi  20   0  263m  10m 6764 S   0,0  0,3   0:00.22 kio_http          
 2998 nenjordi  20   0  402m 6776 2236 S   0,0  0,2   0:35.14 yakuake           
 3128 nenjordi  20   0  813m 6716 1756 S   0,0  0,2   0:55.93 awn-applet        
 2991 nenjordi  20   0  567m 6240 1144 S   0,0  0,2   0:20.59 dropbox         

avplay libav:master output
==========================
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
HandleMetadata, error decoding meta data packet                                 
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!B f=0/0                 
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!                        
DECODING ERROR, IGNORING BYTES UNTIL NEXT KNOWN PATTERN!
......



rubberducky output
==================
nenjordi at DELL:~/DEV/rubberducky$ ./rubberducky 
Starting server at localhost:1935
(0) Accepted connection from 6
client uptime: 34944876
player version: 0.0.0.0
Great success: client handshake successful!
Sending ack window for size 2500000
sending clientbw, rx: 3189, tx 3089
app: application
tcUrl: rtmp://localhost:1935/application
control 7, value 34944886
publishing battleship (id 1)
(1) Accepted connection from 7
client uptime: 34947606
player version: 0.0.0.0
Great success: client handshake successful!
Sending ack window for size 2500000
sending clientbw, rx: 3270, tx 3089
app: application
tcUrl: rtmp://localhost:1935/application
control 7, value 34947606
Set Ack Size: 2500000
setting buffer length: stream 0, 300-ms buffer
Setting outbound chunk size to 1400 bytes
Sending metadata!
Playing video battleship
setting buffer length: stream 1, 30000-ms buffer
Sending ack for 2500017 bytes
Sending ack for 5000068 bytes
Sending ack for 7500104 bytes
Sending ack for 10000104 bytes
Sending ack for 12500180 bytes
Sending ack for 15000227 bytes
Sending ack for 17500232 bytes
ZOMGBROKEN
Error -104, disconnecting fd 7 
Sending ack for 20000242 bytes
Sending ack for 22500265 bytes
Sending ack for 25000301 bytes
Sending ack for 27500370 bytes
Sending ack for 30000423 bytes
Sending ack for 32500489 bytes
Sending ack for 35000515 bytes
Sending ack for 37500562 bytes
Sending ack for 40000616 bytes
Sending ack for 42500628 bytes
Sending ack for 45000737 bytes
Sending ack for 47500747 bytes
Sending ack for 50000821 bytes
Sending ack for 52500828 bytes
Sending ack for 55000928 bytes
Sending ack for 57500984 bytes
Sending ack for 60000985 bytes
Sending ack for 62500995 bytes
Sending ack for 65001067 bytes
Sending ack for 67501076 bytes
Sending ack for 70001098 bytes
Sending ack for 72501124 bytes
Deleting stream 1
ZOMGBROKEN
Error -5, disconnecting fd 6 

libav-hakzsam output
====================
avconv version v0.8-1507-g394dbde, Copyright (c) 2000-2012 the Libav developers
  built on May 10 2012 19:39:10 with gcc 4.6.3
Input #0, matroska,webm, from '../TESTS/RTSPSAMPLES/Battleship.mkv':
  Metadata:
    title           : Battleship - Theatrical Trailer 2
    MAJOR_BRAND     : mp42
    MINOR_VERSION   : 0
    COMPATIBLE_BRANDS: mp42isomavc1
    CREATION_TIME   : 2012-03-29 08:40:36
    GENRE           : Trailer
    ARTIST          : Universal Pictures
    DATE            : 2012
    ENCODER         : Lavf53.31.100
  Duration: 00:02:29.30, start: 0.000000, bitrate: N/A
    Stream #0.0(und): Video: h264 (High), yuv420p, 1920x816 [PAR 1:1 DAR
40:17], 30k fps, 30k tbr, 1k tbn, 180k tbc (default)
    Metadata:
      CREATION_TIME   : 2012-03-29 08:40:36
      LANGUAGE        : und
      HANDLER_NAME    : 
    Stream #0.1(eng): Audio: vorbis, 44100 Hz, stereo, s16 (default)
    Metadata:
      CREATION_TIME   : 2012-03-29 08:40:36
      LANGUAGE        : eng
      HANDLER_NAME    : 
[buffer @ 0x2030f60] w:1920 h:816 pixfmt:yuv420p
Output #0, flv, to 'rtmp://localhost:1935/application/battleship':
  Metadata:
    title           : Battleship - Theatrical Trailer 2
    MAJOR_BRAND     : mp42
    MINOR_VERSION   : 0
    COMPATIBLE_BRANDS: mp42isomavc1
    CREATION_TIME   : 2012-03-29 08:40:36
    GENRE           : Trailer
    ARTIST          : Universal Pictures
    DATE            : 2012
    encoder         : Lavf54.2.0
    Stream #0.0(und): Video: flv, yuv420p, 1920x816 [PAR 1:1 DAR 40:17],
q=2-31, 200 kb/s, 1k tbn, 1k tbc (default)
    Metadata:
      CREATION_TIME   : 2012-03-29 08:40:36
      LANGUAGE        : und
      HANDLER_NAME    : 
    Stream #0.1(eng): Audio: adpcm_swf, 44100 Hz, stereo, s16, 352 kb/s
(default)
    Metadata:
      CREATION_TIME   : 2012-03-29 08:40:36
      LANGUAGE        : eng
      HANDLER_NAME    : 
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> flv)
  Stream #0:1 -> #0:1 (vorbis -> adpcm_swf)
Press ctrl-c to stop encoding
frame= 3577 fps= 23 q=31.0 Lsize=   71741kB time=149.19 bitrate=3939.2kbits/s   
video:65187kB audio:6448kB global headers:0kB muxing overhead 0.148917%

-- 
Configure bugmail: http://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