back
78 comments
It's kind of funny that you still can't upload plain text files with arbitrary extensions when even videos are allowed. Like, try to upload a .json:

> We don’t support that file type. Try again with a GIF, JPEG, JPG, MOV, MP4, PNG, CSV, DOCX, FODG, FODP, FODS, FODT, GZ, LOG, MD, ODF, ODG, ODP, ODS, ODT, PDF, PPTX, TXT, XLS, XLSX or ZIP.

How hard can it be to just allow plain text regardless of file name?

Even just friggin' allowing JSON and XML extensions would solve 80% of this problem. At my work I frequently have to change the extension to .json.txt to get it to work.
You can upload JSON via the GH API
Link to a gist?
I’m sure HN users are aware that there are ways to share files online. File upload exists on the form but it has been arbitrarily limited.
Big fan, as a very active GitHub user the conversion to GIF for screen grabs had been a constant paper-cut
Use Licecap. It creates super-lightweight GIFs if there’s not much movement.
For mac? I have problems seeing any good download site.
Is it really that hard to use screen2gif?
Gif is a dumb waste of bandwidth and space.
gifs are hard to look good and make small, in my experience
It's really hard to make it output small videos with audio!
As a past user of Screen2Gif I can say on Windows ShareX does a very good job of screen capture and recording.
Didn't realise it was a beta feature and have been uploading them for months. Such a great feature, a ten second clip can save paragraphs of ineffective description.
You still need the explanation, videos are not accessible nor search engine friendly.

It's a good complement though.

Why is that relevant for private repositories?
> Today, we’re announcing that the ability to upload video is generally available for everyone across GitHub. Now you can upload .mp4 and .mov files in issues, pull requests, discussions, and more.

Is there a filesize limit?

Yes, but as I recall it's fairly reasonable (maybe 10MB?). A huge pain for GIFs which are huge, but it should be fine for videos.
Any tips on the best software for Windows to record video? Would be nice to be able to record a part of the screen. Also, I am very wary about what I install so please no obscure software.
OBS has a slight learning curve, but I find that it's able to do everything I need, including screen region recording, single window recording, and overlaying/switching between screen and webcam.
How do you record portion of the screeb? Filters > Crop?
Thanks!
If you're recording the full desktop, then use ShadowPlay if you have an nvidia card (it comes with the nvidia software and utilizes the native GPU encoding). Otherwise, use the Xbox Game Bar, which is installed by default in Windows 10.

If you need to record a specific portion of the screen, I'd recommend the open source tool Captura: https://mathewsachin.github.io/Captura/

It's no longer maintained as of July 2020, but it's quite effective at what it does and is not lacking for features. I use it for recording UI interactions all the time.

Windows actually has screen recording software built in now with the XBox Game Bar. It’s meant for recording games but there isn’t any reason that you can’t use it for other programs.
As another comment recommended, ShareX is a very good and popular (if not the most popular) tool for small recordings. Also it's open source, small in size, and it has portable versions available in its repo[0] (so technically you don't have to install anything).

[0]: https://github.com/ShareX/ShareX/releases

ShareX is pretty good for recording short clips/gifs of part of the screen
Screen2gif seems to be an option also
Oh, nice. Just what's needed for game dev bug reports.
It's a good start but it's a shame they are limiting file types at all. We have been using GitLab which has allowed this for a while and we use it to share webm files which unfortunately still appear to be blacklisted by github.
Webm can’t be played on safari, so I imagine it’s for compatibility reasons.
The limited whitelist of video formats is IME secondary to that of uploads in general. Having to put archives in archives because github rejects the original one is painfully dumb.

Had that recently, as GitHub still has no support for private upload I wanted to upload an age-encrypted tarball of the logs / repro (incidentally this otherwise works extremely well as github exposes public keys through an endpoint, you can just age with a few `-r$(curl …)` and you have a file decryptable by all the specified github users, really convenient).

But then I had to zip the entire thing again…

Honest question because I might be behind on how common environments behave: is webm the format your OS/device/workflow produces by default or one you convert to for sharing/optimization?
Webm files can be uploaded by renaming them to mp4s.
Why use "blacklisted" here? Why not just say not allowed...
Wonder if this will work for GitHub Pages as well. I've been using video uploads for issues but when I tried the same for some documentation on GitHub Pages I had to use <video> tags instead.
I wonder if Google search is going to be the primary interface through which people will end up reaching some of the helpful videos.
Little pet peeve, but one can't upload pics to Github wiki without first dropping it into PR, then copying resulting link.
If you tweet that at @natfriedman or find the product manager, they’ll add it soon. They just added file uploads to the file editor so they might also add it to the wiki (if they haven’t already)
I really hope this comes to GHE!
Dope. Will make writing guides so much easier. And I do mean written guides. Just sometimes they could use a little context with short clips.
Sweet jesus, fucking love you github. Was surprised i can upload images already, this one is way way cooler.
Will GitHub become an alternative to YouTube?
Being a video streaming alternative seems antithetical to the whole code repository thing.

Smart thing to do would be to take a vertical chunk of hacker/dev/bug fix content that youtube has neglected over the years.

It might for security professionals given YouTube's hostile policy towards content on "hacking".
ctrl-f of 'lfs' yielded no results, are those files gonna clutter git repos?
GitHub issues are not stored in git. This is just video attachments in the text of issues.