Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera always reconnecting and Captured recording freezes after random time #203

Open
BlackZheng opened this issue Dec 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@BlackZheng
Copy link

BlackZheng commented Dec 25, 2024

Did you read the guide?

Yes

What is the base version number of MotionPlus being used?

0.2.x

What was the install method?

Installed via package tool

What is base architecture?

x86/x64

What is the distro being used?

Debian

Disto version number

bookworm

Camera/Sound type(s) being used?

Network camera with RTSP

Describe the issue/problem and steps to reproduce

My issue is basiclly same with this, but i tried post_capture and didn't help.

Main config file:

daemon off
setup_mode off
log_level 9
log_type ALL
device_name Home
device_id 101
target_dir /home/motion

width 640
height 480
framerate 10
text_right %Y-%m-%d\n%T

emulate_motion off
threshold 1500


noise_level 32
despeckle_filter EedDl

minimum_motion_frames 2
event_gap 60
pre_capture 30
post_capture 30
lightswitch_percent 30
lightswitch_frames 10


on_movie_end /home/xx/scripts/my_scripts.sh %f

picture_output first
picture_filename %v-%Y%m%d%H%M%S-%q


movie_output on
movie_max_time 0
movie_quality 0
movie_container mkv
movie_filename %v-%Y%m%d%H%M%S
movie_passthrough on

webcontrol_port 8080
webcontrol_localhost off
webcontrol_parms 2

stream_preview_scale 25
stream_preview_method mjpg

Camera config:

device_id 101
netcam_url rtsp://admin:[email protected]:8554/Streaming/Channels/102
netcam_high_url rtsp://admin:[email protected]:8554/Streaming/Channels/101
picture_filename picture/%v-%Y%m%d%H%M%S-%q
text_left Home
movie_filename video/CAM01_%t-%v-%Y%m%d%H%M%S

Relevant MotionPlus log output (at log_level 8)

