Open dio99 opened 2 years ago
when i launch in the docker i get this /usr/local/bin/ffmpeg -i rtsp://ip_to_cam//h264Preview_01_main -c copy -b:a 64k -f flv rtmp://localhost:1935/live/std
Input #0, rtsp, from 'rtsp://ip_to cam//h264Preview_01_main':
Metadata:
title : Session streamed by "preview"
comment : h264Preview_01_main
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264, yuv420p(progressive), 2304x1296, 30 tbr, 90k tbn, 180k tbc
Stream #0:1: Audio: aac, 16000 Hz, mono, fltp
Output #0, flv, to 'rtmp://localhost:1935/live/std':
Metadata:
title : Session streamed by "preview"
comment : h264Preview_01_main
encoder : Lavf58.29.100
Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p(progressive), 2304x1296, q=2-31, 30 tbr, 1k tbn, 90k tbc
Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 16000 Hz, mono, fltp, 64 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[flv @ 0x7f36a137c300] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
WriteN, RTMP send error 32 (129 bytes)56kB time=00:00:15.77 bitrate=8443.3kbits/s speed=1.08x
WriteN, RTMP send error 32 (38 bytes)
WriteN, RTMP send error 9 (42 bytes)
av_interleaved_write_frame(): Operation not permitted
[flv @ 0x7f36a137c300] Failed to update header with correct duration.852.3kbits/s speed=1.12x
[flv @ 0x7f36a137c300] Failed to update header with correct filesize.
Error writing trailer of rtmp://localhost:1935/live/std: Operation not permitted
frame= 400 fps= 15 q=-1.0 Lsize= 16536kB time=00:00:27.91 bitrate=4852.3kbits/s speed=1.04x
video:16399kB audio:129kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.050750%
@dio99 I have the same problem, have you fixed this issue?
hellu well sort of i installed newer version and did not launch in docker, moved the nginx to a intel nuc and there i also have/had some issues but seems ok now it runs for almost 24/7 now.
The cam's are on 4G net so most probblay that is the cause.
hellu any hints on why it s just stops stream after 5-7 min
my nginx conf worker_processes auto; error_log /var/log/nginx/nginx_error.log;
events { worker_connections 1024; }
RTMP configuration
rtmp { server { listen 1935; # Listen on standard RTMP port chunk_size 4000;
ping 30s;
;
Reolink cam
}
http { access_log /var/log/nginx/nginx_access.log; sendfile off; tcp_nopush on; directio 512;
aio on;
}