[FFmpeg-user] cannot allocate memory

Madovsky infos at madovsky.org
Mon Jun 6 10:17:11 CEST 2016


Hi,

for info a thread dated from march 11 2016 relates the same problem with 
amix.

I use amix in my command too

here is the log:


/usr/bin/sudo /usr/local/bin/ffmpeg -f lavfi -i 
"color=c=black:s=720x480:r=24" -loop 1 -r 24 -i "image.png" -fflags 
+genpts+igndts -thread_queue_size 16384 -i 
"Of6kQhQIsEJ3U6Eb6vHFzxs96hMtPMWA_REC" -fflags +genpts+igndts 
-thread_que ue_size 16384 -i "Of6kQhQIsEJ3U6Eb6vHFzxs96hMtPMWAR_REC" 
-filter_complex "[0:v][1:v] overlay=0:main_h-20 [base];[2:v] setpts=PTS 
-STARTPTS,scale=319:240,fps=24 [left];[3:v] 
setpts=PTS-STARTPTS,scale=320:240,fps=24 [right];[2:a] 
asetpts=PTS-STARTPTS,volume=4 [a2];[3:a] asetpts=PTS-STARTPTS,volume=4 
[a3];[base][left] o 
verlay=41:120,fade=in:0:200:alpha=0,drawtext=fontsize=10:fontcolor=#D8D8D8:fontfile=/usr/share/fonts/unifont.ttf:text='hello':x=41:y=((main_h-240)/2)+240 
[b 
ase2];[base2][right]overlay=360:120:eof_action=endall,fade=in:0:200:alpha=0,drawtext=fontsize=10:fontcolor=#D8D8D8:fontfile=/usr/share/fonts/unifont.ttf:text='welcome':x=360:y=((main 
_h-240)/2)+240;[a2][a3] amix=inputs=2:duration=longest [mosaic]" -map 
"[mosaic]" -acodec libfdk_aac -probesize 4096 -analyzeduration 4 
-dts_delta_threshold 0 -pix_fmt yuv420p -vcodec libope nh264 -profile:v 
baseline -level 3.0 -apad -vpad -async 1 -vsync 1 -r 24 -threads 0 
-movflags +faststart -f mp4 -y 'test.mp4'
ffmpeg version N-80183-g7c55f5d Copyright (c) 2000-2016 the FFmpeg 
developers
   built with gcc 5.3.1 (GCC) 20160406 (Red Hat 5.3.1-6)
   configuration: --enable-gpl --enable-nonfree --enable-libfaac 
--enable-libx264 --enable-libspeex --enable-librtmp --enable-libfreetype 
--enable-x11grab --enable-libfdk_aac --enable-libope nh264
   libavutil      55. 24.100 / 55. 24.100
   libavcodec     57. 44.100 / 57. 44.100
   libavformat    57. 37.101 / 57. 37.101
   libavdevice    57.  0.101 / 57.  0.101
   libavfilter     6. 46.100 /  6. 46.100
   libswscale      4.  1.100 /  4.  1.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
Input #0, lavfi, from 'color=c=black:s=720x480:r=24':
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x480 
[SAR 1:1 DAR 3:2], 24 tbr, 24 tbn
Input #1, png_pipe, from 
'/home/httpd/html/WebSites/www.boophone.com/files/neterviewBack.png':
   Duration: N/A, bitrate: N/A
     Stream #1:0: Video: png, pal8(pc), 79x20, 25 fps, 25 tbr, 25 tbn
Input #2, mov,mp4,m4a,3gp,3g2,mj2, from 
'/home/httpd/html/WebSites/www.boophone.com/files/liveStreams/Of6kQhQIsEJ3U6Eb6vHFzxs96hMtPMWA_REC':
   Metadata:
     major_brand     : f4v
     minor_version   : 0
     compatible_brands: isommp42m4v
     creation_time   : 2021-09-26 02:28:08
   Duration: 00:00:29.87, start: 0.000000, bitrate: 63 kb/s
     Stream #2:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), 
yuv420p(tv), 320x240 [SAR 1:1 DAR 4:3], 50 kb/s, 7.06 fps, 24 tbr, 1k 
tbn (default)
     Metadata:
       creation_time   : 2021-09-26 02:28:08
       handler_name    : MainConcept
       encoder         : AVC Coding
     Stream #2:1(eng): Audio: speex (spex / 0x78657073), 16000 Hz, mono, 
