I've a problem with my program encoding (that convert symbian video in mp4/mpeg2) Videos are mp4 variable framerate. To catch the framerate I use mediainfo, that give me accurate result, for example: Frame rate : 22.609 fps Minimum frame rate : 6.079 fps Maximum frame rate : 41.209 fps The framerate it's true, because if I encode with this setting, the video seem to go well, but in some part, video isn't in synchronize with audio. For example if I use this script: Code:
Thanks IanB, I've read this wiki [URL="http://avisynth.org/mediawiki/VFR#encoding_to_vfr_.28mkv.29"]WIKI[/URL ] and I've tried to do something, but i havem't understand how can I use timecode in avisynth. I've muxed (now with megui, but I'm searching for a command line) the originale mp4 file into an mkv container. After with this string: mkv2vfr.exe input.mkv output.avi timecodes.txt I've generated the avi file and timecodes.... And now? :script: How can i use this information for avisynth encoding using FFmpegSource and not directshowsource? very thanks....
--------------------- '94 ///177-technic "don't sweat the TECHNIC" "Driving is a passion. Make love to a corner."
but i have to do this in batch mode, how can i trim all file? i've senn that it's possible to recode to avi 120 fps, but I had trouble with this process... Any suggestion?
I need your aid..... I've tried all the solution that my brain it's able to suppose, but I wasn't luky. I've discovered here this command line program, time2avs, that can make an avs script starting from timecode v1 I've modified the avs file in this way: Unfortunately, my videos are always slow, too slow!!! and video at the end it's too fast, like forwarding in dvd's !! This it's the original video In this way some angel can aid me because i've googled and googled and googled for days but it seem that vfr videos aren't impossible to handling well, Thanks.
the purpose it's to smooth this videos using motionprotectedfps or MVFlowFps2 manteining the audio - video sync. I've also modified the upper script avs with motionprotectedfps instead changefps , and the video become very smooth, but slow, and even changing the framerate i haven't success
As IanB said avisynth isn't well suited for vfr files.. but using mencoder (as super does) the problem is gone i tried AutoMen, forcing "Change framerate to 25", and the audio/video seems in synch BHH
There's a thing that I haven't understand. I have a variable framerate video, if I recode into a new cfr video and after use motionprotectedfps, the video became smooth. If I trim every second and I use motionprotectedfps In this (example way) the video became very slow, why?:thanks: Code:
Trim(0, 0) is the whole clip. You want Trim(0, -1) which is 1 frame staring at 0. And you are wasting your time feeding 1 frame clips into motionprotectedfps(), it needs multiple frames to detect motion and interpolate new intervening frames. It may help you visualize the problem if you think about the duration of each frame in milliseconds instead of the reciprocal which is fps. Draw it on a piece of paper with each frame placed in the correct time position.