Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Videos without sound in 5.0.4 #78

Open
AaronLil opened this issue Dec 15, 2022 · 18 comments
Open

Videos without sound in 5.0.4 #78

AaronLil opened this issue Dec 15, 2022 · 18 comments

Comments

@AaronLil
Copy link

I've just tested the new version, 5.0.4, and found an issue. Videos in posts and reels are coming with no sound. In stories they are ok. Using Chrome desktop, version 108.0.5359.125 (latest).

@Xemacs64
Copy link

I'm also having the same issue, please fix this

@purple5pumpkin235
Copy link

same problem on Firefox with 5.0.4

@AaronLil
Copy link
Author

AaronLil commented Dec 30, 2022

@theus, Some useful info: the audio issue is because Instagram uses an mpeg-dash implementation and it seems that by default videos don't have audio attached to it and the mpd file has a single audio/mp4 representation which is used regardless of the quality of video displayed in on browser.

Debugging your code, I saw that it is possible to get the audio using querySelectorAll('Representation[mimeType="audio/mp4"]') on the object, but unfortunately I can't think of a solution to join video and audio in a single file without using a third party solution, like ffmpeg or youtube-dl.

Perhaps Instantgram has reached to the point where it'll be necessary to evolve beyond a bookmarlet. An extension maybe, idk.
I'm available if you need any help with this.
Best Regards.

@AnimeGeekDraws
Copy link

I JUST got 5.04 and currently dealing with the same issue. It's literally been a month since y'all posted this, so please fix it.

@Rocket3192
Copy link

Using edge, I don't have this issue

@Rocket3192
Copy link

Actually, I have it but not on all videos

@theus
Copy link
Owner

theus commented Feb 8, 2023

It looks like Instagram it's changing its code more frequently 😢. But I'm going to try to find a fix.

@Rocket3192
Copy link

So about that matter, i figured when it opens without sound you just need to refresh the post and try again, it's not really broken

@AaronLil
Copy link
Author

It looks like the problem has to do with the browser/user agent. Depending on the request Instagram sends the best compatible video for that browser. Maybe that's why it works for some people and not for others.

@theus
Copy link
Owner

theus commented Feb 20, 2023

@AaronLil yeah, that makes sense.

@theus
Copy link
Owner

theus commented Feb 20, 2023

Can you guys share a post link that is getting a video without audio?

@AaronLil
Copy link
Author

AaronLil commented Feb 20, 2023

@theus, I just tested it on Chrome and Edge and luckily I couldn't reproduce the issue.

This video certainly had the sound issue, but now it's working.
It's possible that Chrome or Instagram have updated their behaviors about this.

@theus
Copy link
Owner

theus commented Feb 20, 2023

@AaronLil yeah, I tested it here and it's working with sound. Should we close this issue for now? 🤔

@ghnp5
Copy link

ghnp5 commented Feb 20, 2023

I also had a few days/weeks of downloads without sound, but I believe this has been working well for me lately anyway.

Maybe go ahead and close this, and if we have issues again, we'll raise a new one or so :)

Thanks!!!

@Rocket3192
Copy link

Rocket3192 commented Feb 21, 2023

@theus So I managed to generate 2 links of the same video, one containing the audio and the other one not containing it (I just refreshed the post to obtain the one containing the audio)

This one has no audio :

https://scontent.cdninstagram.com/v/t66.30100-16/311355025_2738600936269910_8540627965462010159_n.mp4?_nc_ht=scontent-cdg2-1.cdninstagram.com&_nc_cat=102&_nc_ohc=jiWgqRrzO4sAX-PVV-K&edm=ACWDqb8BAAAA&ccb=7-5&oh=00_AfAdJmMQhknMZOhlKrvYh2WKHxquNU_Z_t7Pmx9-8D_-rg&oe=63F5C956&_nc_sid=1527a3

This one has audio :

