GithubHelp home page GithubHelp logo

ntodd / video_transcoding_docker Goto Github PK

View Code? Open in Web Editor NEW
29.0 8.0 15.0 28 KB

Dockerfiles for ntodd/video-transcoding docker images

License: MIT License

Dockerfile 100.00%
docker docker-image video-transcoding

video_transcoding_docker's Introduction

Video Transcoding for Docker

Docker support for https://github.com/donmelton/video_transcoding

The Docker image is available on Docker Hub.

Prerequisites

You must be running Docker for Mac, Docker for Linux, or Docker for Windows.

Usage

To run the video_transcoding gem in Docker, execute the following:

# Docker for Mac & Linux
docker run -itv "`pwd`":/data ntodd/video-transcoding

# Docker for Windows
docker run -itv C:\My\Current\Path:/data ntodd/video-transcoding

This will:

  1. Download the ntodd/video-transcoding Docker image (unless already downloaded)
  2. Mount the current working directory on your host machine as a shared volume inside the container
  3. Run an interactive bash shell with access to your current directory and the video_transcoding cli tools

For best results on Docker for Mac or Windows, set your CPU count in preferences to the maximum available for your machine.

To update to the latest version:

docker pull ntodd/video-transcoding:latest

video_transcoding_docker's People

Contributors

dorgan avatar ntodd avatar stevenlyons avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

video_transcoding_docker's Issues

Multiple platform support

I'm attempting to run this docker image on an Orange Pi 5 by running the following command:

docker run --rm -it ntodd/video-transcoding

Which results in this error:

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
exec /bin/bash: exec format error

Is it possible for you to build the ntodd/video-transcoding image against multiple platforms? Specifically linux/arm64/v8 for this use case.

File permissions on transcoded files

Hi, I am having a challenge with file permissions on transcoded file. unRAID uses a single user: group pair (nobody:users, 99:100) for all files, however this container creates files as root:root with permissions 0666.

I have tried passing environment variables as I do with some of the other containers, but they aren't honored and possibly the container needs to expect them to take advantage?

This is my modified run line which still creates files as root:root 0666:
docker run -it -v "pwd":/data -e UMASK=001 -e PUID=99 -e PGID=100 ntodd/video-transcoding

Any thoughts on how I can get the files created as the correct user:group so the other system software and containers can work with them (other than doing a permissions clean up manually at the end)?

Thank you for pulling this container together and keeping it current with Don's releases.
Kyle

Support for unraid docker

It seems when running this docker from the command line of a docker server even when passing --cpuset-cpu=0-23 transcoding is EXTREMELY slow, to the point where it will take 24+ hours to transcode BD.

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.