Blimblim
29th October 2006, 13:58
Hi everyone!
I'm a rather long time user of Avisynth, been using it for years now for all my video encoding needs. I can't say I totally understand everything I do with it, but still I'm totally happy.
Anyway, I bought a Sony HD camcorder that records H.264/AVC m2ts stream in 1080i. I'm relatively happy with the video quality, but I have a rather strange problem with the deinterlacing part.
I want to produce some 59.94 fps videos, and for some reason it's like the fields are totally out of order. Deinterlacing to a 29.97 fps file works totally normally with either tomsmocomp or smoothdeinterlace, but if I use the doublerate=true mode or this script :
Top=AssumeFrameBased().ComplementParity()
Bottom=Top.SeparateFields.Trim(1,0).weave
Interleave(Top.TomsMoComp(1,5,0),Bottom.TomsMoComp(0,5,0))
I get some very weird video where frames are duplicated, go back in time, you name it. Of course I try using tff or bff with the same result.
Here is a full script :
loadplugin("tomsmocomp.dll")
loadplugin("SmoothDeinterlacer.dll")
directshowsource("c:\capture\00036.MTS",fps=29.97)
tomsmocomp(1,15,1)
#SmoothDeinterlace(tff=true, doublerate=true)
lanczosresize(640,360)
This script works correctly and produces a 29.97 clip with no issues
Removing the fps=29.97 option, I get a video that's twice too fast. Using the smoothdeinterlace line, I get a this weird issue.
I'm using the CoreAVC Pro codec, with the option not to deinterlace anything. My guess is that the codec is somehow doing something wrong with the fields.
I can encode a small part of the video to another codec so you guys can have a sample if you want. Just tell me exactly what would be best for you to check the problem. I can also provide a sample m2ts file of course.
Thanks in advance for your help!
Jeff
I'm a rather long time user of Avisynth, been using it for years now for all my video encoding needs. I can't say I totally understand everything I do with it, but still I'm totally happy.
Anyway, I bought a Sony HD camcorder that records H.264/AVC m2ts stream in 1080i. I'm relatively happy with the video quality, but I have a rather strange problem with the deinterlacing part.
I want to produce some 59.94 fps videos, and for some reason it's like the fields are totally out of order. Deinterlacing to a 29.97 fps file works totally normally with either tomsmocomp or smoothdeinterlace, but if I use the doublerate=true mode or this script :
Top=AssumeFrameBased().ComplementParity()
Bottom=Top.SeparateFields.Trim(1,0).weave
Interleave(Top.TomsMoComp(1,5,0),Bottom.TomsMoComp(0,5,0))
I get some very weird video where frames are duplicated, go back in time, you name it. Of course I try using tff or bff with the same result.
Here is a full script :
loadplugin("tomsmocomp.dll")
loadplugin("SmoothDeinterlacer.dll")
directshowsource("c:\capture\00036.MTS",fps=29.97)
tomsmocomp(1,15,1)
#SmoothDeinterlace(tff=true, doublerate=true)
lanczosresize(640,360)
This script works correctly and produces a 29.97 clip with no issues
Removing the fps=29.97 option, I get a video that's twice too fast. Using the smoothdeinterlace line, I get a this weird issue.
I'm using the CoreAVC Pro codec, with the option not to deinterlace anything. My guess is that the codec is somehow doing something wrong with the fields.
I can encode a small part of the video to another codec so you guys can have a sample if you want. Just tell me exactly what would be best for you to check the problem. I can also provide a sample m2ts file of course.
Thanks in advance for your help!
Jeff