padeen, thanks and congratulations for such a well-written description which will be very useful to lots of people.
Your problems with the NTSC framerate are due to this line:
Code:
framerate = ( NTSC ? 30000/1001 : 25.0) # framerate depends on NTSC or PAL
You need to use floating point division, not integer, so use
30000.0/1001.
Some other comments:
- there's no need to import the color names, as avsi files in the plugins folder are imported automatically;
- although it is a useful technique, you don't really need eval in this case because you could have written
Code:
dissolve(blankclip(10,frame_w,frame_h),title3,title4,title6,title9,5).converttoyv12(interlaced=false)
return (NTSC ? assumefps("ntsc_video") : last)
(and if you fix the divide problem the last line should be unnecessary too)