Hi guys,
I need some help with my programming again. I have a text document of subtitles of a film.
I need a code that will help me to visualise them.
In this text file subtitles appear like this:
1
00:00:15,549 --> 00:00:17,798
What is your first name, your last name?
2
00:00:18,680 --> 00:00:20,037
My name is Yuri Zhary.
3
00:00:28,760 --> 00:00:31,568
Where did you come from?
4
00:00:38,640 --> 00:00:41,799
l came from...Kharkov.
......
653
01:36:34,359 --> 01:36:35,939
Everything will be...
654
01:37:49,119 --> 01:37:52,279
Would you rather have a boy or a girl?
655
01:42:32,520 --> 01:42:36,140
I need to convert them into dots on a grid.
These subtitles are of a film which is 100 minutes long, I create a grid of every second of the film (so there is 100x60=6000 seconds). So the grid is 78x78 frames (that’s how many seconds there are approx), each frame is 9 pixels, so the grid is 697x697 pixels.
• The seconds of the film that has the subtitles should be represented by the dots in the center of the frame.
• The seconds of the film that has no subtitles should be represented by the empty black frames.
This is a picture illustrating this idea.
Can you please help me to program this process?
I will really appreciate any help.
I'm still a beginner but I try very hard to manage Processing, so I'm sorry in advance for any stupid questions I may ask.
Thanks a lot, you guys are always incredibly helpful and friendly.
Regards,
Ollena
I need some help with my programming again. I have a text document of subtitles of a film.
I need a code that will help me to visualise them.
In this text file subtitles appear like this:
1
00:00:15,549 --> 00:00:17,798
What is your first name, your last name?
2
00:00:18,680 --> 00:00:20,037
My name is Yuri Zhary.
3
00:00:28,760 --> 00:00:31,568
Where did you come from?
4
00:00:38,640 --> 00:00:41,799
l came from...Kharkov.
......
653
01:36:34,359 --> 01:36:35,939
Everything will be...
654
01:37:49,119 --> 01:37:52,279
Would you rather have a boy or a girl?
655
01:42:32,520 --> 01:42:36,140
I need to convert them into dots on a grid.
These subtitles are of a film which is 100 minutes long, I create a grid of every second of the film (so there is 100x60=6000 seconds). So the grid is 78x78 frames (that’s how many seconds there are approx), each frame is 9 pixels, so the grid is 697x697 pixels.
• The seconds of the film that has the subtitles should be represented by the dots in the center of the frame.
• The seconds of the film that has no subtitles should be represented by the empty black frames.
This is a picture illustrating this idea.
Can you please help me to program this process?
I will really appreciate any help.
I'm still a beginner but I try very hard to manage Processing, so I'm sorry in advance for any stupid questions I may ask.
Thanks a lot, you guys are always incredibly helpful and friendly.
Regards,
Ollena
1