[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

I want to take a movie, and use a color average from one frame

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 8
Thread images: 3

File: xXTvK3R - Imgur.gif (2MB, 800x532px) Image search: [Google]
xXTvK3R - Imgur.gif
2MB, 800x532px
I want to take a movie, and use a color average from one frame every minute to make a gradient. Whats the fastest way to do this?

Pic Unrelated.
>>
File: tmp_show.webm (657KB, 640x360px) Image search: [Google]
tmp_show.webm
657KB, 640x360px
You're not explaining enough. What do you mean by gradient?

If you want to get an approximate color average of a single frame you can use ffmpeg and scale to 1x1 while experimenting with scaling algos.
I'm attaching an example, but this one was scaled to 30x1 and then scaled back. 1x1 would have a single color per every frame.

I don't understand what you want to do after that.
>>
>>246726
I'm talking about making a single gradient from a movie, using color average from one frame every minute.
>>
>>246740
This sounds like an absolute shit idea.
>>
there's no way to do this automatically, unless you program it yourself
>>
>>246740
You are not explaining how do you want it all arranged. What type of gradient are you talking about? What is the result supposed to be? An image? A video?
>>
You mean like this? https://imgur.com/a/oh3Qz
>>
>>246665
This has been done a million times. Do you need it for something practical or is it meant to be a work of art in itself? If the latter, don't bother

You will need to write a program, Processing is probably the easiest for this sort of thing.to derive an average colour the logic would be something like:

for every pixel in the frame
add red value of this pixel to a total sum of red
add green value to a total sum of green
add blue value to ... etc etc
average red = total red / number of pixels
average green = total green / number of pixels
average blue = total blue / number of pixels
average frame colour is these averages in RGB colourspace

if you want the average colour of an entire minute, you could collect the average for a frame like this and them perform the same sort of averaging across all new saved averaged colours, creating an average of those averages. changes are it will be brown with that many frames...

you could either set up a gradient in illustrator with the RGB values inserted along it that your program spit out (manually, but one a minute isn't that bad), or you could then tell the program to render all these colours next to each other as rectangles or something, with blending or interpolation of your choice inbetween them.

tl;dr learn to program but it's been done already. pic related, it's Wall-E
Thread posts: 8
Thread images: 3


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.