Author Topic: Downloading HQ videos from Instagram  (Read 1466 times)

Offline chipperpip

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 79
Downloading HQ videos from Instagram
« on: April 08, 2019, 11:29:22 am »
One thing I just found out about Instagram is that for single-video posts (i.e. not as part of a gallery/multi-image post), there's a higher-quality version of the video than the one you get just playing it embedded on the page. The normal ones are 480x480 or 480x600, the HQ versions of the same videos are 640x640 or 640x800. Some downloaders automatically get the better version, like the site or the Firefox add-on Instagram Video Download (which is what I use, it's the one by lumerias)  [EDIT:  That add-on isn't working at the moment for HQ videos, it seems only download sites are currently].

To use this video as an example, here's the 480x600 version that plays normally:

And here's the clearer 640x800 version I get using the right download site (it's still a direct download from Instagram):

Not sure if there's a way to download a HQ version from mult-image posts or if one even exists, I'll have to try some other add-ons or something.

EDIT:  Replaced the direct instagram example links with reuploads that won't expire, and a better example vid.

UPDATE:  After some recent changes by Instagram that broke some methods, the sites and are back to getting the HQ versions now, but the Instagram Video Download extension still isn't, same for every other Firefox extension I can find
« Last Edit: July 08, 2019, 01:09:54 pm by chipperpip »

Offline mariobkei

  • Full Member
  • ***
  • Posts: 11
    • Email
Re: Downloading HQ videos from Instagram
« Reply #1 on: April 24, 2019, 06:47:18 am »
You can also use for stories or for posts.
Really simple to use

[Note from chipperpip:  I don't actually recommend either of those sites myself, as they failed the get the better-quality versions of videos in my testing, although they should be fine for still photos]
« Last Edit: June 15, 2019, 10:27:48 am by chipperpip »

Offline chipperpip

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 79
Re: Downloading HQ videos from Instagram
« Reply #2 on: May 02, 2019, 05:35:35 pm »
Important note, I've just found out this can also be the case for Instagram Story videos.  Saving the video directly off the website (by right-clicking or using the Media tab in the Firefox Page Info screen) does give you the full-resolution video, but most download sites (like, which I was using before) get a lower-quality version.  It seems like in a lot of cases the LQ version is 480x852 and the HQ is 640x1136, which can make a big difference in clarity.

Of the other download sites I've tested, only these two:
get the higher-quality versions, the vast majority don't.  The Android app StorySaver also does, not sure about other apps.

On a side note, I've started using the free desktop program 4K Stogram, which can be set to just download all IG posts and stories from selected accounts automatically, and seems to always get the higher-quality versions of posts (EDIT:  That only applies for Story videos, see below).

I'm pretty irritated that using in the past means I've lost the chance to download the better versions of some Story videos forever, now that they've expired.

NOTE:  I've found out 4K Stogram only gets the HQ versions for Story videos currently, for standard video posts it gets a LQ version, although it's easy to right-click the thumbnail and bring it up on the website for download of the HQ using a browser extension, etc.  I still recommend it, it's the only way I've found to download Story videos automatically so you don't have to worry about them expiring if they don't get moved to Highlights.
« Last Edit: July 08, 2019, 01:11:44 pm by chipperpip »

Offline chipperpip

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 79
Re: Downloading HQ videos from Instagram
« Reply #3 on: May 06, 2019, 06:31:24 pm »
So, for videos in gallery/multi-image posts, it's more complicated for some reason, but it turns out there is a higher-quality version of the videos available some of the time, it's just harder to get.  I haven't found anything that downloads them automatically, you have to view the page source and search for:


There should be one instance of that for each video in the post (only some posts have this however).  Anyway, further along the same line after that, there should be a block containing an .mp4 video link with some addtional codes that are needed.

I'll use this gallery post of An Da Jeong as an example:

Viewing the source for that page and looking after the first instance of FBQualityClass=\"hd\" in it (there are four in that page, one for each clip), the important block is this:


You first need the video link, including the referral address, from that, so:

But it doesn't work by itself without modifications!

You have to change the /v/ after the first to /vp/, then after it insert the oh= value from the original block and a slash, then the oe= value and another slash after that.  So the final link for this example would look like this:

And that's the working link for the higher-res video (these links are only temporary and expire in a day or so when some of the values in the page source change).  I may see if I can whip up a Greasmonkey script or something to do this automatically, since it's a pain to do by hand, even if I've gotten pretty good at it for videos I want to see clearer.  Another thing to keep in mind is that these versions seem to be encoded differently than others, and in some cases won't actually be higher-quality than the version of the video that plays normally, due to a lower bitrate (I recommend comparing them fullscreen).  The final thing is that they seem to be missing some of the usual .mp4 container info, causing them to play back weirdly or not at all in some programs.  To fix that I use the handy free program FFmpeg Batch, with the parameters:

-c:v copy -c:a copy

(and format set to .mp4) which makes a lossless copy of the video while repairing the .mp4 container.

EDIT:  Revised the post above, after finding out it's still possible to get better versions of these videos, it's just harder after Instagram changed the page encoding.

EDIT2:  One thing that's been pointed out to me is that the better-quality videos taken from gallery posts seem to lack the audio track, I'll have to look into that.
« Last Edit: June 30, 2019, 05:08:34 pm by chipperpip »

Offline chipperpip

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 79
Re: Downloading HQ videos from Instagram
« Reply #4 on: May 06, 2019, 07:09:19 pm »
To sum up my findings, there are 3 scenarios for videos being posted on Instagram:
Single-video posts
Multi-image/gallery posts
Instagram Story posts
(There are also Instagram TV/IGTV videos, which seem to work the same as normal single-video posts for download purposes)

Here are the different ways I've found to get the highest quality videos of each type:

Single-video post
Instagram Video Download Firefox extension
Searching the page source for "og:video"

Multi-image/gallery post
Extracting the higher-res link from the page source and then using FFmpeg Batch to repair the .mp4 container (way harder for these than any other type of video, since there are no automated programs to do it)

Instagram Story post
4K Stogram desktop downloader
Saving the video while it's playing on the website, by right-clicking on it or using the Media tab under Page Info
StorySaver Android app

It would be nice if 4K Stogram would also get the better versions of standard single-video posts, since it can be set to download automatically.  I've emailed the developer about it, hopefully they can fix that.
« Last Edit: May 25, 2019, 11:35:35 pm by chipperpip »

Offline Chainer

  • Administrator
  • Veteran Member
  • *****
  • Posts: 1076
    • Email
Re: Downloading videos from Instagram
« Reply #5 on: May 10, 2019, 12:08:07 am »
Stickying this because it's helpful info.