I use ffmpeg command to stream a udp to nginx-rtmp
ffmpeg -report -i "udp://@225.0.0.5:9000?overrun_nonfatal=1&buffer_size=1000000" -vcodec libx264 -acodec aac -preset ultrafast -strict -2 -r 25 -s 720x576 -vf w3fdif -y -f flv rtmp://10.10.10.188/hls/live14
latest git version nginx-rtmp-module works great with nginx-1.11.10,but after 2days, the m3u8 file updated incorrect,like this
`longjing@VideoServer:~$ ls /opt/www/live/live14/ -l
total 1928
-rw-r--r-- 1 longjing longjing 903340 Feb 21 10:29 1487644131500.ts
-rw-r--r-- 1 longjing longjing 911236 Feb 21 10:30 1487644182000.ts
-rw-r--r-- 1 longjing longjing 148144 Feb 21 10:30 1487644232000.ts
-rw-r--r-- 1 longjing longjing 240 Feb 21 10:30 index.m3u8
longjing@VideoServer:~$ cat /opt/www/live/live14/index.m3u8
EXTM3U
EXT-X-VERSION:3
EXT-X-MEDIA-SEQUENCE:31603
EXT-X-TARGETDURATION:50
EXT-X-DISCONTINUITY
EXTINF:49.984,
1487644081500.ts
EXT-X-DISCONTINUITY
EXTINF:49.984,
1487644131500.ts
EXT-X-DISCONTINUITY
EXTINF:49.984,
1487644182000.ts`
Then i check the error.log,found the error
2017/02/21 10:31:21 [error] 2125#0: *19839 hls: force fragment split: 50.005 sec, , client: 10.10.10.72, server: 0.0.0.0:1935 2017/02/21 10:31:21 [error] 2125#0: *19839 hls: force fragment split: 50.005 sec, , client: 10.10.10.72, server: 0.0.0.0:1935 2017/02/21 10:32:12 [error] 2125#0: *19839 hls: force fragment split: 50.006 sec, , client: 10.10.10.72, server: 0.0.0.0:1935 2017/02/21 10:32:12 [error] 2125#0: *19839 hls: force fragment split: 50.006 sec, , client: 10.10.10.72, server: 0.0.0.0:1935
And my nginx.conf is here
`
worker_processes auto;
I use ffmpeg command to stream a udp to nginx-rtmp
ffmpeg -report -i "udp://@225.0.0.5:9000?overrun_nonfatal=1&buffer_size=1000000" -vcodec libx264 -acodec aac -preset ultrafast -strict -2 -r 25 -s 720x576 -vf w3fdif -y -f flv rtmp://10.10.10.188/hls/live14
latest git version nginx-rtmp-module works great with nginx-1.11.10,but after 2days, the m3u8 file updated incorrect,like this `longjing@VideoServer:~$ ls /opt/www/live/live14/ -l
total 1928
-rw-r--r-- 1 longjing longjing 903340 Feb 21 10:29 1487644131500.ts
-rw-r--r-- 1 longjing longjing 911236 Feb 21 10:30 1487644182000.ts
-rw-r--r-- 1 longjing longjing 148144 Feb 21 10:30 1487644232000.ts
-rw-r--r-- 1 longjing longjing 240 Feb 21 10:30 index.m3u8
longjing@VideoServer:~$ cat /opt/www/live/live14/index.m3u8
EXTM3U
EXT-X-VERSION:3
EXT-X-MEDIA-SEQUENCE:31603
EXT-X-TARGETDURATION:50
EXT-X-DISCONTINUITY
EXTINF:49.984,
1487644081500.ts
EXT-X-DISCONTINUITY
EXTINF:49.984,
1487644131500.ts
EXT-X-DISCONTINUITY
EXTINF:49.984,
1487644182000.ts`
Then i check the error.log,found the error
2017/02/21 10:31:21 [error] 2125#0: *19839 hls: force fragment split: 50.005 sec, , client: 10.10.10.72, server: 0.0.0.0:1935 2017/02/21 10:31:21 [error] 2125#0: *19839 hls: force fragment split: 50.005 sec, , client: 10.10.10.72, server: 0.0.0.0:1935 2017/02/21 10:32:12 [error] 2125#0: *19839 hls: force fragment split: 50.006 sec, , client: 10.10.10.72, server: 0.0.0.0:1935 2017/02/21 10:32:12 [error] 2125#0: *19839 hls: force fragment split: 50.006 sec, , client: 10.10.10.72, server: 0.0.0.0:1935
And my nginx.conf is here ` worker_processes auto;
rtmp_auto_push on; rtmp_auto_push_reconnect 1s; rtmp_socket_dir /tmp;
error_log logs/error.log info; error_log logs/error.log error;
events { worker_connections 1024; }
rtmp {
}
http {
}`
Thanks.