Skip to content

This repo is used to transcode media files (movies, music, etc) to a format that is compatible with streaming to a ChromeCast.

License

Notifications You must be signed in to change notification settings

MarkCotch/tomp4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tomp4

This script was originally created to help automate the encoding of video files for Chromecast. Chromecast has a very limited set of codecs and container formats that it supports. This script by default relocates the "moov" atom to the begining of the file for faster loads when streaming. Additionally, I found that many video files have weak auto levels for use with Chromecast. By default we encode with higher audio line levels.

This script is dependent on the installation of ffmpeg and a H.264 codec. We now have a preference for using NVidia Hardware encoding (h264_nvenc) when it is available. ffmpeg needs to be build with --enable-cuda --enable-cuvid --enable-nvenc --enable-cuda-sdk .

https://developer.nvidia.com/ffmpeg

It is possible to convert this script to use avconv (found on the RaspPi) and the use of an alternate encoder (e.g. H/W H.264 encoder chip). I did this testing with a RaspPi. I found the arrangement to be a bit erratic but it worked (most of the time). If you want more information on this let me know.

About

This repo is used to transcode media files (movies, music, etc) to a format that is compatible with streaming to a ChromeCast.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published