When I open this page I can see in Firefox Web Developer Tools / “Network” tab that the page loads files with
And then every few seconds it loads a file/stream with
.m4s extension named like
How can I download the whole streamed video of this kind?
I think I need to download all .m4s segments but do not know the Linux command or the Windows software to do it. Then I will need to merge these files to a single .mp4
I already tried InviDownloader, but it has numerous problems.
Answering the question “How can I download the whole streamed video of this kind?”
You can use youtube-dl on the DASH mpd manifest URL to download the video, it worked for me.
Maybe you should make clear in the title if you really want these intermediate m2s files or you just want the whole video file.
1) download IS.mp4 and all *.m4s for video (use
wget) and merge IS.mp4 and *.m4s to one file video.mp4
2) download IS.mp4 and all *.m4s for audio and merge IS.mp4 and *.m4s to one file audio.mp4
3) merge video and audio into one file (use
ffmpeg -i video.mp4 -i audio.mp4 -c copy movie.mkv)
Example how to download audio stream:
echo "IS.mp4" >"links.txt" seq -f "%06g.m4s" 0 394 >>"links.txt" wget -i "links.txt" -O "audio.mp4" -B "http://126.96.36.199/aa/ffc8a55fe6f203b0bffecb73efacb69b/1494953435522/eda9c6f7b1e3de68db8e3e5dc0d14fc7/dna-61924494877285694-pc/1002-1502/"
Initial part for audio stream is IS.mp4, audio consists of 394 parts (in a format of 6 digits) and base URL path for audio stream is
http://80.188..../1002-1502/. All these information can be obtained from
NOTE: base URL of audio and video stream is changed eachtime you play the video