GithubHelp home page GithubHelp logo

drbrad / flixbox-scripts Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 18 KB

Scripts to help convert videos and subtitles to a valid format for android, web, & chromecast

License: MIT License

Shell 100.00%

flixbox-scripts's Introduction

FlixBox Scripts

Scripts to help convert videos and subtitles to a valid format for android, web, & chromecast

Important

You must have ffmpeg installed.

Reformat

Reformat will format MP4, AVI, & MKV. It will format so that the following is correct:

  • FPS - less than or equal to 30 for 1080p and less than or equal to 60 for 720p
  • Audio Codec - Must be AAC, LC, Channels 2
  • Video Codec - Must Be h264, High, Level 41

Caution

This script does not change or verify bitrate.

./reformat.sh

This will make all of the formatted videos into the converted folder

Track Extract

Track Extract will extract audio and subtitle tracks from MKV files so that you can then modify the tracks for converted MP4s. Use case may be that you have a movie that has the first audio track as Japanese, and you want it to be an English MP4. The way you would go about this is by running reformat, then using track extract, then using refactor tracks.

Note

You can only do 1 track at a time The number after -a or -s indicated the track number starting from 0

Audio Extraction

./track_extract.sh -a 0

This will make all audio as a .mp3 in the audio folder

Subtitle Extraction

./track_extract.sh -s 0

This will make all subtitles as a .srt in the sub folder

Refactor Tracks

This will take all converted videos that have a correlating audio track and make them 1 file. Use case would be an English audio track combined with a Japanese video.

./refactor_tracks.sh

Verify

Verify will verify that the videos have the correct audio and video codecs to let you know if you have to reformat them, this script is not necassary as reformat already checks this.

./verify.sh

Expected output

The file is valid.

flixbox-scripts's People

Contributors

drbrad avatar

Stargazers

 avatar

Watchers

 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.