Motion - Bug Report 2016x 01x 16x 104627

BUG: Can't compile with V4L2

It would be nice if Motion worked with an up-to-date V4L2. Please refactor code to utilize V4L2, or V4L1 as a fallback option.

My first problem was a segmentation fault (core dumped) after a recent Ubuntu update. Now motion won't start, it fails after a few minutes. I followed the instructions to retrieve the latest trunk from subversion and attempted to install it. That's when I got the errors below.
motion.c:585:26: error: ?VIDEO_PALETTE_YUV420P? undeclared (first use in this function)
         cnt->imgs.type = VIDEO_PALETTE_YUV420P;


Motion version: 3.2.12
ffmpeg version: 2.7.4-0ubuntu0.15.10.1
Shared libraries: ffmpeg, mysql, postgresql
Server OS: Ubuntu 15.10, kernel 4.2.0-23-generic
-- AllanBogh - 16 Jan 2016

Follow up

Workaround: use "./configure --without-v4l" during compilation if the system is only using network cameras.

Fix record

Topic revision: r2 - 17 Jan 2016, AllanBogh
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.