- 참고
https://github.com/arut/nginx-rtmp-module
https://github.com/illuspas/nginx-rtmp-win32
- nginx-rtmp-module 컴파일된 윈도우 버전 다운로드
git clong https://github.com/illuspas/nginx-rtmp-win32
- nginx 시작
start nginx
- nginx 종료
nginx -s stop
- 동영상 전송
ffmpeg -re -i 동영상.mkv -c:v libx264 -preset veryfast -maxrate 3000k -bufsize 6000k -pix_fmt yuv420p -g 50 -c:a aac -b:a 160k -ac 2 -ar 44100 -f flv rtmp://localhost/live/tabvn
- hls로 전송
ffmpeg -loglevel verbose -re -i 동영상.mkv -vcodec libx264 -vprofile baseline -acodec libmp3lame -ar 44100 -ac 1 -f flv rtmp://localhost/hls/movie
- 동영상 보기
http://www.videolan.org/ 다운로드 후 rtmp 주소
혹은 http://localhost:8080/ 접속 후 rtmp://localhost/live/tabvn 연결
'가지가지' 카테고리의 다른 글
[GO] 1.13.1 go module (0) | 2019.10.25 |
---|---|
crontab (0) | 2019.10.15 |
[centos] sudo 권한 부여. centos 7 (0) | 2019.08.21 |
[centos] yum 특정 버전 설치 (0) | 2019.07.26 |
[DroidCam] 안드로이드폰을 웹캠으로 사용 (+ OBS) (0) | 2019.03.25 |
img 태그 onerror 이미지 로드 못한 경우 대체하기 (0) | 2019.01.21 |
c# .net realproxy (aop) 예제 (0) | 2018.11.25 |
[인증서] http 인증서 localhost용 (0) | 2018.10.28 |