Skip to content

Commit

Permalink
fix ffmpeg duration fmt to just use s+(.m+)?
Browse files Browse the repository at this point in the history
  • Loading branch information
aisch committed Dec 30, 2015
1 parent cad03bc commit b9d9b62
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions marm/ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,8 @@ class FFMPEG(Process):
def format_interval(cls, d):
ts = d.total_seconds()
return (
'{hours:02}:{minutes:02}:{seconds:02}.{millisecond:03}'
'{seconds}.{millisecond}'
.format(
hours=0,
minutes=0,
seconds=int(ts),
millisecond=int((ts - int(ts)) * 1000),
)
Expand Down

0 comments on commit b9d9b62

Please sign in to comment.