[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/ck/ - Food & Cooking

Search:


View post   

>> No.12306028 [View]
File: 8 KB, 349x370, curves.png [View same] [iqdb] [saucenao] [google]
12306028

>>12305450
Sure, it was just using the curves tool in photoshop really, then a bunch of trial and error with ffmpeg. I bet this sort of thing is piss easy with proper video editing software. ffmpeg can use a curves preset as a filter, so I opened a few screenshots and messed with the tool until white things like the milk and plates looked balanced (mostly just needed a bit more red and blue, pic related), then saved the preset as an acv file. Then the command is:
>ffmpeg -i input.mp4 -vf "curves=psfile=curves.acv" -c:a copy -pix_fmt yuv420p output.mp4
(-pix_fmt because ffmpeg converts the video to rgb to run the filter)

This video needed a couple different curves for different scenes, which you can do by using "enable" and listing the start and end times, eg:
>-vf "curves=psfile=curves1.acv:enable='between(t,0,10)',curves=psfile=curves2.acv:enable='between(t,10,20)'"
I ended up exporting the individual frames to figure out the exact timestamps for that, but there's probably a smarter method.

Navigation
View posts[+24][+48][+96]