View Single Post
Old 14th June 2013, 04:58   #34  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Posts: 940
Updates with pictures.

So using an earlier Fingerprint as a function, I took a fingerprint of The Hobbit (2D version) in 1080p Blu-Ray resolutions.
I used one that doesn't work with audio just so I can get a huge color palette of the total movie.



For the waveform, I converted the DTS-HD MA (8ch) to separate WAVs with eac3to and used NicAudio to load the first 6 channels and normalize each before merging and converting to mono to run through "waveform generator". I saved the mono wav using BeHappy.

I found a Windows program that can generate a waveform in PNG formats.
It can also be used as a JavaScript or PHP function too.
It's initially a CLI app. I can't remember where I found a compiled binary package.
Here's the Github for the source code.
https://github.com/superjoe30/waveform

waveform generator can read mono wav files in the valid integer bit depths as well as IEE float (32).
It will tell you if there's a header chunk not found and will still generate waveforms saved in PNG with transparency.
Haven't tested with multichannel wavs though.

Here's the different results you can get depending on the settings you use.
There's three to toy with: inner, outer and background. The inner/outer refer to the inner part of the waveform or the outer tips.
Works in gradient color (rrggbbaa). ("a" for alpha transparency?)
To get full transparency on both the outer and inner part of the waveform on a black background, use:
--color-bg 000000ff --color-center 00000000 --color-outer 00000000

It produced these for me...
Inner: black, outer: red, background: transparent
http://i.imgur.com/M24ViZp.png

Inner: black, outer: red, background: black
http://i.imgur.com/5kyShHp.png

Inner: red, outer: red, background: black
http://i.imgur.com/XOkSOe6.png

Using transparency on both the inner/outer on black bg, I mixed it with the fingerprint in a photo editing program to get...

(open image in new tab for better viewing)

I had to brighten it a little to show more of the lower volumes.

I then split it half and saved the top/bottom halves to new files and took screenshots of the movie to make different wallpapers.
I also reduced the height of the pictures. I reduced the pictures of the colored waveforms to fit in the black bars of the screenshots from the movie.

Wallpaper 1 in 1920x1080 (open image in new tab for better viewing)


Wallpaper 2 in 1920x1080 (open image in new tab for better viewing)


Wonderful use!
The results are much better than I had hoped!
Now to do different resolutions for different monitors.
my laptop and desktops are completely different sizes.
That'll be fun.

It's interesting, I merged all layers to a single layer and then applied the brightness tweaks before splitting them in half.
After splitting them in half and applying to the screenshots, it looks like the top halves are darker than they were previously.


The only left to do is convert the whole movie with the animated function to mimic the Fingerprint trailers.
For the whole movie conversion, it won't be split in half like the wallpapers.
The wallpapers are separate parts of the same project.
Though for the movie conversion, I think I'll reduce it to 720p resolutions.

Thank you so much for all the help everyone!
David, hoping to see an update to your Fingerprint function for 2.6.
__________________
Win10 (x64) build 19041
NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4)
NTSC | DVD: R1 | BD: A
AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
Sparktank is offline   Reply With Quote