drakend
9th January 2007, 15:26
Hi people,
I'm trying my first encodings using filters and the results are generally very nice, but I encountered an unexcepted problem: the frames of the source video aren't the same of the target video. I mean, for example, frame number 12500 of source video ISN'T the same as the frame 12500 of the target video, it is 12502 or 12503, and this is for all the the frames of course.
This causes some disynchronization between video and audio as well.
I used this script:
LoadPlugin("c:\Programmi\Avisynth 2.5\Plugins\Decomb.dll")
LoadPlugin("c:\Programmi\Avisynth 2.5\Plugins\Fluxsmooth.dll")
LoadPlugin("c:\Programmi\Avisynth 2.5\Plugins\Undot.dll")
LoadPlugin("c:\Programmi\Avisynth 2.5\Plugins\Dgdecode.dll")
LoadPlugin("c:\Programmi\Avisynth 2.5\Plugins\Convolution3d.dll")
LoadPlugin("c:\Programmi\Avisynth 2.5\Plugins\Unfilter.dll")
LoadPlugin("c:\Programmi\Avisynth 2.5\Plugins\Deblock.dll")
Import("c:\Programmi\Avisynth 2.5\Plugins\LimitedSharpenFaster.avsi")
DirectShowSource("video.avi")
Crop(0,0,512,380)
LanczosResize(512,384)
Deblock(15,15,15)
Convolution3d (preset="animeLQ")
LimitedSharpenFaster(strength=150)
Unfilter(-7,-7)
Undot()
Limiter()
ConvertTOYV12()
I use DirectShowSource on an avi file because AviSource returns me an error (the height isn't mod2) whereas DirectShowSource doesn't.
I used this script to encode the avi file to an mp4 h264 file with two passes at a target bitrate of 500 Kbps.
The really strange thing is that the frames are the same between the source avi file and the avisynth preview (checked in VirtualDubMod), while they are different between the source avi file and the target mp4 file (opened through another avs script in VirtualDubMod).
How can I solve this problem?
I'm trying my first encodings using filters and the results are generally very nice, but I encountered an unexcepted problem: the frames of the source video aren't the same of the target video. I mean, for example, frame number 12500 of source video ISN'T the same as the frame 12500 of the target video, it is 12502 or 12503, and this is for all the the frames of course.
This causes some disynchronization between video and audio as well.
I used this script:
LoadPlugin("c:\Programmi\Avisynth 2.5\Plugins\Decomb.dll")
LoadPlugin("c:\Programmi\Avisynth 2.5\Plugins\Fluxsmooth.dll")
LoadPlugin("c:\Programmi\Avisynth 2.5\Plugins\Undot.dll")
LoadPlugin("c:\Programmi\Avisynth 2.5\Plugins\Dgdecode.dll")
LoadPlugin("c:\Programmi\Avisynth 2.5\Plugins\Convolution3d.dll")
LoadPlugin("c:\Programmi\Avisynth 2.5\Plugins\Unfilter.dll")
LoadPlugin("c:\Programmi\Avisynth 2.5\Plugins\Deblock.dll")
Import("c:\Programmi\Avisynth 2.5\Plugins\LimitedSharpenFaster.avsi")
DirectShowSource("video.avi")
Crop(0,0,512,380)
LanczosResize(512,384)
Deblock(15,15,15)
Convolution3d (preset="animeLQ")
LimitedSharpenFaster(strength=150)
Unfilter(-7,-7)
Undot()
Limiter()
ConvertTOYV12()
I use DirectShowSource on an avi file because AviSource returns me an error (the height isn't mod2) whereas DirectShowSource doesn't.
I used this script to encode the avi file to an mp4 h264 file with two passes at a target bitrate of 500 Kbps.
The really strange thing is that the frames are the same between the source avi file and the avisynth preview (checked in VirtualDubMod), while they are different between the source avi file and the target mp4 file (opened through another avs script in VirtualDubMod).
How can I solve this problem?