From: Niklas Haas <ffmpeg@haasn.xyz> To: ffmpeg-devel@ffmpeg.org Subject: Re: [FFmpeg-devel] [PATCH v2 1/4] avcodec/aom_film_grain: add AOM film grain synthesis Date: Tue, 12 Mar 2024 22:40:01 +0100 Message-ID: <20240312224001.GB7003@haasn.xyz> (raw) In-Reply-To: <5e4a4e4f-f346-45a2-843d-a1a3b0562307@jkqxz.net> On Mon, 11 Mar 2024 22:32:01 +0000 Mark Thompson <sw@jkqxz.net> wrote: > This is not correct. Along with scalable cases, the multiple param sets are to support applying film grain at the display resolution after scaling, providing a better result than upscaling the grain applied at the decode resolution. > > For example, you could have a scalable stream with operating points of 1920x1080, 1280x720 and 640x360. The AFGS1 metadata associated with the stream would then have film grain parameters for those three resolutions, plus perhaps 2560x1440 and 3840x2160. > > In the ideal case you then pick the operating point for decode based on your available bandwidth and decode capabilities, and the resolution for film grain application based on the display. The decode happens without any film grain, the clean video is upscaled, and then the film grain is applied immediately before display. > > A current conforming AV1 implementation which only supports applying film grain as part of the decode process can do so and produce a conforming result, but the quality may not be as good as the ideal case because the presence of noise will affect the upscale quality and also the grain itself will be scaled in a way which may not look correct. > > I'm not sure what the best way to expose this is. For a player application an option to select the intended display resolution and then export an AV1 film grain side data as it is now is sufficient, but that doesn't really work in an application like ffmpeg where the target resolution isn't directly known. One way to get there would be to attach multiple AVFilmGrainAOMParams structs as side data to the frame, plus adding the extra metadata for the resolution (and colorimetry etc.) to that struct. May be a bit awkward to deal with on the user side, though. > (Also note that a transcode can carry the AFGS1 message from the source to the output without ever touching it, as long as the target resolution satisfies the requirement on the coded resolution being available in the param sets. It seems desirable to support this possibility.) > > Thanks, > > - Mark > _______________________________________________ > 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". _______________________________________________ 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:[~2024-03-12 21:40 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-03-08 13:21 Niklas Haas 2024-03-08 13:21 ` [FFmpeg-devel] [PATCH v2 2/4] avcodec/aom_film_grain: implement AFGS1 Niklas Haas 2024-03-08 13:28 ` Niklas Haas 2024-03-08 13:21 ` [FFmpeg-devel] [PATCH v2 3/4] avcodec/h2645_sei: decode AFGS1 T.35 SEI Niklas Haas 2024-03-08 13:21 ` [FFmpeg-devel] [PATCH v2 4/4] avcodec/hevcdec: apply AOM film grain synthesis Niklas Haas 2024-03-08 13:31 ` [FFmpeg-devel] [PATCH v2 1/4] avcodec/aom_film_grain: add " James Almer 2024-03-08 13:44 ` Niklas Haas 2024-03-11 22:32 ` Mark Thompson 2024-03-12 21:40 ` Niklas Haas [this message] 2024-03-15 10:17 ` Niklas Haas -- strict thread matches above, loose matches on Subject: below -- 2024-02-29 12:33 Niklas Haas 2024-02-29 12:43 ` Niklas Haas 2024-02-29 12:50 ` Andreas Rheinhardt
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=20240312224001.GB7003@haasn.xyz \ --to=ffmpeg@haasn.xyz \ --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