View Full Version : Problem with ConvertFPS and .mov files
il Canoista
13th July 2005, 09:35
I am searching for a good method to process & encode .mov files from my kodak digital camera. They are 640*480 13,01 FPS movies. I would like to use ConvertFPS to change the frame rate but it doesn't work. The error message is:
"ConvertFPS: New frame rate too small. Must be greater than 2832000. Increase or use 'zone=' "
but I think that a frame rate greater than 2832000 is not strictly PAL...
The script I used is:
LoadVFAPIPlugin ("F:\Documents and Settings\Roberto\Desktop\QTReader.vfp", "QTReader")
QTReader ("E:\Foto e filmati\Moto Udine\100_1647.MOV")
FlipVertical
Lanczos4Resize (480, 576)
ConvertToYuy2
ConvertFPS (25)
The script works with Quenc if I use these final lines:
ConvertToYV12
ChangeFPS (25)
Is someone able to help me using ConvertFPS?
Mug Funky
13th July 2005, 10:02
put "changefps(13.01)" after QTreader.
quicktime source for whatever reason returns a stupidly high frame-rate instead of that contained in the mov file.
il Canoista
13th July 2005, 10:05
Thanks!!!
il Canoista
16th July 2005, 12:52
Now the script works fine, but .mov files are so strange! I found that some of the videos have 13,010 FPS and other have 13,011 FPS. And maybe there are other digits after the dot, maybe it's a recurring decimal!!! :-)
I think that if I don't find the exact FPS the function ChangeFPS will not use all the frames available in the source, will drop some of them and the result will be worse.
Is it right? How can I find the exact number of frames in a .mov files?
What kind of colour space do .mov files use? Am I doing some unnecessary colour space conversion?
LoadVFAPIPlugin ("F:\Documents and Settings\Roberto\Desktop\QTReader.vfp", "QTReader")
QTReader ("E:\Foto e filmati\Moto Udine\100_1720.MOV")
changefps(13.011)
FlipVertical
Lanczos4Resize (480, 576)
ConvertToYuy2
ConvertFPS (25)
converttoyv12
I am also trying to remove artefacts such as noise and blocks caused by bad compression, expecially on almost monochrome zones. Is there a specific filter to do this, or are the core filters enough?
Mug Funky
17th July 2005, 14:34
you can get frame rate info from quicktime player if you're unsure ;)
i suspect (but have no real idea) that QTreader is getting either the framerate numerator or denominator from the mov, but not both, and so it's feeding ludicrous numbers to avs
il Canoista
21st July 2005, 20:01
ok, thanks for all the infos, including some coming from your old posts. They helped me on making this DOS batch file:
for "%%x" in (*.mov) do (
echo.LoadVFAPIPlugin^("F:\Documents and Settings\Roberto\Desktop\QTReader.vfp","QTReader"^)
echo.QTReader^("E:\Foto e filmati\Moto Udine\%%x"^)
echo.changefps^(13.01^)
echo.FlipVertical
echo.Lanczos4Resize^(480,576^)
echo.ConvertToYuy2
echo.ConvertFPS^(25^)
echo.converttoyv12
) >> "%%~nx.avs"
for %%y in (*.avs) do (
"f:\programmi\quenc 0.61\quenc.exe" -i "%%y" -o "%%~ny.mpg" -auto
)
del *.avs
It works fine, but I wasn't able to find informations about the use of ^), ~n, echo. on my old MS-DOS 5.0 manual. Where did they came from?
stickboy
22nd July 2005, 03:19
~n is available only with the Windows 2000/XP cmd processor, not with the old
DOS/Win9x command.com. "%~nX" expands %X but only outputs the filename. See "for /?" for details.
^ acts as an escape in the above script to prevent the "for" command from misinterpretting the parentheses. I'm not sure how anyone is supposed to know about it though.
Mug Funky
22nd July 2005, 05:30
oh, just fyi, i think vfapi is returning the framerate numerator - checking the framerate in virtualdub gave me 30000 fps for a 29.97fps mov file (this would make the numerator in the mov file 30000, and the denominator 1001). it may be possible to write a little wrapper function for qtreader that makes a best guess at the denominator and returns the right framerate...?
hehe. batching is cool too. you should try shell extensions for added fun - you can right-click a mov in explorer and output an avs (or even an m2v) automatically if you want. i'm not completely happy with my method for it at the moment though...
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.