Can someone explain to me what is going on and how to merge these segments correctly?
I downloaded segments of a video from this site
I used InviDownloader to download the segments and join them. However, when joining the segments what I get is an m4s file with only 11 min of video. And not the full 40 minutes. I also noticed that the files even in numerical order are out of order when joining them.
It is the same with encrypted and unencrypted files
It never merges files correctly, and always generates an incomplete m4s file.
What I do to download the segments is: I go to the end of the video, see the last segment, and place the invidownloader to download from the last segment to the first. Am I doing something wrong? I tried with youtube-dl but it doesn't download from some sites, it always gives an error or says it can't read the url
+ Reply to Thread
Results 1 to 3 of 3
Use curl to merge .m4s into init.mp4 if you wanna go this way (each audio and video separately will have init.mp4 file)
First download the init.mp4 (video) file to the curl folder,then execute this code:
curl.exe -s -L https://.../video/seg-[01-XXX].m4s -o - >> init.mp4
Then download init.mp4 audio file to the curl folder,but rename it to like audio.mp4 so it doesn't duplicate with the video init.mp4
And again execute code
curl.exe -s -L https://.../audio/seg-[01-XXX].m4s -o - >> audio.mp4
Then merge audio with video with any tool you like.
Streamlink should also get it (if it's not under authentication protection) by throwing the .mpd manifest at it:
streamlink.exe dash://"https://...../playlist.mpd" best -o output_file.mp4
Last edited by Sviests; 18th Feb 2021 at 16:33.
Causes ffmpeg and invidownloader to merge files randomly and not in order, causing video problems.
Thanks a lot for the help.