Closed rogerfar closed 8 years ago
The deal seems in hostname for HTTP. http://192.168.10.4/
is not accessable by localhost
probably.
Change server_name
in http server section to:
server {
listen 80;
server_name localhost _ 192.168.10.4;
The rtmp link is working fine but the hls part isn't working with both localhost and ip. so what should i do?
这是权限问题 chmod -R www:www 相应的文件目录
I am trying to setup HLS to stream my webcam. This is my nginx.conf:
I publish with ffmpeg like this:
ffmpeg -loglevel verbose -re -i rtsp://192.168.10.8/profile4/media.smp -vcodec libx264 -vprofile baseline -acodec libmp3lame -ar 44100 -ac 1 -f flv rtmp://192.168.10.4:1935/hls/stream1
I can open this file in the browser: http://192.168.10.4/hls/stream1.m3u8 it will give me
When I open the stream in VLC:
Log:
I can't really figure out what's going on here, is bit encoding?