Sign inSign up

puritys/ffmpeg

By puritys

Updated over 7 years ago

A ffmpeg image, You could easily convert video to another format

Image
0

336

puritys/ffmpeg repository overview

Set Alias

function ffmpeg_fn() {
    command=" $@ "
    pwd=`pwd`
    owner=`whoami`
    command="docker run -it --rm  -v $(pwd):/temp_dir -w /temp_dir puritys/ffmpeg ffmpeg $command"
    echo $command
    $command
}
  • ffmpeg_fn -i xx.mov -vf scale=640:360 xx.mp4
  • Screenshot: docker run -it --rm -v /home/puritys:/temp_dir -w /temp_dir puritys/ffmpeg ffmpeg -i test.mov -ss 00:00:05 -vframes 1 test.png
  • Screenshot: ffmpeg_fn -i test.mov -ss 00:00:05 -vframes 1 test.png
  • Sped up 5 times: ffmpeg_fn -i input.mp4 -an -filter:v "setpts=0.2*PTS" output.mp4
  • Slow down half: ffmpeg_fn -i input.mp4 -an -filter:v "setpts=2*PTS" output.mp4

Tag summary

Content type

Image

Digest

Size

547.9 MB

Last updated

over 7 years ago

docker pull puritys/ffmpeg