I'm trying to grab the live RTSP stream from my DS-2CD2085FWD-I camera and stream it in the browser, to do that I need to change it to the HLS format, but when I do that I get a bunch of DTS errors.
The command I use:
The errors:
After a while I'll get a ffmpeg error "muxing overhead: unknown" and it'll stop.
Now I can "fix" both the DTS and muxing errors by adding in "-use_wallclock_as_timestamps 1", but now the video will pause for a second every second or so. (each time a new segment is made)
Anyone know a way to fix this?
The command I use:
ffmpeg -f lavfi -i anullsrc -rtsp_transport tcp -thread_queue_size 512 -i "rtsp://admin:123@192.168.1.23:554/Streaming/Channels/3" -codec:v copy -hls_wrap 3600 -hls_playlist_type event ./720p.m3u8
The errors:
[hls @ 0x15bed20] Non-monotonous DTS in output stream 0:0; previous: 0, current: -22500; changing to 1. This may result in incorrect timestamps in the output file.
[hls @ 0x15bed20] Non-monotonous DTS in output stream 0:0; previous: 1, current: -18000; changing to 2. This may result in incorrect timestamps in the output file.
[hls @ 0x15bed20] Non-monotonous DTS in output stream 0:0; previous: 2, current: -13500; changing to 3. This may result in incorrect timestamps in the output file.
[hls @ 0x15bed20] Non-monotonous DTS in output stream 0:0; previous: 3, current: -9000; changing to 4. This may result in incorrect timestamps in the output file.
[hls @ 0x15bed20] Non-monotonous DTS in output stream 0:0; previous: 4, current: -4500; changing to 5. This may result in incorrect timestamps in the output file.
[hls @ 0x15bed20] Non-monotonous DTS in output stream 0:0; previous: 5, current: 0; changing to 6. This may result in incorrect timestamps in the output file.
[hls @ 0x15bed20] Non-monotonous DTS in output stream 0:0; previous: 1, current: -18000; changing to 2. This may result in incorrect timestamps in the output file.
[hls @ 0x15bed20] Non-monotonous DTS in output stream 0:0; previous: 2, current: -13500; changing to 3. This may result in incorrect timestamps in the output file.
[hls @ 0x15bed20] Non-monotonous DTS in output stream 0:0; previous: 3, current: -9000; changing to 4. This may result in incorrect timestamps in the output file.
[hls @ 0x15bed20] Non-monotonous DTS in output stream 0:0; previous: 4, current: -4500; changing to 5. This may result in incorrect timestamps in the output file.
[hls @ 0x15bed20] Non-monotonous DTS in output stream 0:0; previous: 5, current: 0; changing to 6. This may result in incorrect timestamps in the output file.
After a while I'll get a ffmpeg error "muxing overhead: unknown" and it'll stop.
[hls @ 0x18eebe0] Opening './720p.m3u8.tmp' for writingx
frame=1122063 fps= 20 q=-1.0 Lsize=N/A time=15:35:23.39 bitrate=N/A speed= 1x
video:16776652kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
frame=1122063 fps= 20 q=-1.0 Lsize=N/A time=15:35:23.39 bitrate=N/A speed= 1x
video:16776652kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Now I can "fix" both the DTS and muxing errors by adding in "-use_wallclock_as_timestamps 1", but now the video will pause for a second every second or so. (each time a new segment is made)
Anyone know a way to fix this?