Git Product home page Git Product logo

java-video-downloader-util's Introduction

java-video-downloader-util

Transport Stream (TS) video downloader utility. Applicable for downloading *.ts video files from websites.

Detail Article

https://jet-cabral.medium.com/java-ts-video-downloader-a0fcf23ab84a

System Requirements

  1. Java version 8+ --> https://www.oracle.com/java/technologies/javase-downloads.html
  2. Maven --> https://maven.apache.org/install.html
  3. Install FFmpeg --> https://ffmpeg.org/download.html

Usage:

* The downloaded output video can be found under: /<_your-system_>/java-video-downloader-util/VideoOutputDirectory/Full_Video.ts

* The website's HAR log file can be found under: /<_your-system_>/java-video-downloader-util/HttpArchiveOutput/trace-website-http-requests.har

IDE:

  1. Run as mvn project
  2. Pass the website url as the 1st and only cmd line args https://website-with-video.com

Command Line Maven:

  1. mvn clean compile exec:java -Dexec.cleanupDaemonThreads=false -Dexec.mainClass="com.video.downloader.MainVideoDownloader" -Dexec.args="https://website-with-video.com"

EXAMPLE USAGE

Utility Execution steps

  1. Search and find m3u8 file http requests in Website (Uses Selenium and Browsermob proxy to run Chrome and capture http requests. Http Archive HAR file is created in /<your-system>/java-video-downloader-util/HttpArchiveOutput/trace-website-http-requests.har
  2. Identify M3U8 master playlist file and pick out the best quality bit rate variant m3u8
  3. Download/Read m3u8 text file which contains all path references for video *.ts file urls
  4. Multi-thread video *.ts file downloads
    • Utility implements retry logic for any unsuccessful *.ts file downloads
  5. Download and write each individual *.ts file to /<your-system>/java-video-downloader-util/VideoOutputDirectory/.
  6. Run/Execute ffmpeg command to concat all *.ts files into a single output Full_Video.ts file under /<your-system>/java-video-downloader-util/VideoOutputDirectory/Full_Video.ts

References

Considerations

  • This utility has only been tested on a Windows 10 OS machine. Functionality is not guaranteed on another platform

java-video-downloader-util's People

Contributors

jet-c avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.