[FFmpeg-user] Image sequence with part pixelated with a mask

Ric Hunter richuntt at gmail.com
Sat Dec 2 16:21:06 EET 2023

Well that's a pretty good idea, it totally worked!!
Had to also double the "-safe 0" to make it work and I had inverted the
overlay at the end.
Thank you so much!
Final version of the script:

@echo off
setlocal enabledelayedexpansion

set input_folder=C:\ffmpegblurtst\basepics
set mask_folder=C:\ffmpegblurtst\msk1
set output_folder=C:\ffmpegblurtst\output
set filelist_path=%input_folder%\filelist.txt
set masklist_path=%mask_folder%\filelist.txt
set masksolo=%mask_folder%\realmask.png
set output_file=%output_folder%\output.mp4

ffmpeg -r 30 -safe 0 -f concat -i "%filelist_path%" -safe 0 -f concat -i
"%masklist_path%" -filter_complex
-c:v libx264 -pix_fmt yuv420p -b:v 10M "%output_file%"

Le sam. 2 déc. 2023 à 09:13, Michael Koch <astroelectronic at t-online.de> a
écrit :

> Am 02.12.2023 um 05:34 schrieb Ric Hunter:
> > Hello
> > I want to convert an image sequence (jpg) into a mp4 but i want some part
> > of the image sequence to be pixelated based on another mask image
> sequence
> > (jpg, the white being pixelated, the black being not, but it can be png
> > with alpha I don't mind, the simplest is the best)
> >
> > After a lot of digging and reading through documentations, exemples and
> > what I could understand from it, I came up with that batch script (I want
> > to use a batch script)
> It's only an idea, I haven't tested it. Also add "-f concat" before the
> second "-i" ?
> Michael
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".

More information about the ffmpeg-user mailing list