Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blob video duration metadata [duplicate]

I am writing a software that manipulates camera stream video in firefox.

I am generating a Blob with video type recorded with MediaRecorder API.

What i am doing to save the blob as video in local storage is using FileSaver library :

    FileSaver.saveAs(BlobVideo,"video.mp4");

It seems the video doesnt have any max duration, so i cannot navigate in timeline in my newly generated video in VLC, for example.

Is there a way to set duration metadatas on a blob video?

like image 550
Valere Avatar asked Jun 27 '16 20:06

Valere


People also ask

How do you find the duration of a blob video?

You can have this duration from the browser itself by loading the video, setting its currentTime to some extra-value, then reading the duration, but you won't have it attached to the file itself, at least not until the bug has been fixed.

Can we store video in blob?

Azure Blob Storage is one of the features offered by Microsoft Azure. It allows you to store large amounts of unstructured data, including objects such as images and multimedia files.

What is blob in video SRC?

Blob URLs contain pseudo protocols that can create a temporary URL to audio and video files. This type of URL essentially acts as a fake source for the media on the website, so you can't download it directly. Instead, you have to use third-party conversion tools.

How do blobs work?

The Blob object represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data. Blobs can represent data that isn't necessarily in a JavaScript-native format.


1 Answers

This question is an almost duplicate of this other one. (But since there is a bounty on it, we can't vote to close)

This is a known chrome bug.

You can have this duration from the browser itself by loading the video, setting its currentTime to some extra-value, then reading the duration, but you won't have it attached to the file itself, at least not until the bug has been fixed.

like image 197
Kaiido Avatar answered Oct 14 '22 10:10

Kaiido