Problem recording webcam with motion



  • Hello,

    I'm trying to record video from my usb webcam to make a dashcam, so I have installed motion with opkg. By default motion create correct pictures but after I have modified the configuration like this:

    max_movie_time 600
    emulate_motion on
    output_pictures off
    target_dir /tmp/run/mountd/mmcblk0p1

    but motion don't create anything.
    Also I have an error when I start motion, maybe it's part of the solution?

    root@Omega-C3FD:/etc/motion# motion
    [0] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motion/motion.conf
    [0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_output_movies"
    [0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_output_debug_movies"
    [0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_timelapse"
    [0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_timelapse_mode"
    [0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_bps"
    [0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_variable_bitrate"
    [0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_video_codec"
    [0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_deinterlace"
    [0] [ALR] [ALL] conf_cmdparse: Unknown config option "movie_filename"
    [0] [ALR] [ALL] conf_cmdparse: Unknown config option "timelapse_filename"
    [0] [NTC] [ALL] motion_startup: Motion 3.4.0-Git-78ba2da Started
    [0] [NTC] [ALL] motion_startup: Logging to file (/tmp/run/mountd/mmcblk0p1/motion.log)

    Thanks for your help



  • @Sebastien-Thiry

    Omega2+ does not have GPU nor high amount of memory and spare CPU.
    Pick a suitable platform is the way.


  • administrators

    @Sebastien-Thiry
    Seems like the version of motion you are using does not support direct video output . A simple workaround is to let motion output image series and then use ffmpeg to compile the images into a video afterwards.

    Here is a some what related tutorial on capturing time-lapse video with Omega2 hope it helps
    https://docs.onion.io/omega2-project-book-vol1/timelapse-camera.html

    Here is how the final video looks like
    https://vimeo.com/230518247


Log in to reply
 

Looks like your connection to Community was lost, please wait while we try to reconnect.