Page MenuHomePhabricator

Implement progress bar for video encodings in tool.
Closed, ResolvedPublic

Description

As a feature Request:

On selecting the required "Video Settings" and by clicking on the "Preview" button, VideoCutTool displays the loading spinner and then encode the video in the background.

This might not be as user-friendly as the users might not know how much progress did the video encoding processed.

Solution: Implement a standard progress bar which shows the percentage of encoding video of ffmpeg.

Repos:
VideoCutTool-front-end: https://github.com/gopavasanth/video-cut-tool/
VideoCutTool-back-end: https://github.com/gopavasanth/video-cut-tool-back-end/

The loading spinner code is here: https://github.com/gopavasanth/video-cut-tool/blob/master/src/components/home.js#L643

Imported in Google Code-in website here: https://codein.withgoogle.com/tasks/4690276384243712/

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 10 2019, 11:08 AM
Gopavasanth triaged this task as Medium priority.Oct 12 2019, 12:43 PM
Gopavasanth updated the task description. (Show Details)Jan 2 2020, 4:31 PM
Gopavasanth renamed this task from Implement progress bar in VideoCutTool to Implement progress bar for video encodings in tool..Jan 9 2020, 3:04 PM
Gopavasanth updated the task description. (Show Details)

The way v2c does it: It regex matches Duration: (\d{2}:\d{2}:\d{2}) and time=(\d{2}:\d{2}:\d{2}) in stdout/err (forgot which) and computes the percent of time that has been encoded.