You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello Khalid, thanks for this project. Im doing a similar software and i have a trick to share. You can use ffmpeg to download only the portion of the video that you need. Consider this example
const ytdl = require('youtube-dl')
const ffmpeg = require('fluent-ffmpeg')
let options = ['-f 18', '--get-url'];
let url = 'https://www.youtube.com/watch?v=zJ7hUvU-d2Q' // 6 hours long video
ytdl.getInfo(url, options, function(err, info) {
if (err) {
return
}
ffmpeg(info.url)
.seekInput('0:20:30') //work best with this format
.duration(20) //seconds
.save('outfile.mp4')
})
This helps to save a lot of time and bandwidth in large videos.
I hope this helps
PS: Sorry for my bad english
The text was updated successfully, but these errors were encountered:
Hello Khalid, thanks for this project. Im doing a similar software and i have a trick to share. You can use ffmpeg to download only the portion of the video that you need. Consider this example
This helps to save a lot of time and bandwidth in large videos.
I hope this helps
PS: Sorry for my bad english
The text was updated successfully, but these errors were encountered: