Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

7
Calculate total duration from a list?
Post Flair (click to view more posts with a particular flair)
Post Body

So I have a list generated by a program that looks like this:

00:02:26.87 - Test Pattern
00:01:32.07 - In Memoriam
00:00:31.65 - Hanna Barbera Anti-Drug PSA
00:00:17.36 - Feature Presentation 01
01:03:06.85 - The Marijuana Menace (1937)
00:00:35.70 - Intermission 03
00:05:25.76 - Co-Ed Secrets
00:11:05.60 - Halloween Safety
00:01:00.93 - Beware Child Driver -  PSA Safety Spot (Early 1970s)
00:00:08.44 - Intermission End
01:32:05.89 - The Eyes Behind the Stars (1978)
00:00:35.70 - Intermission 03
00:02:55.64 - Peeping Toms Paradise
00:02:44.86 - Trailer - The Baby (1973)
00:10:25.42 - Joan Avoids a Cold
00:00:08.44 - Intermission End
01:30:54.96 - The Head (1959)
00:00:35.70 - Intermission 03
00:00:28.18 - Silence Please
00:10:40.47 - Health - Your Posture
00:02:23.17 - Trailer - Black Sabbath
00:00:08.44 - Intermission End
01:02:18.99 - Attack of the Giant Leeches (1959)
00:00:15.05 - End Loop

The list is duration of each clip - title of clip. I don't have direct access to the clips, so ffprobe and other programs won't work.

How can I write a script that will generate a total duration of all the clips together? (The seconds can be rounded if needed.)

Author
Account Strength
100%
Account Age
10 years
Verified Email
Yes
Verified Flair
No
Total Karma
19,425
Link Karma
6,051
Comment Karma
13,278
Profile updated: 4 days ago
Posts updated: 10 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
6 years ago