https://scontent.cdninstagram.com/o1/v/t16/f1/m82/86435F8C8D7EBCF78764FD5E093779BE_video_dashinit.mp4?efg=eyJxZV9ncm91cHMiOiJbXCJpZ193ZWJfZGVsaXZlcnlfdnRzX290ZlwiXSIsInZlbmNvZGVfdGFnIjoidnRzX3ZvZF91cmxnZW4uNzIwLmNsaXBzLmJhc2VsaW5lIn0&_nc_ht=scontent-cdt1-1.cdninstagram.com&_nc_cat=105&vs=1175941639587570_183274590&_nc_vs=HBksFQIYT2lnX3hwdl9yZWVsc19wZXJtYW5lbnRfcHJvZC84NjQzNUY4QzhEN0VCQ0Y3ODc2NEZENUUwOTM3NzlCRV92aWRlb19kYXNoaW5pdC5tcDQVAALIAQAVABgkR01yZzloTDNrZVQwQjVzQUFOYTAxRmYxaDE4TmJwUjFBQUFGFQICyAEAKAAYABsAFQAAJvqoqbfjg8I%2FFQIoAkMzLBdAMQAAAAAAABgSZGFzaF9iYXNlbGluZV8xX3YxEQB1%2FgcA&_nc_rid=354fa3955f&ccb=9-4&oh=00_AfASg6jzfPSvJY6-lZLbbHuZlvRhTAHrwKRbtgQqieDJZg&oe=63F58D67&_nc_sid=30a2ef

Curious thing, even the name is different
311355025_2738600936269910_8540627965462010159_n.mp4
VS
86435F8C8D7EBCF78764FD5E093779BE_video_dashinit.mp4

VERY IMPORTANT :
This is not the only difference, the biggest one is the resolution, one is in 1080x1920 the other one is in 720x1280 and the very sad thing is that the one with the best quality is the one MISSING the audio
It means that most likely all videos that you downloaded with sound working are actually not the best available quality

Using a famous insta downloader website it gives me the 1080x1920 file with audio and the URL is :

https://scontent.cdninstagram.com/v/t66.30100-16/323771822_5758755634222215_6580089131176168590_n.mp4?_nc_ht=scontent.cdninstagram.com&_nc_cat=103&_nc_ohc=l5DrJAaZ304AX_YV68J&edm=APs17CUBAAAA&ccb=7-5&oh=00_AfAjD7MkbCvlJb2NhiBPFhy9SeqbRF8hyn9VPyxCE8ONlQ&oe=63F5F96E&_nc_sid=978cb9&dl=1

That's again a new name :
323771822_5758755634222215_6580089131176168590_n.mp4

PS : That's this video https://www.instagram.com/p/CoXoNgUD0TL/

The 3 files if you wanna compare them :
https://gofile.io/d/pqG4xM

@Rocket3192
Copy link

Rocket3192 commented Feb 21, 2023

I tested with others videos, and yep comparing with the one a download website gives me :
instantgram game me :
480x854 F941229048677B59AF68B88777310CA7_video_dashinit.mp4 with sound
Website gave me :
720x1280 331154128_1202528887320202_9107745204584526551_n.mp4 with sound
It really seems like the "dashinit" file is not the maximum quality file, but it's the file that instantgram is getting, the one without audio that instantgram is randomely getting is the atual maximum resolution file, but for some reason it has no audio unlike the lower resolution dashinit one

So the goal would be to get the non dashinit one, with audio, using the gal gadot post example with the 3 different names you can try to target the same one the website is getting : 323771822_5758755634222215_6580089131176168590_n.mp4

@ramirezrick
Copy link

Still issue with sound

@theus theus mentioned this issue Oct 18, 2023
@theus
Copy link
Owner

theus commented Oct 18, 2023

Looks like Instagram sometimes (have no idea why) changes the way that videos works. It seems they split audio / video in different files and the app merges somehow like sorcery 🤯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants