GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-146341: Add new video MIME types to mimetypes.py by clin1234 · Pull Request #146342 · python/cpython

Conversation

@clin1234

@clin1234 clin1234 commented Mar 23, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor
  • Issue: Add more video MIME types with defined file extensions #146341

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@clin1234
clin1234 requested a review from a team as a code owner March 23, 2026 20:11
@bedevere-app bedevere-app Bot added the awaiting review label Mar 23, 2026
@bedevere-app bedevere-app Bot mentioned this pull request Mar 23, 2026
Add more video MIME types with defined file extensions #146341
Open
@clin1234

clin1234 commented Mar 24, 2026

Copy link
Copy Markdown
Contributor Author

Sources:

https://www.iana.org/assignments/media-types/video/3gpp
https://www.iana.org/assignments/media-types/video/3gpp2
https://www.iana.org/assignments/media-types/video/iso.segment
https://www.iana.org/assignments/media-types/video/lottie+json
https://www.iana.org/assignments/media-types/video/mj2
https://www.iana.org/assignments/media-types/video/vnd.ms-playready.media.pyv
https://www.iana.org/assignments/media-types/video/vnd.radgamettools.bink
https://www.iana.org/assignments/media-types/video/vnd.sealed.swf
https://www.iana.org/assignments/media-types/video/vnd.youtube.yt

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@clin1234 clin1234 mentioned this pull request Apr 1, 2026
gh-145917: Add MIME types for TTC and Haptics formats #145918
Merged
@benediktjohannes

benediktjohannes commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

Please also like in the other PRs have a look on the checks and declare why failures are unrelated or fix them if not

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

benediktjohannes
benediktjohannes reviewed Apr 1, 2026
View reviewed changes
Comment thread Misc/NEWS.d/next/Library/2026-03-23-20-14-57.gh-issue-146341.JSTJlL.rst Outdated
- ``.pyv`` for ``video/vnd.ms-playready.media.pyv``
- ``.blk`` and ``.bk2`` for ``video/vnd.radgamettools.bink``
- ``.sswf`` and ``.ssw`` for ``video/vnd.sealed.swf``
- ``.yt`` for ``video/vnd.youtube.yt``

@benediktjohannes benediktjohannes Apr 1, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as in other PR, maybe add your name here and please add 3.15 release notes and maybe combine the PRs

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
benediktjohannes
benediktjohannes reviewed Apr 1, 2026
View reviewed changes

@benediktjohannes benediktjohannes left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise from short overview LGTM! Thank You for your effort!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@clin1234
clin1234 force-pushed the video-mimes branch from 65f5ea9 to 2cef8a4 Compare April 1, 2026 23:48
@clin1234
clin1234 requested a review from AA-Turner as a code owner April 1, 2026 23:50
@clin1234
clin1234 force-pushed the video-mimes branch from 920e34e to 7ace3c4 Compare April 16, 2026 20:32
@clin1234

clin1234 commented May 4, 2026

Copy link
Copy Markdown
Contributor Author

Will this be merged in before beta1, and can this still be merged in during the beta releases?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@read-the-docs-community

read-the-docs-community Bot commented May 4, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35387426 | 📁 Comparing bb699b6 against main (2faceee)

  🔍 Preview build  

463 files changed · + 19 added · ± 443 modified · - 1 deleted

+ Added

  • builtins/constants.html
  • builtins/exceptions.html
  • builtins/functions.html
  • builtins/index.html
  • builtins/stdtypes.html
  • builtins/threadsafety.html
  • builtins/time-complexity.html
  • c-api/pyexpat.html
  • c-api/sentinel.html
  • c-api/slots.html
  • and 9 more...

± Modified

  • bugs.html
  • glossary.html
  • index.html
  • license.html
  • py-modindex.html
  • _static/tachyon-example-heatmap.html
  • c-api/allocation.html
  • c-api/arg.html
  • c-api/bool.html
  • c-api/buffer.html
  • and 433 more...

- Deleted

  • library/asyncio-policy.html
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@StanFromIreland

