Danke.
Es werden keine Dateien gespeichert (/var/log/motion/motion.log):
Code:
[1] [ERR] [ENC] [Jul 05 14:16:15] ffmpeg_open: url_fopen - error opening file /path/motion/01-20190705141615.avi ... check access rights to target directory: Permission denied
[1] [ERR] [EVT] [Jul 05 14:16:15] event_ffmpeg_newfile: ffopen_open error creating (new) file [/path/motion/01-20190705141615.avi]: Permission denied
Sollte aber gehen:
Code:
root@NAS:/# ls -l /path/
drwxrwxrwx 2 motion motion 128 Jul 5 14:11 motion
motion.conf:
Code:
daemon on
process_id_file /var/run/motion/motion.pid
setup_mode off
logfile /var/log/motion/motion.log
log_level 6
log_type all
videodevice /dev/video0
v4l2_palette 17
input -1
norm 0
frequency 0
rotate 0
width 320
height 240
framerate 2
minimum_frame_time 0
netcam_url http://ip/videostream.cgi?user=[USERNAME]&pwd=[PASSWORD]&resolution=32&rate=0resolution=32&rate=0
netcam_keepalive off
netcam_tolerant_check off
auto_brightness off
brightness 0
contrast 0
saturation 0
hue 0
roundrobin_frames 1
roundrobin_skip 1
switchfilter off
threshold 1500
threshold_tune off
noise_level 32
noise_tune on
despeckle_filter EedDl
smart_mask_speed 0
lightswitch 0
minimum_motion_frames 1
pre_capture 0
post_capture 0
event_gap 60
max_movie_time 0
emulate_motion off
output_pictures off
output_debug_pictures off
quality 75
picture_type jpeg
ffmpeg_output_movies on
ffmpeg_output_debug_movies off
ffmpeg_timelapse 0
ffmpeg_timelapse_mode daily
ffmpeg_bps 500000
ffmpeg_variable_bitrate 0
ffmpeg_video_codec mpeg4
ffmpeg_deinterlace off
sdl_threadnr 0
use_extpipe off
snapshot_interval 0
locate_motion_mode off
locate_motion_style box
text_right %Y-%m-%d\n%T-%q
text_changes off
text_event %Y%m%d%H%M%S
text_double off
target_dir /path/motion
snapshot_filename %v-%Y%m%d%H%M%S-snapshot
picture_filename %v-%Y%m%d%H%M%S-%q
movie_filename %v-%Y%m%d%H%M%S
timelapse_filename %Y%m%d-timelapse
ipv6_enabled off
stream_port 8081
stream_quality 50
stream_motion off
stream_maxrate 1
stream_localhost on
stream_limit 0
stream_auth_method 0
webcontrol_port 8080
webcontrol_localhost off
webcontrol_html_output on
track_type 0
track_auto off
track_iomojo_id 0
track_step_angle_x 10
track_step_angle_y 10
track_move_wait 10
track_speed 255
track_stepsize 40
quiet on
Mit FFmgep kann ich aufnehmen:
Code:
ffmpeg -i "http://ip/videostream.cgi?user=[USERNAME]&pwd=[PASSWORD]&resolution=32&rate=0" "/path/motion/test.mp4"
Was mache ich falsch?
PS: Natürlich sind die Platzhalter (URL, User, PW) mit echten Daten ersetzt.
Lesezeichen