From: "Jan Ekström" <jeebjp@gmail.com>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH] avfillter/buffersrc: activate and EOF fix
Date: Wed, 1 Nov 2023 15:48:20 +0200
Message-ID: <CAEu79SZsRKUoOWuAyOGVms+VWp_LtZ8OTiSWPW0wpZAO77Jebg@mail.gmail.com> (raw)
In-Reply-To: <ZUDdKHS+bt89LTTI@phare.normalesup.org>
On Tue, Oct 31, 2023 at 12:55 PM Nicolas George <george@nsup.org> wrote:
>
> Paul B Mahol (12023-10-27):
> > Both patches are required to fix out of memory scenario with this use case:
>
> I checked. The OOM still happens with these two patches => they do not
> fix the issue => rejected.
So for me I have the following memory ballooning test case:
1. build FFmpeg with libx264 (I just haven't had the time to minimize
the test case to test other video formats)
2. Check that you have /usr/bin/time (it outputs "Maximum resident set
size" when called with -v argument)
3. Create test input with `ffmpeg -v verbose -filter_complex
'testsrc2=r=25:s=640x480:d=470[out]' -map '[out]' -c:v libx264 -preset
superfast test_clip.mp4`
4. Run the test case `/usr/bin/time -v ffmpeg -y -v verbose -i
test_clip.mp4 -c copy -map 0 -t 470 test_clip.mp4_copy.mp4
-filter_complex
"[0:0]split=1[thumb_in];[thumb_in]trim=start=420:end=421,scale=720:-2:threads=1,setsar=1/1,hqdn3d,unsharp[thumb_out]"
-map "[thumb_out]" -vframes 1 -f image2 test_clip.mp4_img2.jpg`
If the result for this is a maximum resident set size of about 60MiB
(f.ex. Maximum resident set size (kbytes): 62752), then things are how
they were before trim was switched to activate. If it is closer to
500MiB+ (f.ex. Maximum resident set size (kbytes): 609744), then that
is the memory ballooning behavior in action.
Results:
For current master the result is: bad (over 500MiB and would have kept
growing without the time limiting)
After applying the two patches: good (back to closer to 50MiB than 500MiB)
Exact steps to apply patches:
curl -L "https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20231027/8bf21777/attachment.bin"
| git am
curl -L "https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20231027/8bf21777/attachment-0001.bin"
| git am
I was planning to make a ticket for this, but Paul was too quick to
fix this so there is no trac ticket yet.
So my question is: Does this test case not improve for you after you
have applied these patches? Or are you speaking of a separate problem
which is bad both in master as well as after these patches have been
applied?
Regards,
Jan
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2023-11-01 13:48 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-27 12:38 Paul B Mahol
2023-10-27 12:53 ` Nicolas George
2023-10-27 13:07 ` Paul B Mahol
2023-10-27 13:02 ` Nicolas George
2023-10-27 13:18 ` Paul B Mahol
2023-10-27 17:51 ` Paul B Mahol
2023-10-27 17:54 ` Nicolas George
2023-10-27 22:48 ` Paul B Mahol
2023-10-29 9:38 ` Nicolas George
2023-10-29 21:46 ` Paul B Mahol
2023-10-31 10:55 ` Nicolas George
2023-10-31 20:13 ` Paul B Mahol
2023-10-31 20:14 ` Paul B Mahol
2023-11-01 13:58 ` Nicolas George
2023-11-01 14:15 ` Paul B Mahol
2023-11-01 14:13 ` Nicolas George
2023-11-02 9:56 ` Paul B Mahol
2023-11-02 9:50 ` Nicolas George
2023-11-02 10:00 ` Paul B Mahol
2023-11-02 10:03 ` Nicolas George
2023-11-02 10:18 ` Paul B Mahol
2023-11-02 10:15 ` Nicolas George
2023-11-02 20:05 ` Tristan Matthews
2023-11-03 19:04 ` Nicolas George
2023-11-03 20:47 ` Paul B Mahol
2023-11-04 19:05 ` Nicolas George
2023-11-01 13:48 ` Jan Ekström [this message]
2023-11-01 13:56 ` Nicolas George
2023-11-01 14:23 ` James Almer
2023-11-01 14:28 ` Nicolas George
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAEu79SZsRKUoOWuAyOGVms+VWp_LtZ8OTiSWPW0wpZAO77Jebg@mail.gmail.com \
--to=jeebjp@gmail.com \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git