[FFmpeg-trac] #6463(undetermined:new): av_interleaved_write_frame(): Cannot allocate memory

FFmpeg trac at avcodec.org
Fri Mar 15 00:10:10 EET 2019


#6463: av_interleaved_write_frame(): Cannot allocate memory
-------------------------------------+-------------------------------------
             Reporter:  epollia      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by scanlime):

 I'm having this problem on a freshly compiled git snapshot
 (N-93335-ga8c5ae4), without any UDP networking involved. The source is an
 MKV file on a linux cifsd mount, which appears as a local path to ffmpeg,
 and the destination is an MP4 file on a local ZFS mount.

 I can provide the file that reproduces this but be advised it's 418
 Gbytes. It crashes reliably, but the exact location seems to change
 slightly.

 The host machine is a dual socket Xeon E5-2620 with 72GB ECC RAM.

 {{{
 ffmpeg version N-93335-ga8c5ae4 Copyright (c) 2000-2019 the FFmpeg
 developers
   built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
   configuration: --prefix=/home/micah/ffmpeg_build --pkg-config-
 flags=--static --extra-cflags=-I/home/micah/ffmpeg_build/include --extra-
 ldflags=-L/home/micah/ffmpeg_build/lib --extra-libs='-lpthread -lm'
 --bindir=/home/micah/bin --enable-gpl --enable-libaom --enable-libass
 --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-
 libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-
 libx265 --enable-nonfree
   libavutil      56. 26.100 / 56. 26.100
   libavcodec     58. 47.103 / 58. 47.103
   libavformat    58. 26.101 / 58. 26.101
   libavdevice    58.  6.101 / 58.  6.101
   libavfilter     7. 48.100 /  7. 48.100
   libswscale      5.  4.100 /  5.  4.100
   libswresample   3.  4.100 /  3.  4.100
   libpostproc    55.  4.100 / 55.  4.100
 Input #0, matroska,webm, from '/mnt/podcaster/2019-02-28_15-04-50.mkv':
   Metadata:
     ENCODER         : Lavf57.83.100
   Duration: 271:31:45.03, start: 0.000000, bitrate: 3664 kb/s
     Stream #0:0: Video: h264 (Main), yuv420p(tv, bt470bg/unknown/unknown,
 progressive), 1920x1080 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 1k tbn, 60 tbc
 (default)
     Metadata:
       DURATION        : 271:31:45.033000000
     Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp (default)
     Metadata:
       title           : Track1
       DURATION        : 271:31:44.981000000
 Output #0, mp4, to '/filebox/shares/vidbox/lapser/auto/temp-mnt-
 podcaster-2019-02-28_15-04-50-remux.mp4':
   Metadata:
     encoder         : Lavf58.26.101
     Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv,
 bt470bg/unknown/unknown, progressive), 1920x1080 [SAR 1:1 DAR 16:9],
 q=2-31, 30 fps, 30 tbr, 16k tbn, 1k tbc (default)
     Metadata:
       DURATION        : 271:31:45.033000000
     Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo,
 fltp (default)
     Metadata:
       title           : Track1
       DURATION        : 271:31:44.981000000
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 av_interleaved_write_frame(): Cannot allocate memory=198:48:54.50
 bitrate=3659.9kbits/s speed= 190x
 ffmpeg version N-93335-ga8c5ae4 Copyright (c) 2000-2019 the FFmpeg
 developers
   built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
   configuration: --prefix=/home/micah/ffmpeg_build --pkg-config-
 flags=--static --extra-cflags=-I/home/micah/ffmpeg_build/include --extra-
 ldflags=-L/home/micah/ffmpeg_build/lib --extra-libs='-lpthread -lm'
 --bindir=/home/micah/bin --enable-gpl --enable-libaom --enable-libass
 --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-
 libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-
 libx265 --enable-nonfree
   libavutil      56. 26.100 / 56. 26.100
   libavcodec     58. 47.103 / 58. 47.103
   libavformat    58. 26.101 / 58. 26.101
   libavdevice    58.  6.101 / 58.  6.101
   libavfilter     7. 48.100 /  7. 48.100
   libswscale      5.  4.100 /  5.  4.100
   libswresample   3.  4.100 /  3.  4.100
   libpostproc    55.  4.100 / 55.  4.100
 Input #0, matroska,webm, from '/mnt/podcaster/2019-02-28_15-04-50.mkv':
   Metadata:
     ENCODER         : Lavf57.83.100
   Duration: 271:31:45.03, start: 0.000000, bitrate: 3664 kb/s
     Stream #0:0: Video: h264 (Main), yuv420p(tv, bt470bg/unknown/unknown,
 progressive), 1920x1080 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 1k tbn, 60 tbc
 (default)
     Metadata:
       DURATION        : 271:31:45.033000000
     Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp (default)
     Metadata:
       title           : Track1
       DURATION        : 271:31:44.981000000
 Output #0, mp4, to '/filebox/shares/vidbox/lapser/auto/temp-mnt-
 podcaster-2019-02-28_15-04-50-remux.mp4':
   Metadata:
     encoder         : Lavf58.26.101
     Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv,
 bt470bg/unknown/unknown, progressive), 1920x1080 [SAR 1:1 DAR 16:9],
 q=2-31, 30 fps, 30 tbr, 16k tbn, 1k tbc (default)
     Metadata:
       DURATION        : 271:31:45.033000000
     Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo,
 fltp (default)
     Metadata:
       title           : Track1
       DURATION        : 271:31:44.981000000
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 av_interleaved_write_frame(): Cannot allocate memory=198:49:05.98
 bitrate=3659.9kbits/s speed= 201x
 ffmpeg version N-93335-ga8c5ae4 Copyright (c) 2000-2019 the FFmpeg
 developers
   built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
   configuration: --prefix=/home/micah/ffmpeg_build --pkg-config-
 flags=--static --extra-cflags=-I/home/micah/ffmpeg_build/include --extra-
 ldflags=-L/home/micah/ffmpeg_build/lib --extra-libs='-lpthread -lm'
 --bindir=/home/micah/bin --enable-gpl --enable-libaom --enable-libass
 --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-
 libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-
 libx265 --enable-nonfree
   libavutil      56. 26.100 / 56. 26.100
   libavcodec     58. 47.103 / 58. 47.103
   libavformat    58. 26.101 / 58. 26.101
   libavdevice    58.  6.101 / 58.  6.101
   libavfilter     7. 48.100 /  7. 48.100
   libswscale      5.  4.100 /  5.  4.100
   libswresample   3.  4.100 /  3.  4.100
   libpostproc    55.  4.100 / 55.  4.100
 Input #0, matroska,webm, from '/mnt/podcaster/2019-02-28_15-04-50.mkv':
   Metadata:
     ENCODER         : Lavf57.83.100
   Duration: 271:31:45.03, start: 0.000000, bitrate: 3664 kb/s
     Stream #0:0: Video: h264 (Main), yuv420p(tv, bt470bg/unknown/unknown,
 progressive), 1920x1080 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 1k tbn, 60 tbc
 (default)
     Metadata:
       DURATION        : 271:31:45.033000000
     Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp (default)
     Metadata:
       title           : Track1
       DURATION        : 271:31:44.981000000
 Output #0, mp4, to '/filebox/shares/vidbox/lapser/auto/temp-mnt-
 podcaster-2019-02-28_15-04-50-remux.mp4':
   Metadata:
     encoder         : Lavf58.26.101
     Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv,
 bt470bg/unknown/unknown, progressive), 1920x1080 [SAR 1:1 DAR 16:9],
 q=2-31, 30 fps, 30 tbr, 16k tbn, 1k tbc (default)
     Metadata:
       DURATION        : 271:31:45.033000000
     Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo,
 fltp (default)
     Metadata:
       title           : Track1
       DURATION        : 271:31:44.981000000
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 av_interleaved_write_frame(): Cannot allocate memory=198:49:34.91
 bitrate=3659.9kbits/s speed= 198x
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6463#comment:21>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list