question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Filename extension is `.x-matroska` instead of `.mkv`

See original GitHub issue

Description

It seems that Chrome 81 has started reporting the mimetype of recorded videos as video/x-matroska instead of the previous video/webm. This breaks the filename-generation code in videojs-record:

https://github.com/collab-project/videojs-record/blob/1130ed42f8cf927245270c3ed4dcc87a267a0470/src/js/utils/file-util.js#L90

The file extension becomes x-matroska which can’t be played.

This only happens on macOS – Windows is not affected.

Steps to reproduce

Record a video with videojs-record. Get video blob with .convertedData – use .convertedData.name to save file.

JSBin example based off examples/video-only.html:
https://output.jsbin.com/bobexem (source)

Results

Expected

.recordedData.name to be 945380622933178.mkv or 945380622933178.webm

Actual

.recordedData.name is 945380622933178.x-matroska

Error output

No errors.

Additional Information

versions

videojs

3.11.0 (latest, but most likely all previous versions are affected too)

browsers

Chrome 81

OSes

macOS 10.15 (Catalina) down to macOS 10.9 (Yosemite).

Windows 10 is not affected.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pwobcommented, Apr 28, 2020

This is not actually a bug as stated here https://bugs.chromium.org/p/chromium/issues/detail?id=1070856#c4

This happened because according to this table video/webm;codecs=h264 is not really supported in Chrome.

To overcome this issue you should explicitly set video/webm;codecs=vp8,opus as codec,audio mimetype.

0reactions
thijstriemstracommented, May 19, 2020

If you want a fix for this now, try pull request #474. Or wait until v4.0.0 is released.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MKV File (What It Is and How to Open One) - Lifewire
A file with the .MKV file extension is a Matroska Video file. ... Instead, use a program like Any Video Converter to convert...
Read more >
Matroska - Wikipedia
Matroska is a project to create a container format that can hold an unlimited number of video, audio, picture, or subtitle tracks in...
Read more >
[Rethink] Support mkv|matroska|video/x-matroska in Firefox
Well I tried to play a mkv file that is on my cloud (I use Nextcloud) and the file launch on chrome but...
Read more >
video/x-matroska mimetype - Extensions and alternatives
video/ x-matroska. Matroska (sometimes spelled Matroška) is an open standard ... Used in file types . mkv. Copy JSON ... Let's Solve the...
Read more >
Matroska Multimedia Container - Library of Congress
Filename extension, mkv ... Internet Media Type, video/x-matroska ... the use of the Extensible Binary Meta Language (EBML) instead of a binary format....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found