Giter Site home page Giter Site logo

xfayh / convert-videotompegdash Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joeherwig/convert-videotompegdash

0.0 0.0 0.0 16 KB

Convert videos to "Dynamic Adaptive Streaming over HTTP" (DASH)-Videos with powershell and ffmpeg

License: GNU General Public License v3.0

PowerShell 100.00%

convert-videotompegdash's Introduction

convert-videoToMpegDash

Powershell script to convert a MP4 or webm video into MPEG-DASH

  • Creates the multiple bitrate versions to a pre-defined set of resolutions ('160', '320', '640', '1280', '1920')
  • Splits the versions into segments of 1 second (by default)
  • Creates the main MPEG-DASH manifest file.

Dependencies

Installation

Install all dependencies. Please ensure that the path to the ffmpeg.exe is available via the environment-variable PATH like via command line:

set PATH=C:\ffmpeg\bin

Download the convert-videoToMpegDash.ps1 from this repo and save it to the folder of your choice.

Usage

Execute the powershell-script eg with

.\convert-movieToDash.ps1 -original ~\Videos\myVideo.mp4

Parameter

-original is used to set the path to the video that gets converted to a MPEG-DASH set.

Result

The results are stored at the location of the original video source.

What to do with the mpeg-dash stuff?

add dashjs to your website eg via:

<script src="https://cdn.dashjs.org/latest/dash.all.min.js"></script>

then upload the generated files to your favorite HTTPS-Server and include the HTML Video snippet eg.:

  <video data-dashjs-player="" autoplay="" src="myVideo.mpd" controls="" preload="auto">
    <source src="myVideo.webm" type="video/webm">
    <source src="myVideo.mp4" type="video/mp4">
    Your browser does not support the video tag!
  </video>

convert-videotompegdash's People

Contributors

joeherwig 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.