Log in

View Full Version : 12 fps to 25 fps


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 ?????

Leak
28th June 2007, 16:11
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

0xc000001d is defined as "EXCEPTION_ILLEGAL_INSTRUCTION" in Windows, which means your script is probably trying to use SSE2 or SSE3 instructions that your processor doesn't support. What CPU do you have?

Also, try commenting out parts of your script to find out exactly which filter causes this exception to be thrown.

np: Lusine - Flat (Dimbiman ft. Cabanne Remix) (Podgelism)

cd090580
28th June 2007, 16:46
The script first crash on MVAnalyse.

The CPU is an old Pentium II with only MMX.

Is there a version or a flag to disable SSE in MVTools or some kind of emulator to convert SSE instructions to MMX ??????

Leak
28th June 2007, 17:05
The script first crash on MVAnalyse.

The CPU is an old Pentium II with only MMX.
I think we have a winner there...
Is there a version or a flag to disable SSE in MVTools
Yes.
or some kind of emulator to convert SSE instructions to MMX??????
Ugh... I take it you have a very high pain threshold, then?

np: Apparat - Over And Over (Walls)

cd090580
28th June 2007, 17:35
Thanks.

I will try with the isse flag