Log in

View Full Version : Faster video after avisynth usage


KowalPl
22nd March 2014, 16:13
Hello
I have a lot to do with security cameras recently and i had to compare some of recorded samples in MSU VQMT. But i faced a problem with avisynth. I used a DirectShowSource for .asf container (the compression used in my camera is mjpeg) and i finally got a video which lasts the same time as original, but its much faster - im not sure if you understand, e.g. a man on video walks unnaturally faster than normally.

I have done the same on my private PC and everything is ok! But i have to fix this on pc in my workplace. Whats the problem?

Im newbie so please be fergiving :) additionally, my english is not perfect so im sorry about that.

raffriff42
22nd March 2014, 16:33
You probably have variable frame rate (no updates without movement on camera)
http://avisynth.nl/index.php/DirectShowSource
DirectShowSource(string filename [, float fps, bool seek, bool audio, bool video, bool convertfps, bool seekzero, int timeout, string pixel_type, int framecount, string logfile, int logmask])

fps: This is sometimes needed to specify the framerate of the video.

convertfps: When setting it to true, it turns variable framerate video (vfr) into constant framerate video (cfr) by adding frames.
EDIT sorry, I was reading in skim mode, this may not help you. Try setting framerate anyway.

eriler
23rd March 2014, 11:09
I believe i have had a similar problem once before when i sped up the fps, and had a video that seemingly had the same runtime as the original, but was really just corrupted at the end.

What fps does your video have? I suggest you check the fps and the runtime of both videos and see if they match. You may have accidentally used AssumeFPS() or something similar. Here is a software you can use. Once opened, drag the file into the window, and go to the View dropdown menu on the top of the window and select "Text". Do so for both videos, the unprocessed mjpeg and the processed one where the man walks faster.

http://mediaarea.net/en/MediaInfo/Download