s16, 3 kb/s (default)
     Metadata:
       creation_time   : 2021-09-26 02:28:08
       handler_name    : Speex Handler
     Stream #2:2(eng): Data: none (amf0 / 0x30666D61) (default)
     Metadata:
       creation_time   : 2021-09-26 02:28:08
       handler_name    : Timed Metadata Handler
Input #3, mov,mp4,m4a,3gp,3g2,mj2, from 
'/home/httpd/html/WebSites/www.boophone.com/files/liveStreams/Of6kQhQIsEJ3U6Eb6vHFzxs96hMtPMWAR_REC':
   Metadata:
     major_brand     : f4v
     minor_version   : 0
     compatible_brands: isommp42m4v
     creation_time   : 2021-09-26 02:28:08
   Duration: 00:00:34.73, start: 0.000000, bitrate: 38 kb/s
     Stream #3:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), 
yuv420p(tv), 320x240 [SAR 1:1 DAR 4:3], 25 kb/s, 6.51 fps, 15 tbr, 1k 
tbn (default)
     Metadata:
       creation_time   : 2021-09-26 02:28:08
       handler_name    : MainConcept
       encoder         : AVC Coding
     Stream #3:1(eng): Audio: speex (spex / 0x78657073), 16000 Hz, mono, 
s16, 4 kb/s (default)
     Metadata:
       creation_time   : 2021-09-26 02:28:08
       handler_name    : Speex Handler
     Stream #3:2(eng): Data: none (amf0 / 0x30666D61) (default)
     Metadata:
       creation_time   : 2021-09-26 02:28:08
       handler_name    : Timed Metadata Handler
-async is forwarded to lavfi similarly to -af 
aresample=async=1:min_hard_comp=0.100000:first_pts=0.
     Last message repeated 1 times
[libopenh264 @ 0x3204fa0] [OpenH264] this = 0x0x3a190b0, 
Warning:bEnableFrameSkip = 0,bitrate can't be controlled for 
RC_QUALITY_MODE,RC_BITRATE_MODE and RC_TIMESTAMP_MODE without enabling  
skip frame.
[mp4 @ 0x319dbc0] Using AVStream.codec to pass codec parameters to 
muxers is deprecated, use AVStream.codecpar instead.
     Last message repeated 1 times
Output #0, mp4, to 'test.mp4':
   Metadata:
     encoder         : Lavf57.37.101
     Stream #0:0: Video: h264 (libopenh264) ([33][0][0][0] / 0x0021), 
yuv420p, 720x480 [SAR 1:1 DAR 3:2], q=2-31, 200 kb/s, 24 fps, 12288 tbn 
(default)
     Metadata:
       encoder         : Lavc57.44.100 libopenh264
     Side data:
       cpb: bitrate max/min/avg: 200000/0/200000 buffer size: 0 
vbv_delay: -1
     Stream #0:1: Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040), 
16000 Hz, mono, s16, 34 kb/s (default)
     Metadata:
       encoder         : Lavc57.44.100 libfdk_aac
Stream mapping:
   Stream #0:0 (rawvideo) -> overlay:main
   Stream #1:0 (png) -> overlay:overlay
   Stream #2:0 (h264) -> setpts
   Stream #2:1 (libspeex) -> asetpts
   Stream #3:0 (h264) -> setpts
   Stream #3:1 (libspeex) -> asetpts
   drawtext -> Stream #0:0 (libopenh264)
   amix -> Stream #0:1 (libfdk_aac)
Press [q] to stop, [?] for help
Error while decoding stream #3:1: Cannot allocate memory
     Last message repeated 373 times
Error while decoding stream #3:1: Cannot allocate memory.19 bitrate= 
165.4kbits/s speed=16.4x
     Last message repeated 435 times
[Parsed_overlay_11 @ 0x331af60] [framesync @ 0x331b048] Buffer queue 
overflow, dropping.16.5x
     Last message repeated 5 times
Error while decoding stream #3:1: Cannot allocate memory
     Last message repeated 371 times
Error while decoding stream #3:1: Cannot allocate memory.93 bitrate= 
352.5kbits/
     Last message repeated 436 times
Error while filtering: Cannot allocate memory
[mp4 @ 0x319dbc0] Starting second pass: moving the moov atom to the 
beginning of
frame=  717 fps=371 q=-0.0 Lsize=    1472kB time=00:00:34.24 bitrate= 
352.3kbits
video:1311kB audio:147kB subtitle:0kB other streams:0kB global 
headers:0kB muxin



More information about the ffmpeg-user mailing list