0

Original Thread: Download all .m4s files of a mpeg dash stream

echo "IS.mp4" >"links.txt"

seq -f "%06g.m4s" 0 394 >>"links.txt"

wget -i "links.txt" -O "audio.mp4" -B "http://80.188.78.212/aa/ffc8a55fe6f203b0bffecb73efacb69b/1494953435522/eda9c6f7b1e3de68db8e3e5dc0d14fc7/dna-61924494877285694-pc/1002-1502/"

Since I don't have enough 'reputation' score to add my comment in that thread, I've had to start a new thread here..Could anyone translate the Linux command lines above into the Windows version? How to use WGET for Windows?

llogan
  • 63,280

1 Answers1

1

The script creates a file named links.txt, containing filenames to download from a base URL using wget.

The first line of links.txt is simply IS.mp4. You can create that by hand, or using the exact same echo command, which works the same way in Bash and DOS.

The seq command generates a list of filenames like this:

000000.m4s
000001.m4s
000002.m4s
000003.m4s
...
000394.m4s

You can achieve the same using Excel and a simple formula. Copy the result and append to the end of links.txt.

Alternatively, if you have Bash (if not you can easily get from Git Bash), then you can achieve the same that seq is doing like this:

for i in {0..394}; do printf "%06d.m4s\n" $i; done >> links.txt

Finally, in the wget command there's nothing to translate, you can run that command in DOS.

janos
  • 3,505