Skip to content

IvoNet/docker-mediatools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

media tools

This images contains many media cli tools

Why

These tools are not available for the main part on a Synology NAS but I do want to use them there so I made an image and exposed a few volumes to make them work as my NAS does support docker.

and just because I can :-)

What

This images contains the following tools:

  • handbrake-cli
  • mkvtoolnix toolset
  • ffmpeg
  • melt
  • mencoder
  • atomicparsley

Examples

docker run \
   --rm \
   -v "$(pwd):/input:ro" \
   -v "$(pwd):/output:rw" \
   ivonet/mediatools:latest \
   -i "/input/The.BFG.2016.mkv" \
   -o "/output/The.BFG.2016.m4v" \
   -e x264  -q 20.0 -r 30 --pfr  -a 1 -E faac -B 160 -6 dpl2 -R Auto -D 0.0 \
   --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 \
   -X 1280 -Y 720 --loose-anamorphic --modulus 2 -m \
   --x264-preset medium --h264-profile high --h264-level 3.1
  • Removes the 'state' when done
  • Maps the current folder to the input and output volumes of the image
  • uses the ivonet/mediatools images
  • runs HandbrakeCLI with all the options provided as handbrake is the ENTRYPOINT of the image
docker run \
   --rm \
   -it \
   -v "$(pwd):/input:ro" \
   -v "$(pwd):/output:rw" \
   --entrypoint "mkvmerge" \
   ivonet/mediatools:latest \
   --help
  • Removes the 'state' when done
  • Maps the current folder to the input and output volumes of the image
  • make mkvmerge the entrypoint
  • uses the ivonet/mediatools images
  • gives mkvmerge --help as the parameter
docker run \
   --rm \
   -it \
   --name mkvmerge \
   -v "$(pwd):/input:ro" \
   -v "$(pwd):/output:rw" \
   --entrypoint "mkvmerge" \
   ivonet/mediatools:latest \
   -o /output/output.mkv \
   --audio-tracks 2 \
   /input/The.BFG.2016.mkv
  • Removes the 'state' when done
  • Maps the current folder to the input and output volumes of the image
  • make mkvmerge the entrypoint
  • uses the ivonet/mediatools images
  • gives mkvmerge the provided options as the parameter.
    • output file written to output/output.mkv
    • add audiotrack 2 from origional mkv
    • process the /input/...mkv file
  • don't forget the add the input and output folderd in your commandline options.
docker run \
   --rm \
   -it \
   --name mkvmerge \
   -v "$(pwd):/input:ro" \
   -v "$(pwd):/output:rw" \
   --entrypoint "ffmpeg" \
   ivonet/mediatools:latest \
   --help
  • Removes the 'state' when done
  • Maps the current folder to the input and output volumes of the image
  • make ffmpeg the entrypoint
  • uses the ivonet/mediatools images
  • asks ffmpeg to print the help
docker run \
   --rm \
   -it \
   --name mkvmerge \
   -v "$(pwd):/input:ro" \
   -v "$(pwd):/output:rw" \
   --entrypoint "ffmpeg" \
   ivonet/mediatools:latest \
   -i /input/bfg.mkv -map 0 -c:a copy -c:s copy -c:v libx264 /output/output.mkv
  • Removes the 'state' when done
  • Maps the current folder to the input and output volumes of the image
  • make ffmpeg the entrypoint
  • uses the ivonet/mediatools images
  • asks ffmpeg to convert an mkv to mkv but now in x264 format

Reference

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published