Closed adib1996 closed 3 years ago
https://instagram.ffjr1-4.fna.fbcdn.net/v/t50.2886-16/131687230_388727058869326_3901901103341180755_n.mp4?_nc_ht=instagram .ffjr1-4.fna.fbcdn.net&_nc_cat=110&_nc_ohc=DO0V2EPdiqEAX-EbIwf&oe=5FE1FCD0&oh=8f8e0506f15cb4ac3766a0ec3606758e: Resource t emporarily unavailable
Looks like the video you tried to analyze was temporarily down. If the errors persists, is it possible that Instagram is throttling or preventing your server from reaching the file?
Apologies for the delayed response. Didn't get notified by Github. It seems that Instagram puts up a auth wall asking us to log in hence this happens. My local has cookies from my previous sessions so that helped bypass it.
I wrote a little code in javascript with ffmpeg that might help with anyone who faced a similar issue
const ffmpeg = require('fluent-ffmpeg');
module.exports = getVideoDurationInSeconds = async function (url){
return await new Promise((resolve, reject) => {
ffmpeg.ffprobe(url, function(err, metadata) {
resolve(metadata.format.duration);
});
})
}
Apologies for the delayed response. Didn't get notified by Github. It seems that Instagram puts up a auth wall asking us to log in hence this happens. My local has cookies from my previous sessions so that helped bypass it.
I wrote a little code in javascript with ffmpeg that might help with anyone who faced a similar issue
const ffmpeg = require('fluent-ffmpeg'); module.exports = getVideoDurationInSeconds = async function (url){ return await new Promise((resolve, reject) => { ffmpeg.ffprobe(url, function(err, metadata) { resolve(metadata.format.duration); }); }) }
Thanks! This did it for me.
Hello!
When trying to run this piece of code, it works fine on my local machine.
However when trying to run this on a Remote Server running Ubuntu, I'm met with this error.
I can't think of any other reason why this is showing up aside from having different OS. I've installed get-video-duration on both machines.
Thanks in advance