-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
task/progress: Add Progress Tracking to Transcode and Prepare #38
Conversation
e9c0884
to
3ab5944
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a couple of nits. Still hunting for the bug you mentioned though 🧐
3ab5944
to
145b5aa
Compare
1d5e9f3
to
46f4379
Compare
46f4379
to
06d447c
Compare
b20c221
to
0e22e22
Compare
0b4f75c
to
58393c6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor change which is required
task/import.go
Outdated
glog.Errorf("error preparing imported file assetId=%s err=%q", tctx.OutputAsset.ID, err) | ||
// TODO: make these fatal once we're confident about prepare reliability | ||
return "", nil | ||
glog.Fatalf("error preparing imported file assetId=%s err=%q", tctx.OutputAsset.ID, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should not be fatal to the whole process. They should only be fatal for the task.
So instead of a fatal log here you should just return the error instead of ignoring it. Otherwise the whole process will crash and every other unrelated task will fail with it as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Some optional nits in remaining comments
#26 #40
Refactor
ReportProgress
logic to specify progress sub-window between 0 and 100 percent. Percentage progress of getCount/size is applied only to the sub-window of overall progress.Track progress for
transcode
andprocess
tasks using size of segments pushed relative to overall size of the file.transcode
/process
andimport
/process
tasks are 50-50 split between the progress bar, this is easily adjustable.Makes Prepare sub-task failures fatal
Also fixes bug in
probe.go
which causes error whenvideo pixel format
could not be probed from file and is empty