Dec 25 10:48:36 homelab motionplus[2083536]: [INF][NET][00:ml00:Home] netcam_pktarray_resize: High: Resized packet array to 241
Dec 25 10:49:23 homelab motionplus[2083536]: [NTC][NET][03:nc03:Home] netcam_handler_reconnect: High: Reconnecting with camera....
Dec 25 10:49:23 homelab motionplus[2083536]: [INF][NET][03:nc03:Home] netcam_set_options: High: Setting rtsp/rtmp
Dec 25 10:49:23 homelab motionplus[2083536]: [INF][NET][03:nc03:Home] netcam_open_context: High: Opened camera(Home)
Dec 25 10:49:26 homelab motionplus[2083536]: [INF][NET][03:av03:Home] netcam_init_swdecoder: High: Initializing decoder
Dec 25 10:49:26 homelab motionplus[2083536]: [INF][NET][03:av03:Home] netcam_open_codec: High: Decoder opened
Dec 25 10:49:26 homelab motionplus[2083536]: [INF][NET][03:nc03:Home] netcam_copy_stream: Stream copied for pass-through
Dec 25 10:49:26 homelab motionplus[2083536]: [NTC][NET][03:nc03:Home] netcam_connect: High: Camera (Home) connected
Dec 25 10:49:26 homelab motionplus[2083536]: [NTC][NET][03:nc03:Home] netcam_connect: High: Netcam capture FPS is 11.
Dec 25 10:49:26 homelab motionplus[2083536]: [NTC][NET][03:nc03:Home] netcam_connect: High: Camera source is 10 FPS
Dec 25 10:49:26 homelab motionplus[2083536]: [INF][NET][03:nc03:Home] netcam_connect: High: An audio stream was detected.  Capture_rate increased to compensate.
Dec 25 10:49:26 homelab motionplus[2083536]: [INF][NET][00:ml00:Home] netcam_pktarray_resize: High: Resized packet array to 61
Dec 25 10:49:27 homelab motionplus[2083536]: [INF][NET][00:ml00:Home] netcam_pktarray_resize: High: Resized packet array to 65
Dec 25 10:49:27 homelab motionplus[2083536]: [INF][NET][00:ml00:Home] netcam_pktarray_resize: High: Resized packet array to 67
Dec 25 10:49:27 homelab motionplus[2083536]: [INF][NET][00:ml00:Home] netcam_pktarray_resize: High: Resized packet array to 68
Dec 25 10:49:27 homelab motionplus[2083536]: [INF][NET][00:ml00:Home] netcam_pktarray_resize: High: Resized packet array to 73
Dec 25 10:49:27 homelab motionplus[2083536]: [INF][NET][00:ml00:Home] netcam_pktarray_resize: High: Resized packet array to 75
Dec 25 10:49:27 homelab motionplus[2083536]: [INF][NET][00:ml00:Home] netcam_pktarray_resize: High: Resized packet array to 79
Dec 25 10:49:27 homelab motionplus[2083536]: [INF][NET][00:ml00:Home] netcam_pktarray_resize: High: Resized packet array to 87
Dec 25 10:49:27 homelab motionplus[2083536]: [INF][NET][00:ml00:Home] netcam_pktarray_resize: High: Resized packet array to 91
Dec 25 10:49:27 homelab motionplus[2083536]: [INF][NET][00:ml00:Home] netcam_pktarray_resize: High: Resized packet array to 95
Dec 25 10:49:27 homelab motionplus[2083536]: [INF][NET][00:ml00:Home] netcam_pktarray_resize: High: Resized packet array to 97
Dec 25 10:49:28 homelab motionplus[2083536]: [INF][NET][00:ml00:Home] netcam_pktarray_resize: High: Resized packet array to 101
Dec 25 10:49:28 homelab motionplus[2083536]: [INF][NET][00:ml00:Home] netcam_pktarray_resize: High: Resized packet array to 105
Dec 25 10:49:28 homelab motionplus[2083536]: [INF][NET][00:ml00:Home] netcam_pktarray_resize: High: Resized packet array to 107
Dec 25 10:49:28 homelab motionplus[2083536]: [INF][NET][00:ml00:Home] netcam_pktarray_resize: High: Resized packet array to 108
Dec 25 10:49:28 homelab motionplus[2083536]: [INF][NET][02:nc02:Home] netcam_decode_sw: Norm: Rec frame error: End of file
Dec 25 10:49:28 homelab motionplus[2083536]: [NTC][NET][02:nc02:Home] netcam_handler_reconnect: Norm: Reconnecting with camera....
Dec 25 10:49:28 homelab motionplus[2083536]: [INF][NET][02:nc02:Home] netcam_set_options: Norm: Setting rtsp/rtmp
Dec 25 10:49:28 homelab motionplus[2083536]: [INF][NET][02:nc02:Home] netcam_open_context: Norm: Opened camera(Home)
Dec 25 10:49:32 homelab motionplus[2083536]: [INF][NET][02:av02:Home] netcam_init_swdecoder: Norm: Initializing decoder
Dec 25 10:49:32 homelab motionplus[2083536]: [INF][NET][02:av02:Home] netcam_open_codec: Norm: Decoder opened
Dec 25 10:49:32 homelab motionplus[2083536]: [NTC][NET][02:nc02:Home] netcam_connect: Norm: Camera (Home) connected
Dec 25 10:49:32 homelab motionplus[2083536]: [NTC][NET][02:nc02:Home] netcam_connect: Norm: Netcam capture FPS is 11.
Dec 25 10:49:32 homelab motionplus[2083536]: [NTC][NET][02:nc02:Home] netcam_connect: Norm: Camera source is 11 FPS
Dec 25 10:49:32 homelab motionplus[2083536]: [INF][NET][02:nc02:Home] netcam_connect: Norm: An audio stream was detected.  Capture_rate increased to compensate.
Dec 25 10:49:32 homelab motionplus[2083536]: [INF][NET][00:ml00:Home] netcam_pktarray_resize: High: Resized packet array to 333
Dec 25 10:49:32 homelab motionplus[2083536]: [INF][NET][00:ml00:Home] netcam_pktarray_resize: High: Resized packet array to 335
Dec 25 10:49:32 homelab motionplus[2083536]: [INF][NET][00:ml00:Home] netcam_pktarray_resize: High: Resized packet array to 450
Dec 25 10:49:34 homelab motionplus[2083536]: [INF][NET][00:ml00:Home] netcam_pktarray_resize: High: Resized packet array to 539
Dec 25 10:49:40 homelab motionplus[2083536]: [INF][NET][02:nc02:Home] netcam_decode_sw: Norm: Rec frame error: End of file
Dec 25 10:49:40 homelab motionplus[2083536]: [NTC][NET][02:nc02:Home] netcam_handler_reconnect: Norm: Reconnecting with camera....
@BlackZheng BlackZheng added the bug Something isn't working label Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant