Support custom video size in markdown #27715
Replies: 4 comments
-
The gif UI is much nicer. Videos get that annoying title bar for filename. |
Beta Was this translation helpful? Give feedback.
-
I have found a workaround for this. I now always record my videos to match the width of GitHub's UI 😅. It works e.g. mui/mui-x#9528 (comment). Now, to be careful, the width is different between issues views (807px) and discussions views (893px). |
Beta Was this translation helpful? Give feedback.
-
Same bug but for images https://github.com/orgs/community/discussions/74738 |
Beta Was this translation helpful? Give feedback.
-
Just blowing the dust off this thread, I don't have anything new to add otherwise. As far as I can tell there are no (reasonable) workarounds. The problem that I often run into is that the inlined video takes up way too much space in an issue description, drowning out other information. In that case some alternatives are to wrap it in a |
Beta Was this translation helpful? Give feedback.
-
Problem
Since https://github.blog/2021-05-13-video-uploads-available-github/ we can upload and embed videos in markdown. This is great, but I have found it unusable in practice. On any macOS device, the device pixel ratio is 2. This is something that GitHub handles well for images, it's able to detect the device pixel ratio and apply the right dimensions.
For example, it renders like this ✅ (1:1 scale, and no blur)
and not, like this ❌ (too big + blurry)
But for video it doesn't work:
Screen.Recording.2022-07-30.at.16.35.36.mov
https://user-images.githubusercontent.com/3165635/181919180-3e5970ea-96c2-4ded-8ba9-c3900ebb97a4.mov
In practice, it means that in releases like this one https://github.com/mui/mui-x/releases/tag/v5.15.0, the videos look strange. I think that it would feel better with a 1:1 scale. If we want high-quality rendering, we are forced to rely on .gif, like it's done by GitHub in https://github.blog/2021-05-13-video-uploads-available-github/#and-upload-your-video-from-anywhere
hoping the gif file size won't be too large:
Generated with
Solution
Beta Was this translation helpful? Give feedback.
All reactions