forked from FFmpeg/FFmpeg
-
Notifications
You must be signed in to change notification settings - Fork 80
hevcpush
pengbin edited this page May 17, 2019
·
2 revisions
- clone 金山云FFmpeg代码仓库
git clone [email protected]:ksvc/FFmpeg.git
git reset --hard origin/release/3.4
- 配置FFmpeg
./configure --enable-static --enable-pic \
--disable-encoders --enable-encoder=aac --enable-encoder=libx264 --enable-gpl --enable-libx264 --enable-encoder=libx265 --enable-libx265 \
--disable-decoders --enable-decoder=aac --enable-decoder=h264 --enable-decoder=hevc \
--disable-demuxers --enable-demuxer=aac --enable-demuxer=mov --enable-demuxer=mpegts --enable-demuxer=flv --enable-demuxer=h264 --enable-demuxer=hevc --enable-demuxer=hls \
--disable-muxers --enable-muxer=h264 --enable-muxer=flv --enable-muxer=f4v --enable-muxer=mp4 \
--disable-doc
make -j8
开启libx264/libx265编码。这里使用的是libx265推流,如果需要ksc265,请联系商务。
- 推流
./ffmpeg -re -i ~/video/mp4/oceans.mp4 -c:a copy -c:v libx265 -f flv rtmp://your_rtmp_server/live/h265
- 播放
./ffplay rtmp://your_rtmp_server/live/h265