Video Downloader

Swift

Date: Februar 2023

Information:

Description

An Application to automatically download m3u8 playlist videos fast from the browser and convert them to mp4.

Reason for development

My brother and father needed a way to automatically download videos from a website without needing to open the developer tools in the browser.

Problems I faced

  1. Videos only available after login
  2. M3u8 videos not easily downloadable
  3. Convert .ts to mp4

How I solved them

  1. WebView that automatically logs in with WKWebView‘s evaluateJavascript function.
  2. Asynchronously download video snippets and merge them together
  3. ffmpeg

What I learned

  • How to create a MacOS app with Swift UI
  •   How to download videos with URLSession
  • Automatically fill forms with WKWebView

Resources

Play Video