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. saving just the raw file (Evuraan)


----------------------------------------------------------------------

Message: 1
Date: Fri, 29 Nov 2019 09:53:44 -0800
From: Evuraan <evur...@gmail.com>
To: motion-user@lists.sourceforge.net
Subject: [Motion-user] saving just the raw file
Message-ID:
        <CA+jJSoSFswW1nXsQive04G-9CygstoAnH1vvdXAoYo=0zcm...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Hope everyone had a wonderful thanksgiving!

(motion Version 4.0.1)

I've a pi3 with 7 cameras, if all them are triggered at the same time,
I may experience oom:

Nov 28 22:00:34 pi3 kernel: [ 1053.644315] Out of memory: Kill process
4432 (motion) score 398 or sacrifice child
Nov 28 22:00:34 pi3 kernel: [ 1053.644360] Killed process 6331 (ml7)
total-vm:1006252kB, anon-rss:360900kB, file-rss:288kB, shmem-rss:0kB
Nov 28 22:00:34 pi3 kernel: [ 1053.743129] oom_reaper: reaped process
6331 (ml7), now anon-rss:4kB, file-rss:0kB, shmem-rss:0kB

I was trying to have motion write just a raw file so I can  dispatch
it to my other hosts for processing. (Just to spare my pi from running
the expensive ffmpeg operations.)

ffmpeg_output_movies on
ffmpeg_output_debug_movies off
ffmpeg_timelapse 0
ffmpeg_timelapse_mode daily
ffmpeg_bps 400000
ffmpeg_variable_bitrate 0
ffmpeg_video_codec mp4
ffmpeg_duplicate_frames true
use_extpipe on
extpipe cat > %f.raw
;extpipe ffmpeg -y -f rawvideo -pix_fmt yuv420p -video_size %wx%h -re
-i pipe:0 -use_wallclock_as_timestamps 1 -vcodec libx264 -preset
ultrafast -movflags +faststart -an  -f mp4 %f.mp4

While experimenting with these config settings, I noticed that it
still writes out an mp4 file:

-rw-r--r-- 1 evu evu  22M Nov 28 12:43 cam3-2019-11-28-12-43-12-01-00.raw
-rw-r--r-- 1 evu evu 1.6M Nov 28 12:44 cam3-2019-11-28-12-43-12-01-00.mp4


 is it possible to have just the raw file written out, not along with
.mp4 in my case?

Thanks!



------------------------------



------------------------------

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 161, Issue 17
********************************************

Reply via email to