[FFmpeg-trac] #8491(avformat:new): Memory utilization increases infinitely with mp4 muxing
FFmpeg
trac at avcodec.org
Wed Jan 22 13:51:55 EET 2020
#8491: Memory utilization increases infinitely with mp4 muxing
------------------------------------+------------------------------------
Reporter: olpipi | Owner:
Type: defect | Status: new
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: mov | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Changes (by cehoyos):
* keywords: memory mux mp4 => mov
* component: undetermined => avformat
Comment:
I tested the provided command line with the sample you attached and only
see a memory footprint of 32MB:
{{{
$ ffmpeg -benchmark -i test.h264 -c:v copy -f mp4 "out.mp4"
ffmpeg version N-96463-g2bae3da79e Copyright (c) 2000-2020 the FFmpeg
developers
built with gcc 9 (SUSE Linux)
configuration: --enable-gpl --enable-gnutls --enable-libx264 --enable-
libx265 --enable-libaom
libavutil 56. 38.100 / 56. 38.100
libavcodec 58. 66.100 / 58. 66.100
libavformat 58. 35.104 / 58. 35.104
libavdevice 58. 9.103 / 58. 9.103
libavfilter 7. 71.100 / 7. 71.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
Input #0, h264, from 'test.h264':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (High), yuv420p(tv, progressive), 1920x1080
[SAR 1:1 DAR 16:9], 60 fps, 60 tbr, 1200k tbn, 120 tbc
Output #0, mp4, to 'out.mp4':
Metadata:
encoder : Lavf58.35.104
Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 60 fps, 60 tbr, 1200k
tbn, 1200k tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mp4] Timestamps are unset in a packet for stream 0. This is deprecated
and will stop working in the future. Fix your code to set the timestamps
properly
frame= 500 fps=0.0 q=-1.0 Lsize= 2267kB time=00:00:08.34
bitrate=2226.6kbits/s speed=2.22e+03x
video:2261kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.266425%
bench: utime=0.004s stime=0.000s rtime=0.004s
bench: maxrss=31928kB
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8491#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list