Topic: Video with variable frame size plays crazy

This video is playing totally crazy under SVP4; it's unwatcheable. I'm guessing it has been encoded as a weird VFR.
https://mega.nz/#!LA4HyLKb!z9mfwfPt2cCA … _OJnaZ-gXY

Re: Video with variable frame size plays crazy

this's not VFR video

but it switches between 16:9 and wide screen formats every 10 seconds
so it's "black bars detection" that makes it "unwatchable"

Re: Video with variable frame size plays crazy

I have two solutions:
1. Disable black bars detection. And cut frame manually to constant size you want.
2. To develop "smart" black bars lighting algorithm.

Solution 1 you can use now with SVP4. For solution 2 a some time is needed. It can be realized in the future.

4 (edited by Nintendo Maniac 64 14-01-2016 19:55:08)

Re: Video with variable frame size plays crazy

Chainik wrote:

it switches between 16:9 and wide screen formats

16:9 is widescreen. tongue

I believe you mean "ultra-wide".

Re: Video with variable frame size plays crazy

Nintendo Maniac 64
high five! big_smile

Re: Video with variable frame size plays crazy

Mystery
I told about such "smart black bars lighting"...
The idea is to detect and colorize black bars at short scenes interleaved with full-sized scenes. Logos and subtitles must remain untouched.

demo video: BoA - Kiss My Lips (lighting).mp4 (155.9 MB)
View it with SVP smile

concept avs-script:

SetMtMode(3,4)
DirectShowSource("BoA - Kiss My Lips.mkv")
lights=16

SetMTMode(2)
global top = Crop(0, 0, 0, 106).BilinearResize(16,16)
global btm = Crop(0, 974, 0, 0).BilinearResize(16,16)

topS=Crop(0,108,0,4).blur(0,1).blur(0,1).PointResize(1920,8).blur(0,1)
global topS=topS.BicubicResize(lights,108).BicubicResize(1920,108)
btmS=Crop(0,972-4,0,4).blur(0,1).blur(0,1).PointResize(1920,8).blur(0,1)
global btmS=btmS.BicubicResize(lights,108).BicubicResize(1920,108)
ScriptClip("""AverageLuma(top)>20 ? last : overlay(last,topS,mode="lighten")""")
ScriptClip("""AverageLuma(btm)>20 ? last : overlay(last,btmS,y=972,mode="lighten")""")

distributor()

Pictures are attached.

Post's attachments

BoA_SmartLighting.jpg, 110.41 kb, 960 x 540
BoA_SmartLighting.jpg 110.41 kb, 414 downloads since 2016-01-15 

BoA_source.jpg, 113.31 kb, 960 x 540
BoA_source.jpg 113.31 kb, 420 downloads since 2016-01-15 

Re: Video with variable frame size plays crazy

Demo animation

Post's attachments

SmartLighting_demo_animation.gif, 949.74 kb, 480 x 270
SmartLighting_demo_animation.gif 949.74 kb, 439 downloads since 2016-01-15