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: Problems with mkv files (walexand) 2. Re: Problems with mkv files (tosiara) ---------------------------------------------------------------------- Message: 1 Date: Sun, 2 Feb 2020 19:55:54 +0100 From: walexand <w.alexan...@gmx.de> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] Problems with mkv files Message-ID: <0aa0bb74-2e80-8852-74c1-428d52c09...@gmx.de> Content-Type: text/plain; charset=utf-8; format=flowed There is something weird with your *.mkv file. Playing it with VLC only shows me a short flicker and the first frame. Playing it with ffplay and mplayer it plays (almost) correctly. ffplay doesn't stop at the end of the file. I run motion 4.2.2 on a raspberry Pi3 and my *.mkv files are quiet OK. What I can see is that you have a lot of options in your motion.conf. My motion.conf is rather small compared to yours. I don't have anything of: ****************************************************** # Use ffmpeg to encode videos of motion (default: off) ffmpeg_output_movies on # Use ffmpeg to make videos showing the moving pixels (ghost images) (default: off) ffmpeg_output_debug_movies off # Bitrate to be used by the ffmpeg encoder (default: 400000) # This option is ignored if ffmpeg_variable_bitrate is not 0 (disabled) ffmpeg_bps 400000 # Enables and defines variable bitrate for the ffmpeg encoder. # ffmpeg_bps is ignored if variable bitrate is enabled. # Valid values: 0 (default) = fixed bitrate defined by ffmpeg_bps, # or the range 1 - 100 where 1 means worst quality and 100 is best. ffmpeg_variable_bitrate 0 # Container/Codec output videos # Valid values: mpeg4, msmpeg4, swf,flv, ffv1, mov, mp4, mkv, hevc ffmpeg_video_codec mkv # When creating videos, should frames be duplicated in order # to keep up with the requested frames per second # (default: true) ffmpeg_duplicate_frames true # Interval in seconds between timelapse captures. Default: 0 = off timelapse_interval 0 # Timelapse file rollover mode. See motion_guide.html for options and uses. timelapse_mode daily # Frame rate for timelapse playback timelapse_fps 30 # Container/Codec for timelapse video. Valid values: mpg or mpeg4 timelapse_codec mpg ****************************************************** What I have is this: ****************************************************** # The encoding quality of the movie. (0=use bitrate. 1=worst quality, 100=best) movie_quality 60 # Container/Codec to used for the movie. See motion_guide.html movie_codec mkv ****************************************************** and what I'm missing in your config is this: ****************************************************** # Name of mmal camera (e.g. vc.ril.camera for pi camera). ; mmalcam_name value mmalcam_name vc.ril.camera ****************************************************** You said, you use the Raspi Cam but there is no entry in the config. Good Luck Regards Alex On 02.02.20 17:46, Peter Zandbergen wrote: > I attached the conf file, as distributed by apt for raspbian. > > I followed the manual and also installed the driver for the Pi camera, see > the lsmod output. > > This setup gives me mkv video files with a still picture. > > I have attached the video file for the second event, I uncovered the > camera, waved and then covered it. > > Thanks for looking into this. > > Peter Zandbergen > Tel: +31 6 460 55 872 > > linkedIn: peterzandbergen <https://www.linkedin.com/in/peterzandbergen> > > > On Sun, 2 Feb 2020 at 16:25, Harlan Daneker <hdane...@gmail.com> wrote: > >> Conf file would give more information >> >> On Sun, Feb 2, 2020 at 10:17 AM Peter Zandbergen < >> peter.zandber...@myhops.com> wrote: >> >>> Hi, >>> >>> I have installed motion on a raspberry pi zero using the apt package. I >>> added the driver for the Pi camera and managed to get a running image with >>> proper detection in the browser on port 8081. >>> >>> After seeing that a few events had been recorded to the target directory >>> I copied them to my W10 pc and tried to play them with VLC. What I saw was >>> a still picture of the first frame, no running video. >>> >>> Some suggestions on how to fix this? >>> >>> Log is below and video file added. >>> >>> Cheers, >>> >>> Peter Zandbergen >>> Tel: +31 6 460 55 872 >>> >>> linkedIn: peterzandbergen <https://www.linkedin.com/in/peterzandbergen> >>> >>> >>> >>> LOG >>> >>> ====== >>> ------------------------ >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_get_capability: - VIDEO_CAPTURE >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_get_capability: - VIDEO_OVERLAY >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_get_capability: - READWRITE >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_get_capability: - STREAMING >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_select_input: name = "Camera >>> 0", type 0x00000002, status 00000000 >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_select_input: - CAMERA >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_select_input: Device does not >>> support specifying PAL/NTSC norm >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_do_set_pix_format: Testing >>> palette YU12 (320x240) >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_do_set_pix_format: Using >>> palette YU12 (320x240) bytesperlines 320 sizeimage 115200 colorspace >>> 00000001 >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: found control >>> 0x00980900, "Brightness", range 0,100 >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: >>> "Brightness", default 50, current 50 >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: found control >>> 0x00980901, "Contrast", range -100,100 >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: >>> "Contrast", default 0, current 0 >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: found control >>> 0x00980902, "Saturation", range -100,100 >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: >>> "Saturation", default 0, current 0 >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: found control >>> 0x00980918, "Power Line Frequency", range 0,3 >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: "Power >>> Line Frequency", default 1, current 1 >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: found control >>> 0x0098090e, "Red Balance", range 1,7999 >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: "Red >>> Balance", default 1000, current 1000 >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: found control >>> 0x0098090f, "Blue Balance", range 1,7999 >>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: "Blue >>> Balance", default 1000, current 1000 >>> [1:ml1] [NTC] [ALL] [Feb 01 14:16:41] image_ring_resize: Resizing >>> pre_capture buffer to 1 items >>> [1:ml1] [NTC] [STR] [Feb 01 14:16:41] http_bindsock: listening on any >>> IPv4 address port 8081 >>> [1:ml1] [NTC] [ALL] [Feb 01 14:16:41] motion_init: Started motion-stream >>> server on port 8081 (auth Disabled) >>> [1:ml1] [NTC] [EVT] [Feb 01 14:16:46] event_newfile: File of type 8 saved >>> to: /var/lib/motion/01-20200201141646.mkv >>> [1:ml1] [NTC] [ALL] [Feb 01 14:16:46] motion_detected: Motion detected - >>> starting event 1 >>> [1:ml1] [NTC] [ALL] [Feb 01 14:20:00] mlp_actions: End of event 1 >>> [1:ml1] [NTC] [EVT] [Feb 01 14:20:37] event_newfile: File of type 8 saved >>> to: /var/lib/motion/02-20200201142037.mkv >>> [1:ml1] [NTC] [ALL] [Feb 01 14:20:37] motion_detected: Motion detected - >>> starting event 2 >>> [1:ml1] [NTC] [ALL] [Feb 01 14:21:56] mlp_actions: End of event 2 >>> [1:ml1] [NTC] [EVT] [Feb 01 14:22:19] event_newfile: File of type 8 saved >>> to: /var/lib/motion/03-20200201142219.mkv >>> [1:ml1] [NTC] [ALL] [Feb 01 14:22:19] motion_detected: Motion detected - >>> starting event 3 >>> [1:ml1] [NTC] [ALL] [Feb 01 14:23:51] mlp_actions: End of event 3 >>> [1:ml1] [NTC] [EVT] [Feb 01 14:23:58] event_newfile: File of type 8 saved >>> to: /var/lib/motion/04-20200201142358.mkv >>> [1:ml1] [NTC] [ALL] [Feb 01 14:23:58] motion_detected: Motion detected - >>> starting event 4 >>> [1:ml1] [NTC] [ALL] [Feb 01 14:30:30] mlp_actions: End of event 4 >>> [1:ml1] [NTC] [EVT] [Feb 01 14:30:54] event_newfile: File of type 8 saved >>> to: /var/lib/motion/05-20200201143054.mkv >>> [1:ml1] [NTC] [ALL] [Feb 01 14:30:54] motion_detected: Motion detected - >>> starting event 5 >>> [1:ml1] [NTC] [ALL] [Feb 01 14:32:44] mlp_actions: End of event 5 >>> [1:ml1] [NTC] [EVT] [Feb 01 14:34:33] event_newfile: File of type 8 saved >>> to: /var/lib/motion/06-20200201143432.mkv >>> [1:ml1] [NTC] [ALL] [Feb 01 14:34:33] motion_detected: Motion detected - >>> starting event 6 >>> [1:ml1] [NTC] [ALL] [Feb 01 14:36:09] mlp_actions: End of event 6 >>> [1:ml1] [NTC] [EVT] [Feb 01 14:37:39] event_newfile: File of type 8 saved >>> to: /var/lib/motion/07-20200201143739.mkv >>> [1:ml1] [NTC] [ALL] [Feb 01 14:37:39] motion_detected: Motion detected - >>> starting event 7 >>> [1:ml1] [NTC] [ALL] [Feb 01 14:48:29] mlp_actions: End of event 7 >>> >>> >>> _______________________________________________ >>> 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 > > > > _______________________________________________ > 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 > ------------------------------ Message: 2 Date: Sun, 2 Feb 2020 21:06:24 +0200 From: tosiara <tosi...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Problems with mkv files Message-ID: <CACHTdwRxNPOqs=_CVan9MVS-ExK=haxhjhryyrpzfbxtx_z...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" This is known issue with VLC and low FPS files. Tools -> Options -> Input codecs -> Network -> Caching policy: High latency On Sun, Feb 2, 2020 at 5:16 PM Peter Zandbergen <peter.zandber...@myhops.com> wrote: > Hi, > > I have installed motion on a raspberry pi zero using the apt package. I > added the driver for the Pi camera and managed to get a running image with > proper detection in the browser on port 8081. > > After seeing that a few events had been recorded to the target directory I > copied them to my W10 pc and tried to play them with VLC. What I saw was a > still picture of the first frame, no running video. > > Some suggestions on how to fix this? > > Log is below and video file added. > > Cheers, > > Peter Zandbergen > Tel: +31 6 460 55 872 > > linkedIn: peterzandbergen <https://www.linkedin.com/in/peterzandbergen> > > > > LOG > > ====== > ------------------------ > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_get_capability: - VIDEO_CAPTURE > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_get_capability: - VIDEO_OVERLAY > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_get_capability: - READWRITE > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_get_capability: - STREAMING > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_select_input: name = "Camera > 0", type 0x00000002, status 00000000 > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_select_input: - CAMERA > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_select_input: Device does not > support specifying PAL/NTSC norm > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_do_set_pix_format: Testing > palette YU12 (320x240) > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_do_set_pix_format: Using > palette YU12 (320x240) bytesperlines 320 sizeimage 115200 colorspace > 00000001 > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: found control > 0x00980900, "Brightness", range 0,100 > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: > "Brightness", default 50, current 50 > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: found control > 0x00980901, "Contrast", range -100,100 > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: > "Contrast", default 0, current 0 > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: found control > 0x00980902, "Saturation", range -100,100 > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: > "Saturation", default 0, current 0 > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: found control > 0x00980918, "Power Line Frequency", range 0,3 > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: "Power > Line Frequency", default 1, current 1 > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: found control > 0x0098090e, "Red Balance", range 1,7999 > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: "Red > Balance", default 1000, current 1000 > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: found control > 0x0098090f, "Blue Balance", range 1,7999 > [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: "Blue > Balance", default 1000, current 1000 > [1:ml1] [NTC] [ALL] [Feb 01 14:16:41] image_ring_resize: Resizing > pre_capture buffer to 1 items > [1:ml1] [NTC] [STR] [Feb 01 14:16:41] http_bindsock: listening on any IPv4 > address port 8081 > [1:ml1] [NTC] [ALL] [Feb 01 14:16:41] motion_init: Started motion-stream > server on port 8081 (auth Disabled) > [1:ml1] [NTC] [EVT] [Feb 01 14:16:46] event_newfile: File of type 8 saved > to: /var/lib/motion/01-20200201141646.mkv > [1:ml1] [NTC] [ALL] [Feb 01 14:16:46] motion_detected: Motion detected - > starting event 1 > [1:ml1] [NTC] [ALL] [Feb 01 14:20:00] mlp_actions: End of event 1 > [1:ml1] [NTC] [EVT] [Feb 01 14:20:37] event_newfile: File of type 8 saved > to: /var/lib/motion/02-20200201142037.mkv > [1:ml1] [NTC] [ALL] [Feb 01 14:20:37] motion_detected: Motion detected - > starting event 2 > [1:ml1] [NTC] [ALL] [Feb 01 14:21:56] mlp_actions: End of event 2 > [1:ml1] [NTC] [EVT] [Feb 01 14:22:19] event_newfile: File of type 8 saved > to: /var/lib/motion/03-20200201142219.mkv > [1:ml1] [NTC] [ALL] [Feb 01 14:22:19] motion_detected: Motion detected - > starting event 3 > [1:ml1] [NTC] [ALL] [Feb 01 14:23:51] mlp_actions: End of event 3 > [1:ml1] [NTC] [EVT] [Feb 01 14:23:58] event_newfile: File of type 8 saved > to: /var/lib/motion/04-20200201142358.mkv > [1:ml1] [NTC] [ALL] [Feb 01 14:23:58] motion_detected: Motion detected - > starting event 4 > [1:ml1] [NTC] [ALL] [Feb 01 14:30:30] mlp_actions: End of event 4 > [1:ml1] [NTC] [EVT] [Feb 01 14:30:54] event_newfile: File of type 8 saved > to: /var/lib/motion/05-20200201143054.mkv > [1:ml1] [NTC] [ALL] [Feb 01 14:30:54] motion_detected: Motion detected - > starting event 5 > [1:ml1] [NTC] [ALL] [Feb 01 14:32:44] mlp_actions: End of event 5 > [1:ml1] [NTC] [EVT] [Feb 01 14:34:33] event_newfile: File of type 8 saved > to: /var/lib/motion/06-20200201143432.mkv > [1:ml1] [NTC] [ALL] [Feb 01 14:34:33] motion_detected: Motion detected - > starting event 6 > [1:ml1] [NTC] [ALL] [Feb 01 14:36:09] mlp_actions: End of event 6 > [1:ml1] [NTC] [EVT] [Feb 01 14:37:39] event_newfile: File of type 8 saved > to: /var/lib/motion/07-20200201143739.mkv > [1:ml1] [NTC] [ALL] [Feb 01 14:37:39] motion_detected: Motion detected - > starting event 7 > [1:ml1] [NTC] [ALL] [Feb 01 14:48:29] mlp_actions: End of event 7 > > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------ 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 164, Issue 8 *******************************************