1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/ffmpeg
2017-08-01 07:36:28 +08:00
..
arm add ffmpeg-arm 2016-07-04 11:37:59 +08:00
docker-compose.yml fix ffmpeg 2017-08-01 07:36:28 +08:00
Dockerfile swith to new domain: easypi.pro 2017-05-08 07:05:07 +08:00
README.md ffmpeg: youtube live streaming 2017-08-01 07:17:03 +08:00

ffmpeg

FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video.

Tutorial

# Create an alias
$ alias ffmpeg='docker run --rm -u $(id -u):$(id -g) -v $PWD:/data vimagick/ffmpeg'

# Do video transcoding
$ ffmpeg -i video.mov video.mp4

YouTube Live Streaming

ffmpeg:
  image: vimagick/ffmpeg
  entrypoint: sh
  command:
    - -c
    - ffmpeg -f lavfi -i anullsrc -rtsp_transport udp -i $$RTMP_DEV -tune zerolatency -vcodec mpeg4 -pix_fmt + -c:v copy -an -f flv $$RTMP_URI
  environment:
    - RTMP_DEV=rtsp://10.50.254.197/live
    - RTMP_URI=rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx
  restart: always

Todo List

  • Re-compile with fontconfig/freetype enabled to support timestamp overlay.