Download videos from Microsoft Stream with Destreamer (2024)

Osni B. Junior

Posted on

Download videos from Microsoft Stream with Destreamer (3) Download videos from Microsoft Stream with Destreamer (4) Download videos from Microsoft Stream with Destreamer (5) Download videos from Microsoft Stream with Destreamer (6) Download videos from Microsoft Stream with Destreamer (7)

#destreamer #powershell #prompt #git

Presentation

Hello everyone
In these last days I participated in some online lectures that were recorded and made available by Microsoft Stream. Many of these talks, I would like to save offline, to watch during a trip or even listen as a podcast.
There are hundreds (if not thousands) of tools that download videos from YouTube, all online, but unfortunately, none for Microsoft Stream.

It was then that I came across this repository on GitHub and decided to share it with the dev.to community. Enjoy ;)

Prereqs

  • NodeJS
  • NPM
  • FFMPEG
  • Git

How to build

$ git clone https://github.com/snobu/destreamer$ cd destreamer$ npm install$ npm run build

Use

Note: If you are running the destreamer in a Windows environment, it is recommended to use the PowerShell or Prompt scripts.

For use, you can pass some parameters, all of them can be consulted with the destreamer (consult the platform you are using to use the correct extension)

$ destreamer.cmdOptions: --help Show help [boolean] --version Show version number [boolean] --username, -u The username used to log into Microsoft Stream (enabling this will fill in the email field for you). [string] --videoUrls, -i List of urls to videos or Microsoft Stream groups. [array] --inputFile, -f Path to text file containing URLs and optionally outDirs. See the README for more on outDirs. [string] --outputDirectory, -o The directory where destreamer will save your downloads. [string] [default: "videos"] --outputTemplate, -t The template for the title. See the README for more info. [string] [default: "{title} - {publishDate} {uniqueId}"] --keepLoginCookies, -k Let Chromium cache identity provider cookies so you can use "Remember me" during login. Must be used every subsequent time you launch Destreamer if you want to log in automatically. [boolean] [default: false] --noExperiments, -x Do not attempt to render video thumbnails in the console. [boolean] [default: false] --simulate, -s Disable video download and print metadata information to the console. [boolean] [default: false] --verbose, -v Print additional information to the console (use this before opening an issue on GitHub). [boolean] [default: false] --closedCaptions, --cc Check if closed captions are available and let the user choose which one to download (will not ask if only one available). [boolean] [default: false] --noCleanup, --nc Do not delete the downloaded video file when an FFmpeg error occurs.[boolean] [default: false] --vcodec Re-encode video track. Specify FFmpeg codec (e.g. libx265) or set to "none" to disable video. [string] [default: "copy"] --acodec Re-encode audio track. Specify FFmpeg codec (e.g. libopus) or set to "none" to disable audio. [string] [default: "copy"] --format Output container format (mkv, mp4, mov, anything that FFmpeg supports). [string] [default: "mkv"] --skip Skip download if file already exists. [boolean] [default: false]

For example, I had to download some videos and make them manually it would be laborious, so I copied the links and put them in a notepad inside the installation folder.
From there, I ran the command at a Windows prompt:

destreamer.cmd -u USER@EMAIL.COM -f links.txt -k true -x true --skip

-u: I pass the user to login to Microsoft Stream (it is still necessary to enter the password).

-f: It is the file that contains my links, they must be placed one per line. If you want to download a single file, just use the -i option and pass the direct link to the video (read the help or documentation).

-k: I set it to true to keep the session cookie I logged in. Thus, it is not necessary to enter the password in any of the subsequent downloads. Complete automation.

-x: The destreamer tool presents a brief preview of the video being downloaded. To remove this, I set this option to true. The output log is cleaner.

--skip: If any video fails, I can run this entire command again and this parameter will validate that the video has already been downloaded and will ignore it for download.

Source

The complete documentation and new versions of the tool can be found in the official repository:

Download videos from Microsoft Stream with Destreamer (8) snobu / destreamer

Save Microsoft Stream videos for offline enjoyment.

Top comments (4)

Subscribe

Mihai Chindriș

Mihai Chindriș

To be continued.

  • Joined

Oct 6 '23

  • Copy link

very helpful, many thanks!

极客青年

极客青年

  • Joined

Mar 19 '22

  • Copy link

MOHAMED EL MOUKTAFI

MOHAMED EL MOUKTAFI

  • Location

    Morocco

  • Work

    Student

  • Joined

Mar 22 '21

  • Copy link

Thanks brother that's very helpful

Osni B. Junior

Osni B. Junior

  • Work

    SRE & Platform Engineer | Observability | DevOps Advocate

  • Joined

Mar 24 '21

  • Copy link

I'm glad I helped you

For further actions, you may consider blocking this person and/or reporting abuse

Download videos from Microsoft Stream with Destreamer (2024)
Top Articles
Latest Posts
Article information

Author: Rob Wisoky

Last Updated:

Views: 5975

Rating: 4.8 / 5 (48 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Rob Wisoky

Birthday: 1994-09-30

Address: 5789 Michel Vista, West Domenic, OR 80464-9452

Phone: +97313824072371

Job: Education Orchestrator

Hobby: Lockpicking, Crocheting, Baton twirling, Video gaming, Jogging, Whittling, Model building

Introduction: My name is Rob Wisoky, I am a smiling, helpful, encouraging, zealous, energetic, faithful, fantastic person who loves writing and wants to share my knowledge and understanding with you.