cd090580
28th June 2007, 14:31
Hi,
I have a video in flv format I'd like to convert to dvd or any other format like divx.
The problem is the source only 12 fps for a resolution of 480*270.
The original shoot was done in PAL (french music video).
I've tried with the ConvertFPS of avisynth but the motion is not smooth :mad:
So I wanted to give a try to MVTools but it's not working.
I've extracted my flv to avi+mp3 with flvextract.
and here is my avisynth script:
source = AVISource("C:\vid\Mélissa Mars - Love Machine.avi",false)
source2 = source.LanczosResize(704,432,0,0,480,270).Deblock().AddBorders(8,72,8,72)
# Conversion 12 fps => 25 fps
backward_vec = source2.MVAnalyse(isb = true, truemotion=true, pel=2, idx=1)
# we use explicit idx for more fast processing
forward_vec = source2.MVAnalyse(isb = false, truemotion=true, pel=2, idx=1)
cropped = source2.crop(4,4,-4,-4) # by half of block size 8
backward_vec2 = cropped.MVAnalyse(isb = true, truemotion=true, pel=2, idx=2)
forward_vec2 = cropped.MVAnalyse(isb = false, truemotion=true, pel=2, idx=2)
return source2.MVFlowFps2(backward_vec,forward_vec,backward_vec2,forward_vec2,num=25,idx=1,idx2=2)
When I try to preview in AvsP I got the following error:
Traceback (most recent call last):
File "AvsP.py", line 5028, in OnMenuVideoNextFrame
File "AvsP.py", line 8202, in ShowVideoOffset
File "AvsP.py", line 8014, in ShowVideoFrame
File "AvsP.py", line 8498, in PaintAVIFrame
File "pyavs.pyo", line 296, in DrawFrame
File "pyavs.pyo", line 279, in _GetFrame
File "avisynth.pyo", line 277, in GetFrame
WindowsError: exception code 0xc000001d
Traceback (most recent call last):
File "AvsP.py", line 6355, in OnPaintVideoWindow
File "AvsP.py", line 8498, in PaintAVIFrame
File "pyavs.pyo", line 296, in DrawFrame
File "pyavs.pyo", line 279, in _GetFrame
File "avisynth.pyo", line 277, in GetFrame
WindowsError: exception code 0xc000001d
In VirtualDub:
http://img341.imageshack.us/img341/6870/avserrornn8.png
and in WMP 11 or tmpgenc 2.5
CAviStreamSynth: System Exception - Invalid Instruction at 0x0
What's bad in my script ?????
I have a video in flv format I'd like to convert to dvd or any other format like divx.
The problem is the source only 12 fps for a resolution of 480*270.
The original shoot was done in PAL (french music video).
I've tried with the ConvertFPS of avisynth but the motion is not smooth :mad:
So I wanted to give a try to MVTools but it's not working.
I've extracted my flv to avi+mp3 with flvextract.
and here is my avisynth script:
source = AVISource("C:\vid\Mélissa Mars - Love Machine.avi",false)
source2 = source.LanczosResize(704,432,0,0,480,270).Deblock().AddBorders(8,72,8,72)
# Conversion 12 fps => 25 fps
backward_vec = source2.MVAnalyse(isb = true, truemotion=true, pel=2, idx=1)
# we use explicit idx for more fast processing
forward_vec = source2.MVAnalyse(isb = false, truemotion=true, pel=2, idx=1)
cropped = source2.crop(4,4,-4,-4) # by half of block size 8
backward_vec2 = cropped.MVAnalyse(isb = true, truemotion=true, pel=2, idx=2)
forward_vec2 = cropped.MVAnalyse(isb = false, truemotion=true, pel=2, idx=2)
return source2.MVFlowFps2(backward_vec,forward_vec,backward_vec2,forward_vec2,num=25,idx=1,idx2=2)
When I try to preview in AvsP I got the following error:
Traceback (most recent call last):
File "AvsP.py", line 5028, in OnMenuVideoNextFrame
File "AvsP.py", line 8202, in ShowVideoOffset
File "AvsP.py", line 8014, in ShowVideoFrame
File "AvsP.py", line 8498, in PaintAVIFrame
File "pyavs.pyo", line 296, in DrawFrame
File "pyavs.pyo", line 279, in _GetFrame
File "avisynth.pyo", line 277, in GetFrame
WindowsError: exception code 0xc000001d
Traceback (most recent call last):
File "AvsP.py", line 6355, in OnPaintVideoWindow
File "AvsP.py", line 8498, in PaintAVIFrame
File "pyavs.pyo", line 296, in DrawFrame
File "pyavs.pyo", line 279, in _GetFrame
File "avisynth.pyo", line 277, in GetFrame
WindowsError: exception code 0xc000001d
In VirtualDub:
http://img341.imageshack.us/img341/6870/avserrornn8.png
and in WMP 11 or tmpgenc 2.5
CAviStreamSynth: System Exception - Invalid Instruction at 0x0
What's bad in my script ?????