Talk:ChannelMixer: Difference between revisions

From Avisynth wiki
Jump to navigationJump to search
reply
Raffriff42 (talk | contribs)
m Category:Talk
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Talk]]
===== How did you animate that before-and-after image? =====
===== How did you animate that before-and-after image? =====
I can't figure it out.<br>
I can't figure it out.<br>
Line 4: Line 5:




:It's an animated PNG created with AviSynth and [http://vdubapngmod.sourceforge.net/ VirtualDub APNG Mod], the script I used is in one my hard drives but I cannot find it at the moment.[[User:Reel.Deal|Reel.Deal]] 19:07, 16 September 2015 (CEST)
It's an [http://en.wikipedia.org/wiki/APNG Animated PNG] created with AviSynth and [http://vdubapngmod.sourceforge.net/ VirtualDub APNG Mod]. Below is the script I used, Loop=delay and AssumeFPS=speed, load the script and save to apng. I chose to to it this way because not all browsers support apng. If a apng is not supported by the browser (for example Chrome) then the user just get a side-by-side comparison. I could of used GIF but the quality is limited. [[User:Reel.Deal|Reel.Deal]] 19:39, 16 September 2015 (CEST)
<pre>
# Single frame RGB32 source
o = last.Loop(25)
 
# Processing
o2 = o.ChannelMixer()
 
# Combine
Left = o.Subtitle("Before") ++ o2.Subtitle("After")
Right = o2.Subtitle("After") ++ o.Subtitle("Before")
 
Stack = StackHorizontal(Left, Right)
 
# Output
Return (Stack.AssumeFPS(30))
</pre>
 
You can probably do more advanced stuff with [http://apngasm.sourceforge.net/ APNG Assembler] or [http://sites.google.com/site/cphktool/apng-anime-maker APNG Anime Maker]. I also used [http://sourceforge.net/projects/apng/files/APNG_Optimizer/1.4/  APNG Optimizer]. [[User:Reel.Deal|Reel.Deal]] 19:55, 16 September 2015 (CEST)
 
:...Ahh, I was confused because I would click on the image and didn't see any animation! What I did not realize was that I was seeing a JPG "thumbnail!" <br>
:This flipping effect is a good demo technique! Will make a note of it!<br>
:[[User:Raffriff42|Raffriff42]] 21:13, 16 September 2015 (CEST)

Latest revision as of 03:06, 14 December 2015

How did you animate that before-and-after image?

I can't figure it out.
Raffriff42 18:46, 16 September 2015 (CEST)


It's an Animated PNG created with AviSynth and VirtualDub APNG Mod. Below is the script I used, Loop=delay and AssumeFPS=speed, load the script and save to apng. I chose to to it this way because not all browsers support apng. If a apng is not supported by the browser (for example Chrome) then the user just get a side-by-side comparison. I could of used GIF but the quality is limited. Reel.Deal 19:39, 16 September 2015 (CEST)

# Single frame RGB32 source
o = last.Loop(25)

# Processing
o2 = o.ChannelMixer()

# Combine
Left = o.Subtitle("Before") ++ o2.Subtitle("After")
Right = o2.Subtitle("After") ++ o.Subtitle("Before")

Stack = StackHorizontal(Left, Right)

# Output
Return (Stack.AssumeFPS(30))

You can probably do more advanced stuff with APNG Assembler or APNG Anime Maker. I also used APNG Optimizer. Reel.Deal 19:55, 16 September 2015 (CEST)

...Ahh, I was confused because I would click on the image and didn't see any animation! What I did not realize was that I was seeing a JPG "thumbnail!"
This flipping effect is a good demo technique! Will make a note of it!
Raffriff42 21:13, 16 September 2015 (CEST)