StanFromIreland commented May 4, 2026

Copy link
Copy Markdown
Member

You have conflicts, please fix them.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@clin1234

clin1234 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

@benediktjohannes @hugovk @StanFromIreland, mind reviewing this PR again?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

hugovk
hugovk reviewed Jul 7, 2026
View reviewed changes
Comment thread Doc/whatsnew/3.15.rst Outdated
John Franey
in :gh:`144217`, :gh:`145720`, :gh:`140937`, :gh:`139959`, :gh:`145698`,
:gh:`145718`, :gh:`145918`, and :gh:`144213`.)
:gh:`145718`, :gh:`146342`, :gh:`145918`, and :gh:`144213`.)

@hugovk hugovk Jul 7, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 3.15 feature freeze has passed, please update for 3.16.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@clin1234
clin1234 force-pushed the video-mimes branch from a58fa54 to d434c74 Compare July 7, 2026 12:38
hugovk
hugovk reviewed Jul 7, 2026
View reviewed changes
Comment thread Lib/mimetypes.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread Lib/mimetypes.py
Comment on lines +684 to +685
'.3gp' : 'video/3gpp',
'.3g2' : 'video/3gpp2',

@hugovk hugovk Jul 7, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have these earlier in the dict:

        '.3gp'    : 'audio/3gpp',
...
        '.3g2'    : 'audio/3gpp2',

So these new video ones overwrite the audio ones.

Should we change it to the video ones, and remove the audio?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@clin1234 clin1234 Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, they're both official MIME types: iana.org/assignments/media-types/audio/3gpp and iana.org/assignments/media-types/video/3gpp. The only major difference as far as I can tell is that the former cannot contain any visual data

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@clin1234 clin1234 Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interestingly, per the official 3GPP TS 26.244 V19.1.0 Specification:

The type "video/3gpp" is valid for all files. It is valid to serve an audio-only file as "video/3gpp".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@clin1234 clin1234 Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And per this RFC: https://www.rfc-editor.org/info/rfc4393/#section-3.2

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@clin1234 clin1234 Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, remove the audio

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread Doc/whatsnew/3.16.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

@clin1234
clin1234 force-pushed the video-mimes branch from 39ebb01 to 9afa4c4 Compare July 15, 2026 19:33
@clin1234

clin1234 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@hugovk, when CI passes, can you review this?

moritajavier239-rgb reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@clin1234
clin1234 requested review from benediktjohannes and hugovk October 11, 2026 09:26
@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Oct 11, 2026
@clin1234
clin1234 force-pushed the video-mimes branch from e3c2785 to 1701acc Compare October 11, 2026 11:20
@clin1234

clin1234 commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

Ping @hugovk @benediktjohannes

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

clin1234 and others added 5 commits October 25, 2026 01:00
@clin1234
Add new video MIME types to mimetypes.py
770c074
@blurb-it @clin1234
📜🤖 Added by blurb_it.
2c92834
@clin1234
Indent
634dc9b
@clin1234
Formatting
f130c40
@clin1234
Omit comma
a3ccedf
clin1234 added 7 commits October 25, 2026 01:00
@clin1234
Again...
b2bd60f
@clin1234
Add name and GH issue in News fragment
536c5a6
@clin1234
Fix syntax errors in mimetypes.py
4cae25e
@clin1234
Format
3a22e6b
@clin1234
Drop list
0c20ce2
@clin1234
CRLF -> LF
0c69915
@clin1234
Mark in whatsnew
bb699b6
@clin1234
clin1234 force-pushed the video-mimes branch from 1701acc to bb699b6 Compare October 25, 2026 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@AA-Turner AA-Turner Awaiting requested review from AA-Turner AA-Turner is a code owner
@hugovk hugovk Awaiting requested review from hugovk
@benediktjohannes benediktjohannes Awaiting requested review from benediktjohannes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

awaiting review type-feature A feature request or enhancement

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@clin1234 @benediktjohannes @StanFromIreland @hugovk
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.