-
Notifications
You must be signed in to change notification settings - Fork 47
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
Recording does not allow seeking and does not store the duration #517
Comments
This plnkr (see file ts-ebml-min.js) https://plnkr.co/edit/dTEO4HepKOY3xwqBemm5?p=preview&preview includes a minimized version of
at
Alternatively, the video output by Chromium
Re
Native Messaging can be utilized to run |
So apparently by now all browsers exhibit this problem as the specs do not allow to creating seekable files. The header data of the webm file is given to our JS code very early and the spec says that it won't be changed anymore. So by definition, the duration (or seek data) cannot be written into the header afterwards anymore. Relevant issue: w3c/mediacapture-record#119 The library |
I use ts-ebml minified as an Ecmancript module https://github.com/guest271314/captureSystemAudio/blob/master/native_messaging/capture_system_audio/ts-ebml.min.js
|
Aims at fixing or at least helping with #517. As suggested in #517, this introduces the webm-duration-fix package to Studio. This should fix the "Preview & Trim" step on Chrome (desktop), allowing for playback and seeking in the recorded video. Furthermore, the duration should now be stored correctly in the video metadata. This should not change behaviour in Firefox, as it was already working in Firefox. I have not tested other browsers. Note that recordings downloaded directly from Chrome may still not be playable by all and every media player. This is not something this PR can fix.
Aims at fixing or at least helping with #517. As suggested in #517, this introduces the webm-duration-fix package to Studio. This should fix the "Preview & Trim" step on Chrome (desktop), allowing for playback and seeking in the recorded video. Furthermore, the duration should now be stored correctly in the video metadata. This should not change behaviour in Firefox, as it was already working in Firefox. I have not tested other browsers. I have also only tested this with short (~1 minute) recordings. Note that recordings downloaded directly from Chrome may still not be playable by all and every media player. This is not something this PR can fix.
On Chrome or Edge (which is Chrome now) the recorded video is not well packaged. The container does not even know the duration and does not allow seeking. This is pretty annoying. On the Opencast side we had to adjust workflows... those work now. But if the user downloads the video or wants to skip around in the preview step, they are limited.
This was reported as bug to Chromium, but unfortunately was closed as "won't fix":
I found these two StackOverflow posts discussing this problem:
There seem to be a few workarounds, most notably using ts-ebml.
We should investigate that and probably also use a workaround. In particular, if we want to solve #454 with a simple cutting UI, we really need to fix the seeking issue first.
The text was updated successfully, but these errors were encountered: