[FFmpeg-user] FLV TO MP3 - memory spike

Karthik Babu Kantipudi karthik at cytrion.com
Fri Jan 24 05:47:08 CET 2014


Hi  ,

Please find the console output below .

# ffmpeg -loglevel  debug -i 
rtmp://localhost:1935/venomcaster/venom_out_1 -f mp3 - > /dev/null
ffmpeg version N-59995-g4014b40 Copyright (c) 2000-2014 the FFmpeg 
developers
   built on Jan 22 2014 18:59:49 with gcc 4.8 (Ubuntu/Linaro 
4.8.1-10ubuntu9)
   configuration: --enable-libmp3lame
   libavutil      52. 63.100 / 52. 63.100
   libavcodec     55. 48.101 / 55. 48.101
   libavformat    55. 25.100 / 55. 25.100
   libavdevice    55.  5.102 / 55.  5.102
   libavfilter     4.  1.100 /  4.  1.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging 
level) with argument 'debug'.
Reading option '-i' ... matched as input file with argument 
'rtmp://localhost:1935/venomcaster/venom_out_1'.
Reading option '-f' ... matched as option 'f' (force format) with 
argument 'mp3'.
Reading option '-' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file 
rtmp://localhost:1935/venomcaster/venom_out_1.
Successfully parsed a group of options.
Opening an input file: rtmp://localhost:1935/venomcaster/venom_out_1.
[rtmp @ 0x324aec0] Handshaking...
[rtmp @ 0x324aec0] Type answer 3
[rtmp @ 0x324aec0] Server version 3.0.1.1
[rtmp @ 0x324aec0] Proto = rtmp, path = /venomcaster/venom_out_1, app = 
venomcaster, fname = venom_out_1
[rtmp @ 0x324aec0] Server bandwidth = 2500000
[rtmp @ 0x324aec0] Client bandwidth = 2500000
[rtmp @ 0x324aec0] New incoming chunk size = 4096
[rtmp @ 0x324aec0] Creating stream...
[rtmp @ 0x324aec0] Sending play command for 'venom_out_1'
[flv @ 0x324a900] Format flv probed with size=2048 and score=100
[flv @ 0x324a900] Before avformat_find_stream_info() pos: 13 bytes 
read:2052 seeks:0
[flv @ 0x324a900] Stream discovered after head already parsed
[flv @ 0x324a900] max_analyze_duration 5000000 reached at 5000000 
microseconds
[flv @ 0x324a900] Could not find codec parameters for stream 0 (Video: 
none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' 
options
[flv @ 0x324a900] After avformat_find_stream_info() pos: 80292 bytes 
read:80292 seeks:0 frames:1003
Input #0, flv, from 'rtmp://localhost:1935/venomcaster/venom_out_1':
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0, 0, 1/1000: Video: none, 1k tbr, 1k tbn, 1k tbc
     Stream #0:1, 1002, 1/1000: Audio: nellymoser, 44100 Hz, mono, flt
     Stream #0:2, 1, 1/1000: Data: none, 0/1
Successfully opened the file.
Parsing a group of options: output file -.
Applying option f (force format) with argument mp3.
Successfully parsed a group of options.
Opening an output file: -.
Successfully opened the file.
detected 8 logical cores
[graph 0 input from stream 0:1 @ 0x32c19c0] Setting 'time_base' to value 
'1/44100'
[graph 0 input from stream 0:1 @ 0x32c19c0] Setting 'sample_rate' to 
value '44100'
[graph 0 input from stream 0:1 @ 0x32c19c0] Setting 'sample_fmt' to 
value 'flt'
[graph 0 input from stream 0:1 @ 0x32c19c0] Setting 'channel_layout' to 
value '0x4'
[graph 0 input from stream 0:1 @ 0x32c19c0] tb:1/44100 samplefmt:flt 
samplerate:44100 chlayout:0x4
[audio format for output stream 0:0 @ 0x324a7e0] Setting 'sample_fmts' 
to value 's32p|fltp|s16p'
[audio format for output stream 0:0 @ 0x324a7e0] Setting 'sample_rates' 
to value '44100|48000|32000|22050|24000|16000|11025|12000|8000'
[audio format for output stream 0:0 @ 0x324a7e0] Setting 
'channel_layouts' to value '0x4|0x3'
[audio format for output stream 0:0 @ 0x324a7e0] auto-inserting filter 
'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the 
filter 'audio format for output stream 0:0'
[AVFilterGraph @ 0x32517c0] query_formats: 4 queried, 6 merged, 3 
already done, 0 delayed
[auto-inserted resampler 0 @ 0x32529e0] ch:1 chl:mono fmt:flt r:44100Hz 
-> ch:1 chl:mono fmt:fltp r:44100Hz
Output #0, mp3, to 'pipe:':
   Metadata:
     TSSE            : Lavf55.25.100
     Stream #0:0, 0, 1/90000: Audio: mp3 (libmp3lame), 44100 Hz, mono, fltp
Stream mapping:
   Stream #0:1 -> #0:0 (nellymoser -> libmp3lame)
Press [q] to stop, [?] for help
[libmp3lame @ 0x3251100] Trying to remove 47 more samples than there are 
in the queue
size=      93kB time=00:00:11.83 bitrate=  64.2kbits/s
video:0kB audio:93kB subtitle:0 global headers:0kB muxing overhead 0.047430%
2039 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x32d38c0] Statistics: 0 seeks, 454 writeouts
[AVIOContext @ 0x324cea0] Statistics: 163172 bytes read, 0 seeks
[rtmp @ 0x324aec0] Deleting stream...

On Friday 24 January 2014 09:55 AM, Carl Eugen Hoyos wrote:
> karthik <at> cytrion.com <karthik <at> cytrion.com> writes:
>
>> I am converting a live  RTMP stream (audio format - nelly
>> moser) to mp3 stream and the memory consumption increases
>> with in less than 3 minutes and continues to increase
>> until ffmpeg crashes .
> (Backtrace missing.)
>
>> The command is
>> ffmpeg -i rtmp://localhost:1935/xyz/myStream -f mp3 - >namedpipe
> Complete, uncut console output missing.
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

-- 
Thanks & Regards
---------------------------------------
Karthik Babu Kantipudi
Director | Cytrion Software Solutions Pvt Ltd.
No-6-2-293/82/ A- 448, Road No-20, Jubilee Hills, Hyderabad, INDIA 500 033
Office: +91-40-65350395 | Mobile: +91-9704086642
www.cytrion.com <http://www.cytrion.com/>



More information about the ffmpeg-user mailing list