Question

Current Status: I have a movie I recorded on a microscopy and a .txt file with two columns: time and temperature. This file is synchronous with the video. I would like to 'edit' the video so there is a text box with the temperature that would update as the movie plays.

My approach, for the moment, is to use ffmpeg. I managed to draw some text and it seems all is working as intended.

The problem is: I can't find any reference on how to update that text dynamically. I am using some Python to read the file and launch ffmpeg with subprocess.

I would like to ask if anyone knows some workaround for this. Maybe some other approach.

Was it helpful?

Solution

pysrt - Python module to create .srt files

Building on what @cherhan said, consider using the pysrt library.

You can find the library here: http://pypi.python.org/pypi/pysrt/0.2.2

If you have problems using the library, comment below and maybe I can write some code to demonstrate how it would be used in this particular situation (although I feel that the problem is trivial at this point).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top