# rtmp-hls-flv **Repository Path**: keepgoingxjw/rtmp-hls-flv ## Basic Information - **Project Name**: rtmp-hls-flv - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-07 - **Last Updated**: 2021-11-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # rtmp-hls-flv rtmp推流, 三种方式拉流 ## rtmp-hls-flv是什么? 提供rtmp推流, 可以使用rtmp, hls, http-flv三种方式拉流的容器 ## 如何使用 * step1: docker build -it rtmp-hls-flv:v1.0 . * step2: start container docker run -d -p 80:80 -p 1935:1935 rtmp-hls-flv:v1.0 * step3: rtmp推流 * ffmpeg -re -i ~/test.mp4 -r 30 -s 480x320 -threads 2 -vcodec libx264 -acodec aac -f flv "rtmp://127.0.0.1/live/stream1" * step4: 拉流 * rtmp * ffplay "rtmp://127.0.0.1/live/stream1" * hls * ffplay "http://127.0.0.1/hls/stream1.m3u8" * http-flv * ffplay "http://127.0.0.1/live?app=live&stream=stream1" * ffplay "http://127.0.0.1/live/stream1.flv"