Skip to content

Transcode non-h264 video files to a 'direct play' format.

License

Notifications You must be signed in to change notification settings

GijsGoudzwaard/media-transcoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Media transcoder

Transcode all video files within a directory for 'direct play'. This script will search for all video files within a directory and check its codec. If the codec is not h264, then it will be transcoded to h264.

This is especially useful for a raspberry pi media server, where all media from 1080p and up needs to be transcoded in order to be watched properly. This script does not copy any subtitles.

Setup

This script relies heavily on ffmpeg and ffprobe. Make sure that you have this installed, if not run

sudo apt install ffmpeg

Both python 2 and python 3 are supported.

pip install -r requirements.txt

Usage

All available options are specified below. Of all these options, only path is required.

usage: python index.py --path=PATH [--override=False] [--threads=1]

Arguments
    --path (required)
        Location which will be searched for video's and transcoded if they are found.

    --overwrite
        Overwrite the original file with the newly transcoded file. Default is False.

    --threads
        How many CPU cores you'd like to use for transcoding. Default is 1.

About

Transcode non-h264 video files to a 'direct play' format.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages