On Sat, Aug 15, 2009 at 1:20 AM, Francesco Romani<[email protected]> wrote:
> Hi there,
>
> Taking advantage of my (summer holydays, I started to (re)write a
> candidate official GUI for transcode, as we discussed some time ago.
>
> The obligatory screenshot is here:
>
> http://tcforge.berlios.de/archives/2009/08/14/early_preview/index.html
There is a link to an image that is 404
>
> The code isn't public yet because it isn't much more than a stub, but as
> soon as it will do something vaguely useful, I'll publish on tcforge.
>
> Some quick facts/intentions
> - coded in python
I could really use python bindings to tcprobe or something that will
let me calc start and duration correctly:
files=os.listdir(dir)
for dv in files:
print dv
st = os.stat("%s/%s"%(dir,dv))
start = datetime.datetime.fromtimestamp( st.st_mtime )
duration = int(st.st_size/(120000*29.90)) ## seconds
end = start + datetime.timedelta(seconds=duration)
this works for the files I am working with, but I don't think it will
work for PAL, and it relies on the file timestamp being correct - i
trust the timestamp in the dv file more.
I would also like to pull out jpegs from every 30 seconds - The goal
is to be able to create a web page for a file that lets someone figure
out if there it is the recording of a presentation or the minutes
before while people get seated. now that FF3.5 supports .ogg, a low
quality ogg will help too if I can figure out how.
--
Carl K