Log in

View Full Version : Double image and slanted video converting .mp4


Starduster
5th August 2014, 19:16
I use Avisynth run videos through a conversion and this is the first time I've seen this problem. I use:

sld5 = DirectShowSource("wicvideo1.mp4", fps = 15, convertfps = True)
#sld5 = sld5.ensureVBRMP3sync()
#sld5 = sld5.ConvertToRGB32()
sld5 = sld5.Spline36Resize(640,480)
#sld5 = sld5.SSRC(22050, fast = True)
#sld5 = getChannel(sld5,1,1)

I separated each conversion to see if I could find which one was causing the problem but all I need is the resize to do it. If I don't, it says the width must be divisible by 4 use crop. The original video is 854x480.

How do I fix this?

videoh
5th August 2014, 19:27
One way:

sld5 = DirectShowSource("wicvideo1.mp4", fps = 15, convertfps = True)
sld5 = sld5.crop(0,0,-2,-0)
sld5 = sld5.Spline36Resize(640,480)

More compactly:

sld5 = DirectShowSource("wicvideo1.mp4", fps = 15, convertfps = True).crop(0,0,-2,-0).Spline36Resize(640,480)

Starduster
5th August 2014, 19:37
I tried that and all sorts of resize types and crops but it doesn't seem to fix the problem. I even tried your crop by itself without the resize and it still came out double.

If it helps to see what I'm talking about, here's a picture.
http://www.velocedge.com/starduster/double.jpg

videoh
5th August 2014, 19:51
Can you post a link to a sample MP4 that shows this problem?

colours
5th August 2014, 20:03
1. Don't use DirectShowSource unless you absolutely have to. Try FFMS (https://github.com/FFMS/ffms2).

2. SkewRows (http://avisynth.nl/index.php/SkewRows).

Starduster
5th August 2014, 20:34
Colours, that did it! So, I'll swap out DirectShowSource for FFMS on all the rest. Thanks for the terrific help from you all.