These patches will add a progress bar to display the transcoding status to the user. This uses Drupal's built-in #ahah progress bar to achieve this and works by parsing ffmpeg's stderr on the fly. Comments/feedback welcome as always.
| Comment | File | Size | Author |
|---|---|---|---|
| ffmpeg_wrapper.module.patch | 366 bytes | Nathan Goulding | |
| ffmpeg_wrapper_class.inc_.patch | 2.96 KB | Nathan Goulding | |
| ffmpeg_wrapper_ui.module.patch | 3.04 KB | Nathan Goulding |
Comments
Comment #1
Nathan Goulding commentedTo make it so PHP doesn't exhaust its memory on large files, here's a better while loop:
Comment #2
arthurf commentedThis is super slick. I've made some changes to how you've done this do fix an issue where you transcode the same file more than once, fixed some php warnings, and done some cleanup here and there. Code is committed- test at will!
Comment #3
Nathan Goulding commentedGlad you like it. :) The only thing I can see that could be changed would be to remove:
Which sometimes flashes across the screen briefly before transcoding a file for the first time.
Comment #4
arthurf commentedWoops! Debugging code there.
Comment #5
arthurf commentedDebugging code removed