Trying to correctly grab via FFmpeg an IP camera, Hikvision brand.
That is what going on with FFmpeg:
"ffmpeg",
"-rtsp_transport", "tcp",
"-stimeout", "3000000",
"-re",
"-i", stream,
"-vcodec", "copy",
"-acodec", "libfdk_aac",
"-f", "segment",
"-segment_list_type", "m3u8",
"-segment_list", name,
"-segment_list_size", "1",
"-segment_format", "mpegts",
"-segment_time", "5",
segment_filename,
The result is always with these warning:
[segment @ 0x560d0df9d1e0] Non-monotonous DTS in output stream 0:0; previous: 33976, current: 7200; changing to 33977. This may result in incorrect timestamps in the output file.
I am stuck with these warnings, don't know how to get them away without re-encoding the stream. Indeed that is spoiling my timestamps.