This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Edit countdown parameters?

Tags: None
(comma "," separated)
User avatar
jessed
Registered Member
Posts
31
Karma
0
OS

Edit countdown parameters?

Thu Jan 10, 2013 5:47 pm
I'm trying to create a countdown video similar to this (https://www.youtube.com/watch?v=RhN1nTAHTdg) with the time format "mm:ss". I found the countdown generator by going to Project>Generators>Countdown, but the video only seems to countdown in seconds, not minutes, and there doesn't seem to be a way to edit it when I double-click on the file in the project tree.

Does anyone know how I can get it in the mm:ss format, instead of just counting down in seconds? Or, is there an easier way to generate the kind of countdown I'm looking for?

Thanks in advance.

(Running kdenlive 0.9 on Ubuntu 12.10 64-bit)


"Always do right. This will gratify some people and astonish the rest." - Mark Twain
jkltechinc
Registered Member
Posts
5
Karma
0

Re: Edit countdown parameters?

Sun Jan 20, 2013 4:55 pm
When you create a countdown in kdenlive, an MLT playlist with pango markup is generated in your default media directory (~/kdenlive). To generate a countdown with the appropriate format I wrote a python script, which I will upload as soon as I get the chance. The basic psudocode looks something like this (I don't have the exact XML on hand, but that's easy to fix):

For minute in range(5):
For second in range(59):
Print """""" % str(minute)+":"+str(second).zfill(2)

Should generate a count up timer from 0:00 to 5:59. A countdown timer would just need the appropriate argument to range():

For minute in range(5,-1,-1)
For second in range(59,-1,-1):
Print """""" % str(minute)+":"+str(second).zfill(2)

I'll upload a working script when I'm home.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar