Code Monkey home page Code Monkey logo

docker_ffmpeg_chrome's Introduction

ffmpeg-chrome

#更新

docker pull registry.cn-chengdu.aliyuncs.com/1s/ffmpeg_chrome

#自定义推流地址

docker rm -f chrome

SCREEN_WIDTH=1800
SCREEN_HEIGHT=2880
FFMPEG_CMD="ffmpeg \
	 -f pulse -i default \
	 -f x11grab -video_size ${SCREEN_WIDTH}x${SCREEN_HEIGHT} \
	 -i :99 -async 1 -vsync 1 -framerate 30 -vcodec libx264 -preset ultrafast -pix_fmt yuv420p \
	 -tune zerolatency -b 900k \
	 -r 30 -b:v 2500k -b:a 64k  -s 1800x2880 \
	 -f flv rtmp://push.live.aiyilearning.com/aiyilive/5e7c537ded5ef411db79b257?auth_key=1586415769-ec44a0fbb6354e9a9cd187fc5a1e2a96-0-c9ea3eb20779c594c7b479769ed4c31f"
docker run -d --name chrome -e SE_OPTS="-sessionTimeout 604800" -p 4444:4444 -v /dev/shm:/dev/shm -e SCREEN_WIDTH=$SCREEN_WIDTH -e SCREEN_HEIGHT=$SCREEN_HEIGHT -e FFMPEG_CMD="$FFMPEG_CMD"  registry.cn-chengdu.aliyuncs.com/1s/ffmpeg_chrome

参数推流

#推流地址
STREAM_URL=rtmp://push.live.aiyilearning.com/aiyilive/5e7c537ded5ef411db79b257?auth_key=1586415769-ec44a0fbb6354e9a9cd187fc5a1e2a96-0-c9ea3eb20779c594c7b479769ed4c31f
#屏幕分辨率
SCREEN_WIDTH=1800
SCREEN_HEIGHT=2880
#输出分辨率,默认为屏幕分辨率
Output_WIDTH=""
Output_HEIGHT=""

docker rm -f chrome
docker run --name chrome -d -p 4444:4444 -v /dev/shm:/dev/shm \
-e SCREEN_WIDTH=$SCREEN_WIDTH -e SCREEN_HEIGHT=$SCREEN_HEIGHT \
-e STREAM_URL=$STREAM_URL \
registry.cn-chengdu.aliyuncs.com/1s/ffmpeg_chrome

docker_ffmpeg_chrome's People

Contributors

lianshufeng avatar

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.