I want to download a streaming video. When I go to Chrome DevTools -> Network instead of a link to the mp4 video I find many links like ...hd4b.mp4/fragment-1-v1.m4s
and other like ...a1.m4s
for audio. There are also an initial ...hd4b.mp4/init-v1.mp4
and ...init-a1.mp4
. There are too many fragments to copy them manually.
So I need to know how to filter all the .m4s fragment links for the .mp4 file I want. There is an answer here that gives me all the links in Networks and after executing it I can paste the links to a file but it gets links that are not part of the .mp4 I want too. It doesn't really matter but it would be nice to get only the links for the ...hd4b.mp4
.
How do I get the video links in one file and the audio ones in another?
What should I do with the init
links? Add them to the list?
Now that I think, the way to get the links would be going to the end of the video and getting the last number and generating the links modifying the number from one to last. How would I generate the links? Answer.
And then when I have the links here's the way to download them but how do I merge the video parts?
And when I have the audio and video how do I combine them in the final mp4?