I have an unnamed hisilicon based ip camera.
If I use ffmpeg with rtsp tcp and H264 passthrough video writer, zmc restart every one minute:
Code: Select all
10/25/18 21:31:22.816600 zmc_m3[2840].DB1-zm_videostore.cpp/743 [duration calc: pts(5508000) - last_pts( 5497200) = (10800)]
10/25/18 21:31:22.900824 zmc_m3[2840].INF-zm_ffmpeg_camera.cpp/710 [Unable to read packet from stream 0: error -541478725 "End of file".]
10/25/18 21:31:22.956312 zmc_m3[2840].INF-zm_monitor.cpp/2387 [Return from Capture (-1), signal loss]
10/25/18 21:31:22.979284 zmc_m3[2840].INF-zmc.cpp/311 [Failed to capture image from monitor 3 CAM3 (1/1)]
10/25/18 21:31:23.001260 zmc_m3[2840].DB1-zm_videostore.cpp/414 [Flushing interleaved queues]
10/25/18 21:31:23.001713 zmc_m3[2840].DB1-zm_videostore.cpp/417 [Writing trailer]
10/25/18 21:31:23.004897 zmc_m3[2840].INF-zm_ffmpeg_camera.cpp/163 [Priming capture from rtsp://admin:1111@192.168.26.112/1]
10/25/18 21:31:23.031649 zmc_m3[2840].DB1-zm_ffmpeg_camera.cpp/344 [Calling avformat_open_input for rtsp://admin:1111@192.168.26.112/1]
10/25/18 21:31:23.256783 zmc_m3[2840].DB1-zm_ffmpeg_camera.cpp/376 [Opened input]
10/25/18 21:31:23.256872 zmc_m3[2840].INF-zm_ffmpeg_camera.cpp/378 [Stream open rtsp://admin:1111@192.168.26.112/1, parsing streams...]
10/25/18 21:31:26.436465 zmc_m3[2840].DB1-zm_ffmpeg_camera.cpp/503 [Failed to find decoder (h264_mmal)]
10/25/18 21:31:26.436589 zmc_m3[2840].DB1-zm_ffmpeg_camera.cpp/514 [Video Found decoder h264]
10/25/18 21:31:26.436617 zmc_m3[2840].DB1-zm_ffmpeg.cpp/267 [Dumping stream index i(1) index(0)]
10/25/18 21:31:26.436643 zmc_m3[2840].DB1-zm_ffmpeg.cpp/272 [ Stream #0:1]
10/25/18 21:31:26.436664 zmc_m3[2840].DB1-zm_ffmpeg.cpp/280 [, frames:28, timebase: 1/90000]
10/25/18 21:31:26.436709 zmc_m3[2840].DB1-zm_ffmpeg.cpp/282 [: Video: h264 (High), yuvj420p(pc, bt709, progressive), 2560x1440]
10/25/18 21:31:26.436733 zmc_m3[2840].DB1-zm_ffmpeg.cpp/227 [18 fps, ]
10/25/18 21:31:26.436765 zmc_m3[2840].DB1-zm_ffmpeg.cpp/229 [90k stream tb numerator , ]
10/25/18 21:31:26.436815 zmc_m3[2840].DB1-zm_ffmpeg.cpp/227 [36 codec time base:]
10/25/18 21:31:26.436840 zmc_m3[2840].DB1-zm_ffmpeg.cpp/337 [
10/25/18 21:31:26.436861 zmc_m3[2840].DB1-zm_ffmpeg_camera.cpp/521 [Calling avcodec_open2]
10/25/18 21:31:26.437094 zmc_m3[2840].DB1-zm_ffmpeg_camera.cpp/544 [HWACCEL not in use]
10/25/18 21:31:26.437223 zmc_m3[2840].DB1-zm_ffmpeg_camera.cpp/556 [Audio Found decoder]
10/25/18 21:31:26.437257 zmc_m3[2840].DB1-zm_ffmpeg.cpp/267 [Dumping stream index i(0) index(0)]
10/25/18 21:31:26.437279 zmc_m3[2840].DB1-zm_ffmpeg.cpp/272 [ Stream #0:0]
10/25/18 21:31:26.437300 zmc_m3[2840].DB1-zm_ffmpeg.cpp/280 [, frames:78, timebase: 1/8000]
10/25/18 21:31:26.437337 zmc_m3[2840].DB1-zm_ffmpeg.cpp/282 [: Audio: pcm_alaw, 8000 Hz, 1 channels, s16, 64 kb/s]
10/25/18 21:31:26.437359 zmc_m3[2840].DB1-zm_ffmpeg.cpp/337 [
10/25/18 21:31:26.437379 zmc_m3[2840].DB1-zm_ffmpeg_camera.cpp/563 [Calling avcodec_open2]
10/25/18 21:31:26.437423 zmc_m3[2840].DB1-zm_ffmpeg_camera.cpp/600 [Calling sws_isSupportedInput]
10/25/18 21:31:26.439835 zmc_m3[2840].INF-zm_videostore.cpp/54 [Opening video storage stream /media/cache-zm/events/3/2018-10-25/135128/135128-video.mp4 format: mp4]
10/25/18 21:31:26.492194 zmc_m3[2840].DB1-zm_ffmpeg.cpp/261 [Dumping codec_context codec_type(0) codec_id(28) width(2560) height(1440) timebase(0/1) format(yuvj420p)]
10/25/18 21:31:26.492305 zmc_m3[2840].DB1-zm_ffmpeg.cpp/244 [Dumping codecpar codec_type(0) codec_id(28) codec_tag(828601953) width(2560) height(1440) bit_rate(0) format(12 = yuvj420p)]
10/25/18 21:31:26.496900 zmc_m3[2840].DB1-zm_ffmpeg.cpp/267 [Dumping stream index i(0) index(0)]
10/25/18 21:31:26.496961 zmc_m3[2840].DB1-zm_ffmpeg.cpp/272 [ Stream #0:0]
10/25/18 21:31:26.496971 zmc_m3[2840].DB1-zm_ffmpeg.cpp/280 [, frames:0, timebase: 1/90000]
10/25/18 21:31:26.496991 zmc_m3[2840].DB1-zm_ffmpeg.cpp/282 [: Unknown: none]
10/25/18 21:31:26.496999 zmc_m3[2840].DB1-zm_ffmpeg.cpp/337 [
10/25/18 21:31:26.740108 zmc_m3[2840].INF-zm_ffmpeg_camera.cpp/825 [Deleting videoStore instance]
10/25/18 21:31:26.759211 zmc_m3[2840].DB1-zm_videostore.cpp/414 [Flushing interleaved queues]
10/25/18 21:31:26.759306 zmc_m3[2840].DB1-zm_videostore.cpp/417 [Writing trailer]
10/25/18 21:31:26.918688 zmc_m3[2840].INF-zm_videostore.cpp/54 [Opening video storage stream /media/cache-zm/events/3/2018-10-25/135129/135129-video.mp4 format: mp4]
10/25/18 21:31:26.951384 zmc_m3[2840].DB1-zm_ffmpeg.cpp/261 [Dumping codec_context codec_type(0) codec_id(28) width(2560) height(1440) timebase(0/1) format(yuvj420p)]
10/25/18 21:31:26.951465 zmc_m3[2840].DB1-zm_ffmpeg.cpp/244 [Dumping codecpar codec_type(0) codec_id(28) codec_tag(828601953) width(2560) height(1440) bit_rate(0) format(12 = yuvj420p)]
10/25/18 21:31:26.951571 zmc_m3[2840].DB1-zm_ffmpeg.cpp/267 [Dumping stream index i(0) index(0)]
10/25/18 21:31:26.951585 zmc_m3[2840].DB1-zm_ffmpeg.cpp/272 [ Stream #0:0]
10/25/18 21:31:26.951595 zmc_m3[2840].DB1-zm_ffmpeg.cpp/280 [, frames:0, timebase: 1/90000]
10/25/18 21:31:26.951612 zmc_m3[2840].DB1-zm_ffmpeg.cpp/282 [: Unknown: none]
10/25/18 21:31:26.951622 zmc_m3[2840].DB1-zm_ffmpeg.cpp/337 [
10/25/18 21:31:27.355872 zmc_m3[2840].DB1-zm_videostore.cpp/743 [duration calc: pts(68400) - last_pts( 57600) = (10800)]
LibVLC, UDP transport and X264 encode video writer work better but I lose some frames.
No problems watching stream from camera webpage in windows using ocx player.