-
Notifications
You must be signed in to change notification settings - Fork 56
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
Video previews often don’t display for large files even when navigating away and returning #18
Comments
I think the issue there is that for large files it will just take a very long time to process (eg several hours). A couple of options1.There are ways to make webmtranscoding fasterffmpeg -i input -vcodec libvpx -cpu-used -5 -deadline realtime out.webm Might also be worth looking into what are the parameters that effect transcoding speed in ffmpeg. 2. give progress updateffmpeg fluent exampel code for printing out progress, maybe with callback this can be used to make a more meaningful progress bar of transcoding of webm? .on('progress', function(progress) {
// progress
//{"frames":null,"currentFps":null,"currentKbps":256,"targetSize":204871,"timemark":"01:49:15.90"}
console.log('Processing: ' + progress.timemark + ' done ' + progress.targetSize+' kilobytes');
}) this however does not solves the problem that it will take a long time,and if you close the app it will interrupt the process and not resume when you open it again. Handbrake vs ffmpegAnother option is to use handbrake instead of ffmpeg and see if that's faster. Change to oggChange to ogg and see is if it's faster. Web Chimera / VLCwebchimera uses VLC to play any codecs, and can used with NWJS. Also on npm. Demo repo
A possible solution is use WebChimera to show the original media, while the preview is being processed. Downside is that not linking to the original media allows more flexibility and decoupling. Reminiscent of offline/online traditional video editing workflow. However this introduces using canvas to play the video. Meaning all the HTML5 video api functionality to keep text and video in sync would need to be re-thought. A few considerationsA couple of constraints to keep in mind when thinking about this:
|
Now that autoEdit has transitioned to electron, could revisit adding |
Changed to faster transcoding using mp4 for preview, needs testing difference |
@pietrop - I know it's been a while since this issue has come up. I'm also experiencing the "Video is being processed" error. Same situation is occurring as the issue described in this ticket. Transcriptions were processed through Speechmatics successfully about 3 days ago (Dec. 3rd, 2018) The difference was my file sizes varied (as listed below):
I'm assuming the first video in this batch is what triggered the "Video is being processed" for all the rest of the videos in this batch. Maybe. I've tried to replace the .mp4 file generated in autoEdit's system resources folder, thinking this may allow the app to read the video file, but no luck. (replaced in: Any thoughts on how to help autoEdit generate these video previews? Or maybe where to place them manually in the app's resources? |
Hi @jondrometa86 , Where to look to improve transcoding speed of video preview
The module responsible for the conversion is this one you could try and play around with it in isolation and see if it takes long to convert your file. You can see an example usage here note that the ffmpeg binary attribute is optional if you have ffmpeg installed on your mac it will pick up on that one. If you want to use the same ffmpeg used by autoEdit, you can use this module Manually change file path for a stuck video
If you open the inspector console in autoEdit and type Where You should see something like this if you expand the triangle. if so the trick here is that once you f you replace the file in then you can do Let me know if it's not clear or it doesn't work. QuestionAre you able to say a bit more about the file you are ingesting? what file format? file size? is it directly from a camera or is being transcoded etc.. this might shed some light on edge cases |
@pietrop - Thanks for the quick reply and potential solutions. I'll dive deep tomorrow and see if I can troubleshoot using your methods. To your question:The files I'm ingesting are h.264 proxy file, transcoded using a custom preset in Adobe Media Encoder. File resolution: a weird 854 x480 (massive compression from the original 4K file). Perhaps the "854" dimension is the issue? I'll do some more testing on my end and report back. EDIT: Before this batch, I had tried working with autoEdit2 using similar interviews with this exact transcode preset. The difference was the length of the interviews (much shorter, thus smaller files), which tells me this might be a file size issue. |
What file size do you get from these transcoded files? |
Here are transcoded file sizes in the order they were uploaded to Speechmatics via autoEdit2:
Looking back now, it appears I processed the largest file last. The problem must have begun on the first .mp4 file (89MBs) |
ah, sorry, now I noticed you had already put the file sizes in the previous comment. Ok, the file size should not be an issue then. 🤞 I am curious tho, if you go into |
@pietrop,
After replacing the clip and then setting the processVideo to I would then check on the video's status again by using its proper index I attempted replacing the file in I suppose I'll need to dive in to the processing module you mentioned and see what can be done from there. Regarding your last question:
The file size for each was 0MB, so maybe it was an error during the initial transcoding process? (never occurred, left hanging for eternity.) For now, I've been using the audio and transcript in autoEdit2 to work with these interviews. I'll export an EDL to Premiere Pro and reconnect them to complete the edit. |
Per the test plan, there is a known issue where the preview does not self-update when the video is done processing and users must go back to the list and then open the transcript for it to display. Currently, however, it appears that the preview does not display for larger video files even when navigating away and returning. It remains “Video is being processed” indefinitely.
File sizes where this occurred thus far:
193MB
392MB
The file in the below example was uploaded on Friday and still shows as processing:
The text was updated successfully, but these errors were encountered: