Skip to content
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

Display percentage progress for encode stages #11

Open
peskdale opened this issue May 28, 2016 · 2 comments
Open

Display percentage progress for encode stages #11

peskdale opened this issue May 28, 2016 · 2 comments

Comments

@peskdale
Copy link
Member

'Encoding Pass X' isn't really sufficient I feel - especially when dealing with longer videos which can take most of a day to encode.

This gist might be a good starting point: https://gist.github.com/marazmiki/3015621

@rrah
Copy link
Member

rrah commented Jul 31, 2016

Tom did try this, at the same time as doing the file move percentage. Can't remember how it was done, but it caused slow-down with the encoding as it would pause, report the percentage, then resume

@tjenkinson
Copy link

We use the ffmpeg -progress flag and then read the output file it generates every second and calculate progress from that.

Send program-friendly progress information to url.

Progress information is written approximately every second and at the end of the encoding process. It is made of "key=value" lines. key consists of only alphanumeric characters. The last key of a sequence of progress information is always "progress".

I decided to go for this over parsing the stdout as I couldn't find the structure of the stdout documented anywhere so was worried it might change in the future.

https://github.com/LA1TV/Website-Upload-Processor/blob/master/src/main/java/uk/co/la1tv/websiteUploadProcessor/helpers/FfmpegProgressMonitor.java

https://www.ffmpeg.org/ffmpeg.html#Main-options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants