Public Repository

Last pushed: 6 months ago
Short Description
FFMPEG
Full Description

Minimal FFmpeg Docker image built on Alpine Linux

Current FFmpeg version: 3.2.4

FFmpeg Build Configuration

ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.3.0 (Alpine 5.3.0)
  configuration: --enable-version3 --enable-gpl --enable-nonfree --enable-small --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libvpx --enable-libtheora --enable-libvorbis --enable-libopus --enable-libass --enable-libwebp --enable-librtmp --enable-postproc --enable-avresample --enable-libfreetype --enable-openssl --disable-debug
  libavutil      55. 17.103 / 55. 17.103
  libavcodec     57. 24.102 / 57. 24.102
  libavformat    57. 25.100 / 57. 25.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 31.100 /  6. 31.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100

  configuration:
    --enable-version3
    --enable-gpl
    --enable-nonfree
    --enable-small
    --enable-libmp3lame
    --enable-libx264
    --enable-libx265
    --enable-libvpx
    --enable-libtheora
    --enable-libvorbis
    --enable-libopus
    --enable-libass
    --enable-libwebp
    --enable-librtmp
    --enable-postproc
    --enable-avresample
    --enable-libfreetype
    --enable-openssl
    --disable-debug

วิธีใช้

$ docker run twinsyn/ffmpeg -i http://openstack.swift/test.mp4 -profile:v baseline -level 3.0 -s 1280x720 -start_number 0 -hls_time 10 -hls_list_size 0 -f hls output.m3u8

วิธีแปลงไฟล์ Local:

$ docker run -v=`pwd`:/tmp/ffmpeg twinsyn/ffmpeg -i localfile.mp4 output.m3u8

เราสามารถตั้ง Alias ให้ command สั้นลงโดย:

In ~/.bashrc:

alias ffmpeg='docker run -v=`pwd`:/tmp/ffmpeg twinsyn/ffmpeg'

จากนั้นเราเปลี่ยนใช้คำสั่ง ffmpeg แล้วตามด้วย parameter:

$ ffmpeg -parameter
Docker Pull Command
Owner
twinsyn

Comments (0)