Opened 8 months ago

Closed 8 months ago

#10917 closed defect (worksforme)

FFmpeg 6.1 causes OOM with big filter_complex

Reported by: Qwerty812 Owned by:
Priority: important Component: ffmpeg
Version: 6.1 Keywords: OOM memleak Error
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
FFmpeg causes OOM issue when trying to trim and concat a video sequence from a single source with long filter_complex_script (194 audio and 194 video tracks)
How to reproduce:

% ffmpeg -i video.mp4 -filter_complex_script fil2.txt -map "[v]" -map "[a]" output.mp4
ffmpeg version 6.1.1

This issue occurs only in FFmpeg 6.1.1, I tested on a VM with Ubuntu Server 22.04 with FFmpeg version 4.4.2 and the command executes successfully without OOM

Attachments (1)

fil2.txt (26.0 KB ) - added by Qwerty812 8 months ago.
filter_complex_script file input

Download all attachments as: .zip

Change History (4)

by Qwerty812, 8 months ago

Attachment: fil2.txt added

filter_complex_script file input

comment:1 by Gyan, 8 months ago

Does it happen with current git master?

in reply to:  1 comment:2 by Qwerty812, 8 months ago

Replying to Gyan:

Does it happen with current git master?

Just tried with ffmpeg version git-2024-03-20-dfcf5f8
It works with this version! No OOM error and the video is generated successfully.

comment:3 by Gyan, 8 months ago

Resolution: worksforme
Status: newclosed

Can't be reproduced in git master.

Note: See TracTickets for help on using tickets.