Opened 2 months ago

Last modified 3 weeks ago

#7907 new defect

[hls @ 0x6a30180] Unable to find mapping variant stream av_interleaved_write_frame(): Cannot allocate memory

Reported by: geekteq Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: hls
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug: CentOS FFMpeg (compiled according to FFMpeg.org instructions) fails with the following message -- [hls @ 0x6a30180] Unable to find mapping variant stream
av_interleaved_write_frame(): Cannot allocate memory
How to reproduce:

% ffmpeg -y -i "udp://224.0.0.0:5000?overrun_nonfatal=1&fifo_size=100000000" -flags +cgop -vsync 1 \
-c:v:0 libx264 -vf:0 "yadif=0:-1:1,format=yuv420p" -b:v:0 2048k -c:a:0 libfdk_aac -s:v:0 1280x720 -shortest -b:a:0 128k -r:v:0 30 -g:v:0 60 -force_key_frames "expr:gte(t,n_forced*2)" -preset:0 faster -crf:0 23 -profile:v:0 high -level:v:0 4.0 \
-c:v:1 libx264 -vf:1 "yadif=0:-1:1,format=yuv420p" -b:v:1 1024k -c:a:1 libfdk_aac -s:v:1 720x480 -shortest -b:a:1 128k -r:v:1 30 -g:v:1 60 -force_key_frames "expr:gte(t,n_forced*2)" -preset:1 faster -crf:1 24 -profile:v:1 baseline -level:v:1 3.1 \
-c:v:2 libx264 -vf:2 "yadif=0:-1:1,format=yuv420p" -b:v:2 512k  -c:a:2 libfdk_aac -s:v:2 640x360 -shortest -b:a:2 128k -r:v:2 30 -g:v:2 60 -force_key_frames "expr:gte(t,n_forced*2)" -preset:2 faster -crf:2 25 -profile:v:2 baseline -level:v:2 3 \
-sn -ac 2 -flags -global_header -hls_time 6 -hls_list_size 10 -start_number 1 -method PUT -threads 2 -thread_type slice \
-hls_flags delete_segments \
-map 0:v -map 0:a -map 0:v -map 0:a -map 0:v -map 0:a \
-var_stream_map "v:0,a:0 v:1,a:1 v:2,a:2" \
-f hls -master_pl_name "master.m3u8" \
"https://pxxx.net/xxx/xxx/xxx-%v-%v.m3u8"

ffmpeg version 4.1.3 (have tested latest daily as well and the same issue appears) although 4.1.3 dumps core while latest does not, and also complains about renaming files. Currently reverting 4.0.2 to see regression.
built on CentOS 7.6

The same command line works flawlessly on Ubuntu LTS 18.04 -
Hardware is a HP server with 64 GB Ram and 24 cores so there's enough RAM and CPU..

Change History (2)

comment:1 Changed 3 weeks ago by doubleb

try

-map 0:v -map 0:a -map 0:v -map 0:a -map 0:v -map 0:a

instead

-map 0:v:0 -map 0:a:0 -map 0:v:1 -map 0:a:1 -map 0:v:2 -map 0:a:2

and just a remark regarding "and also complains about renaming files": do you use intentionally %v two times in the output file name? I am afraid it was not handled correctly in previous versions but since some days ago.

comment:2 Changed 3 weeks ago by cehoyos

  • Component changed from ffmpeg to undetermined
  • Keywords hls added
  • Version changed from 4.1 to unspecified

Is network input required to reproduce the issue?
Are the filters required to reproduce the issue?

To make this a valid ticket, please test current FFmpeg git head and provide the (simplified) command line you tested together with the complete, uncut console output.

Note: See TracTickets for help on using tickets.