blog
blog copied to clipboard
IPTV成果展示 并利用 nginx-rtmp-module 使 rtsp to rtmp(并转FLV/HLS等流媒体协议) 让移动端愉快地看视频
首先是需要魔改的 nginx-rtmp-module https://github.com/im-pingo/nginx-rtmp-module
由于我需要给移动设备观看 所以需要利用他自动唤起 ffmpeg,当没有人看的时候自动停止pull。
server {
listen 1935;
chunk_size 4000;
application hls {
send_all off;
zero_start off;
mpegts_cache_time 20s;
cache_time 2s;
hls_path /dev/shm/hls;
live on;
hls on;
exec_options on;
# 央视一套高清
exec_pull ffmpeg -rtsp_transport tcp -i rtsp://115.233.41.137/PLTV/88888913/224/3221228078/10000100000000060000000002460690_0.smil -vcodec libx264 -preset ultrafast -acodec aac -f flv rtmp://localhost/$app/$name name=yangshiyitaogaoqing;
# 以下省略 ...
}
}
server {
listen 80;
...
location /flv {
flv_live 1935 app=hls;
}
}

你这个服务器放在哪里?也是openwrt上?
你这个服务器放在哪里?也是openwrt上?
虚拟机上
高清实时转码,cpu压力不小吧
还好 一个3%左右,平时也就自己一个人用。8700t
发自我的iPhone
------------------ 原始邮件 ------------------ 发件人: Nautilus Chan <[email protected]> 发送时间: 2020年5月27日 16:12 收件人: luckyyyyy/blog <[email protected]> 抄送: William Chan <[email protected]>, Author <[email protected]> 主题: 回复:[luckyyyyy/blog] IPTV成果展示 并利用 nginx-rtmp-module 使 rtsp to rtmp(并转FLV/HLS等流媒体协议) 让移动端愉快地看视频 (#46)
我现在用的Plex pass + xteve m3u是网上找的地址,清晰度还可以,就是有时候会卡顿,打算折腾一下电信自家的iptv,我也是杭州 :-)
我现在用的Plex pass + xteve m3u是网上找的地址,清晰度还可以,就是有时候会卡顿,打算折腾一下电信自家的iptv,我也是杭州 :-)
用了挺久了,很不错的。