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

Enhancements to the read-only version 0.1 #93

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

DBaluxa
Copy link

@DBaluxa DBaluxa commented Dec 16, 2018

  • Saving RTSP stream to the SD via ffmpeg, and removing old video files when SD is almost full
  • Securely forwarding RTSP stream to given host via SSH port forwarding. Usefull when integrating a camera into a video surveillance sytem (e.g. zoneminder) outside the local network. Implemented watchdog process, which rebuilds stalled SSH connection after a network error.
  • Hardening the system - Telnet connection disabled, FTP and SSH connections asks for password (password should be added both to /etc/passwd and /etc/shadow - password change not included in the change)

 * Saving RTSP stream to the SD via ffmpeg, and removing old video files when SD is almost full
 * Securely forwarding RTSP stream to given host via SSH port forwarding. Usefull when integrating a camera into a video surveillance sytem (e.g. zoneminder) outside the local network. Implemented watchdog process, which rebuilds stalled SSH connection rebuilds after a network error.
 * Hardening the system - Telnet connection disabled, FTP and SSH connections asks for password (password should be added both to /etc/passwd and /etc/shadow)
@paus56
Copy link

paus56 commented Dec 21, 2018

camera HIP291G2MAI:
for stream av0 - 1920x1080 there is no video recording in the file ffmpeg.log:

[rtsp @ 0x33b9680] max delay reached. need to consume packet
[rtsp @ 0x33b9680] RTP: missed 26 packets
Killed
Killed
Killed
Killed
Killed
Killed 

for stream av1 - 640x360 video recording is normal, in the file ffmpeg.log:

Guessed Channel Layout for Input Stream #0.1 : mono
[segment @ 0x2f97370] Non-monotonous DTS in output stream 0:0; previous: 556, current: 80; changing to 557. This may result in incorrect timestamps in the output file.
[segment @ 0x2f97370] Non-monotonous DTS in output stream 0:0; previous: 557, current: 160; changing to 558. This may result in incorrect timestamps in the output file.
[segment @ 0x2f97370] Non-monotonous DTS in output stream 0:0; previous: 558, current: 240; changing to 559. This may result in incorrect timestamps in the output file.
[segment @ 0x2f97370] Non-monotonous DTS in output stream 0:0; previous: 559, current: 320; changing to 560. This may result in incorrect timestamps in the output file.
[segment @ 0x2f97370] Non-monotonous DTS in output stream 0:0; previous: 560, current: 400; changing to 561. This may result in incorrect timestamps in the output file. 

@DBaluxa
Copy link
Author

DBaluxa commented Dec 26, 2018

Hi paus56,

There is no such script, which kills the ffmpeg executable, so my guess is that ffmpeg has been killed by the kernel because of resource problems (e.g. not enough memory). Try starting ffmpeg.sh manually, while monitoring the system resources.
Changing ffmpeg's logging level ("-v warning") in ffmpeg.sh to info/debug level may also help finding the problem.

BR,
DBaluxa

Dési Balázs added 2 commits January 1, 2019 10:59
Default user/pass: ptz/cxlinux
syslogd logging to sdcard
Added timestamp to log files
@paus56
Copy link

paus56 commented Jan 30, 2019

You can add a cURL to your package, to send video files to FTP ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants