video - FFmpeg grabbing RTSP IP Camera -


trying correctly grab via ffmpeg ip camera, hikvision brand.

that going on 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 these warning:

[segment @ 0x560d0df9d1e0] non-monotonous dts in output stream 0:0; previous: 33976, current: 7200; changing 33977. may result in incorrect timestamps in output file.

i stuck these warnings, don't know how them away without re-encoding stream. indeed spoiling timestamps.

i guessing camera doesn't implement rtcp (sender report correctly).

rtp media streams. rtsp control protocol setting connection. rtcp sender report.

rtcp generates correct timestamp wall clock , rtp timestamps. more once have seen incorrect of missing rtcp implementation.

use wireshark verify camera gives correct timestamp or run live555 in debugger.


Comments

Popular posts from this blog

javascript - generate date range base on integers -

PHP and MySQL WP -