Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
23rd September 2019, 21:06 | #462 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
At least not that I'm aware of, from what I know you have to calculate it yourself by parsing the blocks.
I hoped there might be some additional (and 'new') data somewhere providing the info, since parsing the whole output is a pain for large files with xy streams. Cu Selur |
24th September 2019, 09:09 | #463 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
For video stream detecting the stretch is easy you could compare the 'Codec's private data: size' and the 'Default duration' for the stream. My guess is this is how MediaInfo reports container vs. stream fps.
Sadly for audio streams (even if the frame size should be constant), you only sometimes have a 'Default duration' info and I haven't seen any 'Codec's private data: size' so far. :/ -> @Mosu: would it be possible to simply keep a single entry per stream which shows how much a streams duration was stretched in case this happens? Or is there some easy way to calculate stretch value? |
30th September 2019, 07:05 | #465 | Link |
李姗倩 Lǐ Shān Qiàn
Join Date: Nov 2002
Posts: 1,340
|
Font file: Which attachment-mime-type should I use?
Hi! I'd appreciate any input from anyone.
Currently, when attached via GUI on Windows, a TTF file seems to get --attachment-mime-type application/x-truetype-font by default (*), an OTF gets --attachment-mime-type application/vnd.ms-opentype. On the other hand, RFC 8081 in Feb 2017 defined the official Media Types for them, font/ttf and font/otf, respectively, and there is also font/sfnt. My friend who muxes on Mac actually gets "application/font-sfnt" then "font/sfnt" by default for TTF, saying mkvmerge (on Mac) probably updated how it does things. Hence this ongoing debate among our group: Opinion 1: We should now use the standardized media types (e.g. font/ttf), instead of non-standard wild types such as "application/x-font-ttf". Opinion 2: We shouldn't. That will confuse many players, and the fonts won't be loaded/used properly. In the long run, maybe we should start using "font/ttf" sooner or later, but if there is some kind of guideline that says that for maximum interoperability/compatibility one SHOULD keep using "application/x-truetype-font" for TTF in Matroska, perhaps that makes sense too. @Mosu Do you (or Matroska devs) have any specs/opinions/plans about this matter? (*) Very early versions of mkvmerge may have used "application/octet-stream", if I check old MKV files muxed in 2003-2004. Last edited by Liisachan; 7th October 2019 at 10:13. Reason: FIX: RFC 8081 in Feb 2007 -> Feb 2017 |
30th September 2019, 08:32 | #466 | Link | ||
SuperVirus
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
|
Quote:
Fonts never ever should have been defined as "application/something", to begin with. That suxxx as badly as configuring a web server to define a video file as "application/x-oleobject" ~woman facepalming emoji~ Quote:
Last edited by filler56789; 30th September 2019 at 08:36. |
||
30th September 2019, 09:30 | #467 | Link |
Registered User
Join Date: Jul 2015
Posts: 705
|
From my point of view, I don't care what type we use. I was more interested in the possibility of adding ttf to subtitle and then playing. Under the condition that the recipient likes to watch with subtitles. If the ttf size was over 4MB, the movie didn't play on my computer. So what are we discussing?
|
30th September 2019, 11:19 | #468 | Link | |
李姗倩 Lǐ Shān Qiàn
Join Date: Nov 2002
Posts: 1,340
|
Thanks for the comments.
Quote:
@Jamaika You can use font subsetting so that only the glyphs used in your script will be supported. Say, you have a CJK font (4 MiB) supporting 40,000 glyphs, but you actually use 2,000 glyphs, then your compacted font will be like 0.2 MiB, which you can attach to your MKV instead of the huge original font file. If we use "font/ttf" now, potentially many existing players won't load the attached TTF files. One example of such players is the last official version of MPC-HC from 2017, perhaps still used by a few people. We geeks can just use a newer (unofficial) MPC-HC for example, but that's something like using ECMAScript 2017 in an webpage simply because "our" nightly builds support it, ignoring normal users with regular browsers who want to enjoy the same page (but will experience problems). Last edited by Liisachan; 30th September 2019 at 20:57. Reason: made the important part bold; changed 1 word (options->answer) |
|
30th September 2019, 11:31 | #469 | Link | |
Registered User
Join Date: Jul 2015
Posts: 705
|
Quote:
About ttf: I read convert everything to otf. There are converters. How many votes so many ideas. Last edited by Jamaika; 30th September 2019 at 11:34. |
|
30th September 2019, 16:53 | #470 | Link | |
SuperVirus
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
|
Quote:
And yes, someone did something that was not-smart-at-all. Namely, the ones who decided that "application/sth" should be the umbrella label for anything that they were too lazy to classify properly... For example, they should have chosen archive/zip, archive/rar, document/pdf, document/msword, document/msexcel, mmedia/mp4, etc, instead of application/zip, application/rar, application/pdf and so on. |
|
30th September 2019, 23:15 | #471 | Link |
李姗倩 Lǐ Shān Qiàn
Join Date: Nov 2002
Posts: 1,340
|
Let me clarify the context of my original question:
1. A media player that supports softsubbed MKV won't load the attached font files if it doesn't recognize them as fonts. Then styled subs will be broken (shown with some system default fonts), unless the attached fonts are already installed. This is bad! 2. Many programs (splitter, demuxer, etc.) seem to recognize an attached file as a font by checking its MIME type. So, in principle, you want to use an attachment-mime-type that makes every tool happy. But if "application/x-truetype-font" is going to be obsolete soon, we may want to discard backward compatibility. Thus the original question: what should I type after --attachment-mime-type when attaching a TTF: "font/sfnt" as seen on Mac, "font/ttf" as in RFC, or actually "application/x-truetype-font" after all? @Jamaika Subsetting is supported by Windows OS itself. It's widely used when embedding fonts in general, and there is no license problem unless subsetting is forbidden in fsType in the 'OS/2' table of that font. Since this is off-topic, you can start a new thread and/or PM me if interested. @filler56789 To use new top-level types ("archive", "document", etc.), you MUST first define them via RFC, which would be probably time-consuming. But I see your point - e.g. "application/vnd.ms-opentype" looks a bit ugly (why ms- when it's supposed to be an open standard). |
4th October 2019, 18:18 | #472 | Link |
Registered User
Join Date: Dec 2007
Posts: 128
|
Mvc - 3d
hi
after some significant time, I wanted to check what the timeline might be for the muxing of MVC mkv-files... here was the last reference to this...: https://forum.doom9.org/showpost.php...postcount=5078 as can be seen here 3D is still of interest to many people, as also the tsmuxer open source project shows: https://forum.doom9.org/showthread.p...21#post1879321 for a Fantasy / SciFi enthusiast 3D is still a topic, even when some people frown on it as on Micro-Plastic... |
6th October 2019, 13:02 | #473 | Link | |
MKVToolNix author
Join Date: Sep 2002
Location: Braunschweig, Germany
Posts: 4,281
|
Quote:
However, that was quite a long time ago. I don't think there's a definitive answer at the moment, though, as I'm not aware of any research/comparison of application wrt. them supporting "font/…". We would all benefit from a comprehensive test of all known implementations that support fonts in Matroska; try using both MIME types and create a mapping which implementation support which MIME type. My gut feeling would be that there are still implementations out there that don't support "font/…", but I don't have any evidence for it. Edit: Depending on the result I would definitely change MKVToolNix' default back to "font/…"; maybe make it configurable in the GUI for those who'd need backwards compatibility. [1] Even though GitLab shows that the bug was "opened 4 years ago", that's only the date when I migrated the bug tracker to GitHub (!); the original dates couldn't be kept during that migration. The original bug was filed in 2011.
__________________
Latest MKVToolNix is v83.0 If I ever ask you to upload something, please use my file server. Last edited by Mosu; 6th October 2019 at 13:06. |
|
6th October 2019, 14:16 | #474 | Link |
MKVToolNix author
Join Date: Sep 2002
Location: Braunschweig, Germany
Posts: 4,281
|
MKVToolNix v38.0.0 released
Looks like it's time for MKVToolNix v38, which continues the bug-fixing tradition of previous releases.
There's one minor change wrt. packaging: Boost's Operators header library is now required. Here are the usual links: the MKVToolNix home page, the Windows installer/portable version & macOS DMG & Linux AppImage and the source code. The Windows and macOS binaries as well as the Linux AppImage are available already. The other Linux binaries are still being built and will be available over the course of the next couple of hours. Here are the NEWS since the previous release: Version 38.0.0 "The Silent Type" 2019-10-06 New features and enhancements
Bug fixes
Build system changes
Have fun
__________________
Latest MKVToolNix is v83.0 If I ever ask you to upload something, please use my file server. |
7th October 2019, 06:34 | #475 | Link | |
李姗倩 Lǐ Shān Qiàn
Join Date: Nov 2002
Posts: 1,340
|
Mosu: thank you very much for your detailed answer/clarification!
Quote:
Those players marked NO do support an embedded TTF with the FileMimeType "application/x-truetype-font". So your gut feeling seems correct (e.g. MPC-BE from April 2019 does not support "font/"). I'd say it's still too early to migrate to "font/". As a side note, it seems that when you mux a file on Mac, "font/sfnt" is used by default for TTF and "application/vnd.ms-opentype" for OTF; which is less than ideal even if one prefers "font/". RFC says, Use of "font/sfnt" is likely to be rare in practice. I.e. if you do use "font/", "font/ttf" should be used for TTF, not "font/sfnt"; and "font/otf" should be used for OTF, not "application/vnd.ms-opentype". |
|
7th October 2019, 07:26 | #476 | Link | |
Registered User
Join Date: Apr 2008
Location: Russia, Vladivostok
Posts: 2,787
|
Quote:
__________________
AMD Ryzen 5 3600 /GIGABYTE B450 Gaming X /Patriot 32Gb@3200 /Kingston 500Gb M.2 /RTX 4060 /Samsung U28R550UQI /OLED Philips 55OLED707 /Yamaha RX-V471 + NS-555 + NS-C444 + NS-333 + YST-SW215 |
|
7th October 2019, 08:11 | #477 | Link | |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
|
Quote:
I have, however, added support just now for future versions. Software like ZoomPlayer that also uses LAV Filters should automatically inherit this support once its updated accordingly.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders Last edited by nevcairiel; 7th October 2019 at 08:20. |
|
7th October 2019, 09:10 | #478 | Link | |
MKVToolNix author
Join Date: Sep 2002
Location: Braunschweig, Germany
Posts: 4,281
|
Thanks!
Quote:
Catch 22, once more. Great to hear that both Aleksoid1978 and nevcairiel will add support for "font/…".
__________________
Latest MKVToolNix is v83.0 If I ever ask you to upload something, please use my file server. |
|
7th October 2019, 09:50 | #479 | Link | |
李姗倩 Lǐ Shān Qiàn
Join Date: Nov 2002
Posts: 1,340
|
Quote:
Test1 font/ttf Test2 font/sfnt Test3 application/font-sfnt Test4 font/otf Ideally, something like this is shown: Above = hardsubbed Below = softsubbed <-- check this (PNG) |
|
7th October 2019, 11:12 | #480 | Link | |
Registered User
Join Date: Apr 2008
Location: Russia, Vladivostok
Posts: 2,787
|
Quote:
It is interesting - who and why come up with different names for the same types. What diff font/sfnt & application/font-sfnt ?? P.S. Do you have spec for new font/ mime types ?
__________________
AMD Ryzen 5 3600 /GIGABYTE B450 Gaming X /Patriot 32Gb@3200 /Kingston 500Gb M.2 /RTX 4060 /Samsung U28R550UQI /OLED Philips 55OLED707 /Yamaha RX-V471 + NS-555 + NS-C444 + NS-333 + YST-SW215 Last edited by Aleksoid1978; 7th October 2019 at 11:28. |
|
Tags |
matroska |
Thread Tools | Search this Thread |
Display Modes | |
|
|