Send Motion-user mailing list submissions to motion-user@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/motion-user or, via email, send a message with subject or body 'help' to motion-user-requ...@lists.sourceforge.net You can reach the person managing the list at motion-user-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Motion-user digest..." Today's Topics: 1. Re: Youtube + high resolution on Raspberry Pi (Benjamin) ---------------------------------------------------------------------- Message: 1 Date: Tue, 12 May 2020 09:35:15 +0200 From: Benjamin <bdg...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Youtube + high resolution on Raspberry Pi Message-ID: <calcefn-w1ztfrfev4gzjih65cbciln_obrzt3zjgwlsc+hy...@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" It looks like I'm not feeding an appropriate format to motion. What format does it need exactly ? Could I somehow test my gstreamer pipeline using ffplay or some v4l2 tool ? I'm not really familiar with gdb, but if needed I can have a look into it. I have this package installed: pi_buster_motion_4.3.1-1_armhf.deb Manual setup after booting: sudo modprobe v4l2loopback devices=5 v4l2-ctl -d3 --set-parm=5 v4l2-ctl -d4 --set-parm=25 /etc/motion/motion.conf: daemon off setup_mode off log_level 7 netcam_url v4l2:///dev/video3 netcam_highres v4l2:///dev/video4 width 320 height 240 framerate 5 text_left CAMERA1 text_right %Y-%m-%d\n%T-%q emulate_motion off threshold 1500 despeckle_filter EedDl minimum_motion_frames 1 event_gap 10 pre_capture 3 post_capture 0 picture_output off picture_filename %Y%m%d%H%M%S-%q movie_output on movie_passthrough on movie_max_time 60 movie_codec mkv movie_filename %t-%v-%Y%m%d%H%M%S webcontrol_port 8080 webcontrol_localhost off webcontrol_parms 3 stream_port 8081 stream_localhost off Start gstreamer: gst-launch-1.0 -v rpicamsrc bitrate=5000000 ! video/x-h264,width=1280,height=960,framerate=25/1 ! tee name=rpicam ! queue ! h264parse ! flvmux name=ytmux ! rtmpsink location=rtmp://a.rtmp.youtube.com/live2/the-secret-key audiotestsrc volume=0 ! voaacenc ! ytmux. rpicam. ! queue ! h264parse ! video/x-h264,stream-format=byte-stream ! v4l2sink device=/dev/video4 rpicam. ! queue ! h264parse ! decodebin ! videorate ! videoscale ! video/x-raw,width=320,height=240,framerate=5/1 ! omxh264enc ! h264parse ! video/x-h264,stream-format=byte-stream ! v4l2sink device=/dev/video3 Start motion with "motion -d 7 -l ~/motion01.log" motion01.log: [0:motion] [NTC] [ALL] [May 12 08:19:44] motion_startup: Motion 4.3.1 Started [0:motion] [NTC] [ALL] [May 12 08:19:44] motion_startup: Using default log type (ALL) [0:motion] [NTC] [ALL] [May 12 08:19:44] motion_startup: Using log type (ALL) log level (INF) [0:motion] [INF] [ALL] [May 12 08:19:44] conf_output_parms: Writing configuration parameters from all files (1): [0:motion] [INF] [ALL] [May 12 08:19:44] Thread 0 - Config file: /etc/motion/motion.conf [0:motion] [INF] [ALL] [May 12 08:19:44] daemon off [0:motion] [INF] [ALL] [May 12 08:19:44] setup_mode off [0:motion] [INF] [ALL] [May 12 08:19:44] pid_file [0:motion] [INF] [ALL] [May 12 08:19:44] log_file /home/pi/motion01.log [0:motion] [INF] [ALL] [May 12 08:19:44] log_level 7 [0:motion] [INF] [ALL] [May 12 08:19:44] log_type ALL [0:motion] [INF] [ALL] [May 12 08:19:44] quiet on [0:motion] [INF] [ALL] [May 12 08:19:44] native_language on [0:motion] [INF] [ALL] [May 12 08:19:44] camera_name [0:motion] [INF] [ALL] [May 12 08:19:44] camera_id 0 [0:motion] [INF] [ALL] [May 12 08:19:44] target_dir [0:motion] [INF] [ALL] [May 12 08:19:44] videodevice /dev/video0 [0:motion] [INF] [ALL] [May 12 08:19:44] vid_control_params [0:motion] [INF] [ALL] [May 12 08:19:44] v4l2_palette 17 [0:motion] [INF] [ALL] [May 12 08:19:44] input -1 [0:motion] [INF] [ALL] [May 12 08:19:44] norm 0 [0:motion] [INF] [ALL] [May 12 08:19:44] frequency 0 [0:motion] [INF] [ALL] [May 12 08:19:44] auto_brightness 0 [0:motion] [INF] [ALL] [May 12 08:19:44] tunerdevice [0:motion] [INF] [ALL] [May 12 08:19:44] roundrobin_frames 1 [0:motion] [INF] [ALL] [May 12 08:19:44] roundrobin_skip 1 [0:motion] [INF] [ALL] [May 12 08:19:44] roundrobin_switchfilter off [0:motion] [INF] [ALL] [May 12 08:19:44] netcam_url <redacted> [0:motion] [INF] [ALL] [May 12 08:19:44] netcam_highres <redacted> [0:motion] [INF] [ALL] [May 12 08:19:44] netcam_userpass [0:motion] [INF] [ALL] [May 12 08:19:44] netcam_keepalive off [0:motion] [INF] [ALL] [May 12 08:19:44] netcam_proxy [0:motion] [INF] [ALL] [May 12 08:19:44] netcam_tolerant_check off [0:motion] [INF] [ALL] [May 12 08:19:44] netcam_use_tcp on [0:motion] [INF] [ALL] [May 12 08:19:44] netcam_decoder [0:motion] [INF] [ALL] [May 12 08:19:44] mmalcam_name [0:motion] [INF] [ALL] [May 12 08:19:44] mmalcam_control_params [0:motion] [INF] [ALL] [May 12 08:19:44] width 320 [0:motion] [INF] [ALL] [May 12 08:19:44] height 240 [0:motion] [INF] [ALL] [May 12 08:19:44] framerate 5 [0:motion] [INF] [ALL] [May 12 08:19:44] minimum_frame_time 0 [0:motion] [INF] [ALL] [May 12 08:19:44] rotate 0 [0:motion] [INF] [ALL] [May 12 08:19:44] flip_axis none [0:motion] [INF] [ALL] [May 12 08:19:44] locate_motion_mode off [0:motion] [INF] [ALL] [May 12 08:19:44] locate_motion_style box [0:motion] [INF] [ALL] [May 12 08:19:44] text_left CAMERA1 [0:motion] [INF] [ALL] [May 12 08:19:44] text_right %Y-%m-%d\n%T-%q [0:motion] [INF] [ALL] [May 12 08:19:44] text_changes off [0:motion] [INF] [ALL] [May 12 08:19:44] text_scale 1 [0:motion] [INF] [ALL] [May 12 08:19:44] text_event %Y%m%d%H%M%S [0:motion] [INF] [ALL] [May 12 08:19:44] emulate_motion off [0:motion] [INF] [ALL] [May 12 08:19:44] threshold 1500 [0:motion] [INF] [ALL] [May 12 08:19:44] threshold_maximum 0 [0:motion] [INF] [ALL] [May 12 08:19:44] threshold_tune off [0:motion] [INF] [ALL] [May 12 08:19:44] noise_level 32 [0:motion] [INF] [ALL] [May 12 08:19:44] noise_tune on [0:motion] [INF] [ALL] [May 12 08:19:44] despeckle_filter EedDl [0:motion] [INF] [ALL] [May 12 08:19:44] area_detect [0:motion] [INF] [ALL] [May 12 08:19:44] mask_file [0:motion] [INF] [ALL] [May 12 08:19:44] mask_privacy [0:motion] [INF] [ALL] [May 12 08:19:44] smart_mask_speed 0 [0:motion] [INF] [ALL] [May 12 08:19:44] lightswitch_percent 0 [0:motion] [INF] [ALL] [May 12 08:19:44] lightswitch_frames 5 [0:motion] [INF] [ALL] [May 12 08:19:44] minimum_motion_frames 1 [0:motion] [INF] [ALL] [May 12 08:19:44] event_gap 10 [0:motion] [INF] [ALL] [May 12 08:19:44] pre_capture 3 [0:motion] [INF] [ALL] [May 12 08:19:44] post_capture 0 [0:motion] [INF] [ALL] [May 12 08:19:44] on_event_start [0:motion] [INF] [ALL] [May 12 08:19:44] on_event_end [0:motion] [INF] [ALL] [May 12 08:19:44] on_picture_save [0:motion] [INF] [ALL] [May 12 08:19:44] on_area_detected [0:motion] [INF] [ALL] [May 12 08:19:44] on_motion_detected [0:motion] [INF] [ALL] [May 12 08:19:44] on_movie_start [0:motion] [INF] [ALL] [May 12 08:19:44] on_movie_end [0:motion] [INF] [ALL] [May 12 08:19:44] on_camera_lost [0:motion] [INF] [ALL] [May 12 08:19:44] on_camera_found [0:motion] [INF] [ALL] [May 12 08:19:44] picture_output off [0:motion] [INF] [ALL] [May 12 08:19:44] picture_output_motion off [0:motion] [INF] [ALL] [May 12 08:19:44] picture_type jpeg [0:motion] [INF] [ALL] [May 12 08:19:44] picture_quality 75 [0:motion] [INF] [ALL] [May 12 08:19:44] picture_exif [0:motion] [INF] [ALL] [May 12 08:19:44] picture_filename %Y%m%d%H%M%S-%q [0:motion] [INF] [ALL] [May 12 08:19:44] snapshot_interval 0 [0:motion] [INF] [ALL] [May 12 08:19:44] snapshot_filename %v-%Y%m%d%H%M%S-snapshot [0:motion] [INF] [ALL] [May 12 08:19:44] movie_output on [0:motion] [INF] [ALL] [May 12 08:19:44] movie_output_motion off [0:motion] [INF] [ALL] [May 12 08:19:44] movie_max_time 60 [0:motion] [INF] [ALL] [May 12 08:19:44] movie_bps 400000 [0:motion] [INF] [ALL] [May 12 08:19:44] movie_quality 60 [0:motion] [INF] [ALL] [May 12 08:19:44] movie_codec mkv [0:motion] [INF] [ALL] [May 12 08:19:44] movie_duplicate_frames off [0:motion] [INF] [ALL] [May 12 08:19:44] movie_passthrough on [0:motion] [INF] [ALL] [May 12 08:19:44] movie_filename %t-%v-%Y%m%d%H%M%S [0:motion] [INF] [ALL] [May 12 08:19:44] movie_extpipe_use off [0:motion] [INF] [ALL] [May 12 08:19:44] movie_extpipe [0:motion] [INF] [ALL] [May 12 08:19:44] timelapse_interval 0 [0:motion] [INF] [ALL] [May 12 08:19:44] timelapse_mode daily [0:motion] [INF] [ALL] [May 12 08:19:44] timelapse_fps 30 [0:motion] [INF] [ALL] [May 12 08:19:44] timelapse_codec mpg [0:motion] [INF] [ALL] [May 12 08:19:44] timelapse_filename %Y%m%d-timelapse [0:motion] [INF] [ALL] [May 12 08:19:44] video_pipe [0:motion] [INF] [ALL] [May 12 08:19:44] video_pipe_motion [0:motion] [INF] [ALL] [May 12 08:19:44] webcontrol_port 8080 [0:motion] [INF] [ALL] [May 12 08:19:44] webcontrol_ipv6 off [0:motion] [INF] [ALL] [May 12 08:19:44] webcontrol_localhost off [0:motion] [INF] [ALL] [May 12 08:19:44] webcontrol_parms 3 [0:motion] [INF] [ALL] [May 12 08:19:44] webcontrol_interface 0 [0:motion] [INF] [ALL] [May 12 08:19:44] webcontrol_auth_method 0 [0:motion] [INF] [ALL] [May 12 08:19:44] webcontrol_authentication [0:motion] [INF] [ALL] [May 12 08:19:44] webcontrol_tls off [0:motion] [INF] [ALL] [May 12 08:19:44] webcontrol_cert [0:motion] [INF] [ALL] [May 12 08:19:44] webcontrol_key [0:motion] [INF] [ALL] [May 12 08:19:44] webcontrol_cors_header [0:motion] [INF] [ALL] [May 12 08:19:44] stream_port 8081 [0:motion] [INF] [ALL] [May 12 08:19:44] stream_localhost off [0:motion] [INF] [ALL] [May 12 08:19:44] stream_auth_method 0 [0:motion] [INF] [ALL] [May 12 08:19:44] stream_authentication [0:motion] [INF] [ALL] [May 12 08:19:44] stream_tls off [0:motion] [INF] [ALL] [May 12 08:19:44] stream_cors_header [0:motion] [INF] [ALL] [May 12 08:19:44] stream_preview_scale 25 [0:motion] [INF] [ALL] [May 12 08:19:44] stream_preview_newline off [0:motion] [INF] [ALL] [May 12 08:19:44] stream_preview_method 0 [0:motion] [INF] [ALL] [May 12 08:19:44] stream_quality 50 [0:motion] [INF] [ALL] [May 12 08:19:44] stream_grey off [0:motion] [INF] [ALL] [May 12 08:19:44] stream_motion off [0:motion] [INF] [ALL] [May 12 08:19:44] stream_maxrate 1 [0:motion] [INF] [ALL] [May 12 08:19:44] stream_limit 0 [0:motion] [INF] [ALL] [May 12 08:19:44] database_type [0:motion] [INF] [ALL] [May 12 08:19:44] database_dbname [0:motion] [INF] [ALL] [May 12 08:19:44] database_host localhost [0:motion] [INF] [ALL] [May 12 08:19:44] database_port 0 [0:motion] [INF] [ALL] [May 12 08:19:44] database_user [0:motion] [INF] [ALL] [May 12 08:19:44] database_password [0:motion] [INF] [ALL] [May 12 08:19:44] database_busy_timeout 0 [0:motion] [INF] [ALL] [May 12 08:19:44] sql_log_picture off [0:motion] [INF] [ALL] [May 12 08:19:44] sql_log_snapshot off [0:motion] [INF] [ALL] [May 12 08:19:44] sql_log_movie off [0:motion] [INF] [ALL] [May 12 08:19:44] sql_log_timelapse off [0:motion] [INF] [ALL] [May 12 08:19:44] sql_query_start [0:motion] [INF] [ALL] [May 12 08:19:44] sql_query_stop [0:motion] [INF] [ALL] [May 12 08:19:44] sql_query [0:motion] [INF] [ALL] [May 12 08:19:44] track_type 0 [0:motion] [INF] [ALL] [May 12 08:19:44] track_auto off [0:motion] [INF] [ALL] [May 12 08:19:44] track_port [0:motion] [INF] [ALL] [May 12 08:19:44] track_motorx 0 [0:motion] [INF] [ALL] [May 12 08:19:44] track_motorx_reverse off [0:motion] [INF] [ALL] [May 12 08:19:44] track_motory 0 [0:motion] [INF] [ALL] [May 12 08:19:44] track_motory_reverse off [0:motion] [INF] [ALL] [May 12 08:19:44] track_maxx 0 [0:motion] [INF] [ALL] [May 12 08:19:44] track_minx 0 [0:motion] [INF] [ALL] [May 12 08:19:44] track_maxy 0 [0:motion] [INF] [ALL] [May 12 08:19:44] track_miny 0 [0:motion] [INF] [ALL] [May 12 08:19:44] track_homex 128 [0:motion] [INF] [ALL] [May 12 08:19:44] track_homey 128 [0:motion] [INF] [ALL] [May 12 08:19:44] track_iomojo_id 0 [0:motion] [INF] [ALL] [May 12 08:19:44] track_step_angle_x 10 [0:motion] [INF] [ALL] [May 12 08:19:44] track_step_angle_y 10 [0:motion] [INF] [ALL] [May 12 08:19:44] track_move_wait 10 [0:motion] [INF] [ALL] [May 12 08:19:44] track_speed 255 [0:motion] [INF] [ALL] [May 12 08:19:44] track_stepsize 40 [0:motion] [INF] [ALL] [May 12 08:19:44] track_generic_move [0:motion] [INF] [ALL] [May 12 08:19:44] camera [0:motion] [INF] [ALL] [May 12 08:19:44] camera_dir [0:motion] [NTC] [STR] [May 12 08:19:44] webu_start_strm: Starting all camera streams on port 8081 [0:motion] [NTC] [STR] [May 12 08:19:44] webu_strm_ntc: Started camera 0 stream on port 8081 [0:motion] [NTC] [STR] [May 12 08:19:44] webu_start_ctrl: Starting webcontrol on port 8080 [0:motion] [NTC] [STR] [May 12 08:19:44] webu_start_ctrl: Started webcontrol on port 8080 [0:motion] [NTC] [ENC] [May 12 08:19:44] ffmpeg_global_init: ffmpeg libavcodec version 58.35.100 libavformat version 58.20.100 [0:motion] [NTC] [ALL] [May 12 08:19:44] translate_init: Language: English [0:motion] [NTC] [ALL] [May 12 08:19:44] motion_start_thread: Camera ID: 0 is from /etc/motion/motion.conf [0:motion] [NTC] [ALL] [May 12 08:19:44] motion_start_thread: Camera ID: 0 Camera Name: (null) Service: v4l2: [0:motion] [NTC] [ALL] [May 12 08:19:44] main: Waiting for threads to finish, pid: 2302 [1:ml1] [NTC] [ALL] [May 12 08:19:44] motion_init: Camera 0 started: motion detection Enabled [1:ml1] [NTC] [VID] [May 12 08:19:44] vid_start: Opening Netcam RTSP [1:ml1] [INF] [NET] [May 12 08:19:44] netcam_rtsp_set_parms: Setting up Normal resolution stream. [1:ml1] [INF] [NET] [May 12 08:19:44] util_check_passthrough: pass-through is enabled but is still experimental. [1:ml1] [INF] [NET] [May 12 08:19:44] netcam_url_parse: Using port number 0 [1:ml1] [INF] [NET] [May 12 08:19:44] netcam_rtsp_set_path: Setting up v4l2 via ffmpeg netcam [1:ml1] [INF] [NET] [May 12 08:19:44] netcam_rtsp_set_v4l2: Normal resolution: Requested v4l2_palette option: 17 [1:ml1] [INF] [NET] [May 12 08:19:44] netcam_rtsp_set_v4l2: Normal resolution: Requested FOURCC code: YU12 [1:ml1] [INF] [NET] [May 12 08:19:44] netcam_rtsp_set_v4l2: Normal resolution: Setting v4l2 input_format: default [1:ml1] [INF] [NET] [May 12 08:19:44] netcam_rtsp_set_v4l2: Normal resolution: Setting v4l2 framerate: default [1:ml1] [INF] [NET] [May 12 08:19:44] netcam_rtsp_set_v4l2: Normal resolution: Setting v4l2 video_size: default [1:ml1] [INF] [NET] [May 12 08:19:44] netcam_rtsp_open_context: Normal resolution: Opened camera((null)) [1:ml1] [INF] [ENC] [May 12 08:19:44] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:44] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:44] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:44] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:44] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:44] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:44] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:44] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:44] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:44] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:44] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:44] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:45] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:45] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:45] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:45] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:45] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:45] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:45] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:45] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:45] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:45] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:45] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:45] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:45] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:45] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:45] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:46] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:46] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:46] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:46] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:46] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:46] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:46] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:46] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:46] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:46] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:46] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:46] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:46] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:46] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:46] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:47] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:47] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:47] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:47] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:47] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:47] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:47] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:47] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:47] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:47] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:47] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:47] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:47] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:47] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:47] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:48] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:48] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:48] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:48] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:48] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:48] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:48] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:48] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:48] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:48] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:48] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:48] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:48] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:48] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:48] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:49] ffmpeg_avcodec_log: non-existing PPS 0 referenced [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [May 12 08:19:49] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [May 12 08:19:49] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [ENC] [May 12 08:19:49] ffmpeg_avcodec_log: Could not find codec parameters for stream 0 (Video: h264 (High), none(progressive), 320x240): unspecified pixel format Consider increasing the value for the 'analyzeduration' and 'probesize' options [1:ml1] [INF] [ENC] [May 12 08:19:49] ffmpeg_avcodec_log: Assertion desc failed at src/libswscale/swscale_internal.h:670 Le lun. 11 mai 2020 ? 19:02, tosiara <tosi...@gmail.com> a ?crit : > > Let's start from upgrading to the latest 4.3.1 and capturing a log with -d 7 > > If you are familiar with gdb would be great to the backtrace of the crash > > On Mon, May 11, 2020, 15:11 Benjamin <bdg...@gmail.com> wrote: >> >> Hello, >> I'd like to build a camera for a birdhouse that does the following: >> - Store high resolution movies of motion events (1280x960 25fps) >> - Stream to Youtube at 1280x960 25fps >> >> It'll run on a Raspberry Pi 3A+. I'm testing on a Raspberry Pi 3B+ >> with motion 4.3.1. >> >> I thought of using gstreamer to split the camera stream to Youtube and >> to motion. >> >> After many trials I came up with the following pipeline. The idea is >> to produce 3 outputs: >> - stream to Youtube with silent audio (this part works well) >> - high resolution stream for saving movies (movie_passthrough) on >> /dev/video4 (v4l2loopback) >> - low resolution and low framerate stream for motion detection on >> /dev/video3 (v4l2loopback) >> >> gst-launch-1.0 -v rpicamsrc bitrate=5000000 ! \ >> video/x-h264,width=1280,height=960,framerate=25/1 ! \ >> tee name=rpicam ! \ >> queue ! \ >> h264parse ! \ >> flvmux name=ytmux ! \ >> rtmpsink location=rtmp://a.rtmp.youtube.com/live2/the-secret-stream-id \ >> audiotestsrc volume=0 ! \ >> voaacenc ! \ >> ytmux. \ >> rpicam. ! \ >> queue ! \ >> h264parse ! \ >> video/x-h264,stream-format=byte-stream ! \ >> v4l2sink device=/dev/video4 \ >> rpicam. ! \ >> queue ! \ >> h264parse ! \ >> decodebin ! \ >> videorate ! \ >> videoscale ! \ >> video/x-raw,width=320,height=240,framerate=5/1 ! \ >> omxh264enc ! \ >> h264parse ! \ >> video/x-h264,stream-format=byte-stream ! \ >> v4l2sink device=/dev/video3 >> >> rpicamsrc comes from here: https://github.com/thaytan/gst-rpicamsrc >> >> >> my motion.conf file: >> daemon off >> setup_mode off >> >> log_level 6 >> >> netcam_url v4l2:///dev/video3 >> netcam_highres v4l2:///dev/video4 >> >> width 320 >> height 240 >> framerate 5 >> >> text_left CAMERA1 >> text_right %Y-%m-%d\n%T-%q >> >> emulate_motion off >> threshold 1500 >> despeckle_filter EedDl >> minimum_motion_frames 1 >> event_gap 10 >> pre_capture 3 >> post_capture 0 >> >> picture_output off >> picture_filename %Y%m%d%H%M%S-%q >> >> movie_output on >> movie_passthrough on >> movie_max_time 60 >> movie_codec mkv >> movie_filename %t-%v-%Y%m%d%H%M%S >> >> webcontrol_port 8080 >> webcontrol_localhost off >> webcontrol_parms 3 >> >> stream_port 8081 >> stream_localhost off >> >> >> /dev/video3 and /dev/video4 are configured like this: >> pi@raspberrypi /e/motion> v4l2-ctl -d3 --list-formats-ext >> ioctl: VIDIOC_ENUM_FMT >> Type: Video Capture >> >> [0]: 'H264' (H.264, compressed) >> Size: Discrete 320x240 >> Interval: Discrete 0.200s (5.000 fps) >> pi@raspberrypi /e/motion> v4l2-ctl -d4 --list-formats-ext >> ioctl: VIDIOC_ENUM_FMT >> Type: Video Capture >> >> [0]: 'H264' (H.264, compressed) >> Size: Discrete 1280x960 >> Interval: Discrete 0.040s (25.000 fps) >> >> >> The thing is I cannot get it to work reliably. Motion either stops >> with SIGSEGV, or I get ffmpeg decoding errors. It somewhat worked once >> or twice, but the stored movies were not readable (no frame error). So >> I guess I'm missing something or taking the wrong approach. >> Does someone have an idea of how I could achieve this ? Or where else >> I could investigate ? Maybe should I only feed the low res to motion >> using the videodevice parameter and use an external program for >> recording the high resolution stream ? >> >> Thanks for your help, >> >> Benjamin >> >> >> _______________________________________________ >> Motion-user mailing list >> Motion-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/motion-user >> https://motion-project.github.io/ >> >> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user > > _______________________________________________ > Motion-user mailing list > Motion-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/motion-user > https://motion-project.github.io/ > > Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user ------------------------------ ------------------------------ Subject: Digest Footer _______________________________________________ Motion-user mailing list Motion-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/motion-user ------------------------------ End of Motion-user Digest, Vol 167, Issue 22 ********************************************