Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > muc.lists.freebsd.multimedia > #13391 > unrolled thread

[Bug 297454] multimedia/ffmpeg: Fail to build on current since the introduction to video(4)

Started bybugzilla-noreply@freebsd.org
First post2026-08-11 20:36 +0000
Last post2026-08-13 11:13 +0000
Articles 11 — 1 participant

Back to article view | Back to muc.lists.freebsd.multimedia


Contents

  [Bug 297454] multimedia/ffmpeg: Fail to build on current since the introduction to video(4) bugzilla-noreply@freebsd.org - 2026-08-11 20:36 +0000
    [Bug 297454] multimedia/ffmpeg: Fail to build on current since the introduction to video(4) bugzilla-noreply@freebsd.org - 2026-08-12 05:54 +0000
    [Bug 297454] multimedia/ffmpeg: Fail to build on current since the introduction to video(4) bugzilla-noreply@freebsd.org - 2026-08-12 06:15 +0000
    [Bug 297454] multimedia/ffmpeg: Fail to build on current since the introduction to video(4) bugzilla-noreply@freebsd.org - 2026-08-12 06:18 +0000
    [Bug 297454] multimedia/ffmpeg: Fail to build on current since the introduction to video(4) bugzilla-noreply@freebsd.org - 2026-08-12 06:20 +0000
    [Bug 297454] multimedia/ffmpeg: Fail to build on current since the introduction to video(4) bugzilla-noreply@freebsd.org - 2026-08-12 06:21 +0000
    [Bug 297454] multimedia/ffmpeg: Fail to build on current since the introduction to video(4) bugzilla-noreply@freebsd.org - 2026-08-12 07:12 +0000
    [Bug 297454] multimedia/ffmpeg: Fail to build on current since the introduction to video(4) bugzilla-noreply@freebsd.org - 2026-08-12 11:56 +0000
    [Bug 297454] multimedia/ffmpeg: Fail to build on current since the introduction to video(4) bugzilla-noreply@freebsd.org - 2026-08-12 17:01 +0000
    [Bug 297454] multimedia/ffmpeg: Fail to build on current since the introduction to video(4) bugzilla-noreply@freebsd.org - 2026-08-13 11:07 +0000
    [Bug 297454] multimedia/ffmpeg: Fail to build on current since the introduction to video(4) bugzilla-noreply@freebsd.org - 2026-08-13 11:13 +0000

#13391 — [Bug 297454] multimedia/ffmpeg: Fail to build on current since the introduction to video(4)

Frombugzilla-noreply@freebsd.org
Date2026-08-11 20:36 +0000
Subject[Bug 297454] multimedia/ffmpeg: Fail to build on current since the introduction to video(4)
Message-ID<bug-297454-12827@https.bugs.freebsd.org/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297454

            Bug ID: 297454
           Summary: multimedia/ffmpeg: Fail to build on current since the
                    introduction to video(4)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: multimedia@FreeBSD.org
          Reporter: monwarez@mailoo.org
          Assignee: multimedia@FreeBSD.org
             Flags: maintainer-feedback?(multimedia@FreeBSD.org)

Since the introduction of https://reviews.freebsd.org/D58367
ffmpeg is seeing the header <sys/videoio.h>, and thus no longer include
<linux/videodev2.h> .
Given that both headers does not define the same sets of pixel format types,
ffmpeg fail to build.

I wonder what would be the best approach, given that we now have both video(4)
and webcamd that is able to generate a /dev/videoN devices and that they does
not seems to have the same capabilities in terms of pixel format, should we
take the minimal set of feature instead ?

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

[toc] | [next] | [standalone]


#13395

Frombugzilla-noreply@freebsd.org
Date2026-08-12 05:54 +0000
Message-ID<bug-297454-12827-SVgwip9a4m@https.bugs.freebsd.org/bugzilla/>
In reply to#13391
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297454

--- Comment #1 from Dan Kotowski <dan.kotowski@a9development.com> ---
This also impacts legacy ffmpeg4 (so we don't forget to clean up the others
while we're here)

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

[toc] | [prev] | [next] | [standalone]


#13396

Frombugzilla-noreply@freebsd.org
Date2026-08-12 06:15 +0000
Message-ID<bug-297454-12827-UBmgh3o2ll@https.bugs.freebsd.org/bugzilla/>
In reply to#13391
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297454

--- Comment #2 from Dan Kotowski <dan.kotowski@a9development.com> ---
This also impacts graphics/opencv, which breaks x11/kde among other things.

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

[toc] | [prev] | [next] | [standalone]


#13397

Frombugzilla-noreply@freebsd.org
Date2026-08-12 06:18 +0000
Message-ID<bug-297454-12827-KQCII0yYPd@https.bugs.freebsd.org/bugzilla/>
In reply to#13391
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297454

Dan Kotowski <dan.kotowski@a9development.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #273667|text/x-log                  |text/plain
          mime type|                            |

--- Comment #3 from Dan Kotowski <dan.kotowski@a9development.com> ---
Created attachment 273667
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=273667&action=edit
poudriere bulk -j FreeBSD:16:amd64 -p latest multimedia/ffmpeg4

src @71e72c9e91c4
ports @92fefcf39e03
multimedia/ffmpeg4 @388f5973b7f8

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

[toc] | [prev] | [next] | [standalone]


#13398

Frombugzilla-noreply@freebsd.org
Date2026-08-12 06:20 +0000
Message-ID<bug-297454-12827-LdG8fHoYeq@https.bugs.freebsd.org/bugzilla/>
In reply to#13391
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297454

Dan Kotowski <dan.kotowski@a9development.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #273668|text/x-log                  |text/plain
          mime type|                            |

--- Comment #4 from Dan Kotowski <dan.kotowski@a9development.com> ---
Created attachment 273668
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=273668&action=edit
poudriere bulk -j FreeBSD:16:amd64 -p latest multimedia/ffmpeg

src @71e72c9e91c4
ports @92fefcf39e03
multimedia/ffmpeg @388f5973b7f8

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

[toc] | [prev] | [next] | [standalone]


#13400

Frombugzilla-noreply@freebsd.org
Date2026-08-12 06:21 +0000
Message-ID<bug-297454-12827-nCe9RPzmBA@https.bugs.freebsd.org/bugzilla/>
In reply to#13391
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297454

Dan Kotowski <dan.kotowski@a9development.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #273669|text/x-log                  |text/plain
          mime type|                            |

--- Comment #5 from Dan Kotowski <dan.kotowski@a9development.com> ---
Created attachment 273669
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=273669&action=edit
poudriere bulk -j FreeBSD:16:amd64 -p latest graphics/opencv

src @71e72c9e91c4
ports @92fefcf39e03
graphics/opencv @45857456dd38

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

[toc] | [prev] | [next] | [standalone]


#13401

Frombugzilla-noreply@freebsd.org
Date2026-08-12 07:12 +0000
Message-ID<bug-297454-12827-6o1gyHoL8Q@https.bugs.freebsd.org/bugzilla/>
In reply to#13391
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297454

--- Comment #6 from Thierry Thomas <thierry@FreeBSD.org> ---
(In reply to Dan Kotowski from comment #1)
And also ffmpeg6.

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

[toc] | [prev] | [next] | [standalone]


#13406

Frombugzilla-noreply@freebsd.org
Date2026-08-12 11:56 +0000
Message-ID<bug-297454-12827-ym3qPbOSW3@https.bugs.freebsd.org/bugzilla/>
In reply to#13391
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297454

--- Comment #7 from Abdelkader Boudih <freebsd@seuros.com> ---
I opened D58793, to fix the build. tested against ffmpeg and opencv.

There is mplayer that needs --disable-tv-v4l2, i dont think anyone is using
analog tv with it.

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

[toc] | [prev] | [next] | [standalone]


#13409

Frombugzilla-noreply@freebsd.org
Date2026-08-12 17:01 +0000
Message-ID<bug-297454-12827-86ALtM15PV@https.bugs.freebsd.org/bugzilla/>
In reply to#13391
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297454

--- Comment #8 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=a8c126b6903e83a10a726019d3d347b20bfc86e3

commit a8c126b6903e83a10a726019d3d347b20bfc86e3
Author:     Abdelkader Boudih <freebsd@seuros.com>
AuthorDate: 2026-08-12 16:52:04 +0000
Commit:     Adrian Chadd <adrian@FreeBSD.org>
CommitDate: 2026-08-12 16:52:12 +0000

    video: add V4L2 compat symbols for ffmpeg/opencv

    Adds v4l2_std_id, struct v4l2_standard/v4l2_plane, VIDIOC_G_STD/S_STD/
    ENUMSTD, V4L2_STD_NTSC*, the MPLANE capability flag, multiplanar types
    (VIDEO_MAX_PLANES, v4l2_plane_pix_format, v4l2_pix_format_mplane,
    V4L2_TYPE_IS_MULTIPLANAR), V4L2_PIX_FMT_JPEG/YUV411P/SN9C10X, and the
    MPEG control class (V4L2_CID_MPEG_BASE, V4L2_CID_MPEG_VIDEO_B_FRAMES).

    video(4) capture devices are digital-only and never expose these, but
    ffmpeg's libavdevice/v4l2.c and opencv's cap_v4l.cpp both reference
    them unconditionally. Fixes their build against sys/videoio.h.

    PR:             297454

    Reviewed by:    manu, adrian
    Differential Revision:  https://reviews.freebsd.org/D58793

 sys/sys/videoio.h | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 101 insertions(+), 3 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

[toc] | [prev] | [next] | [standalone]


#13418

Frombugzilla-noreply@freebsd.org
Date2026-08-13 11:07 +0000
Message-ID<bug-297454-12827-MKPf5K0Mij@https.bugs.freebsd.org/bugzilla/>
In reply to#13391
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297454

--- Comment #9 from Dan Kotowski <dan.kotowski@a9development.com> ---
opencv is still failing to build, but with a new and slightly different set of
errors:

/usr/include/sys/videoio.h:58:6: error: redefinition of 'v4l2_field'
/usr/include/sys/videoio.h:71:6: error: redefinition of 'v4l2_buf_type'
/usr/include/sys/videoio.h:90:6: error: redefinition of 'v4l2_memory'
/usr/include/sys/videoio.h:97:6: error: redefinition of 'v4l2_colorspace'
/usr/include/sys/videoio.h:113:6: error: redefinition of 'v4l2_xfer_func'
/usr/include/sys/videoio.h:124:6: error: redefinition of 'v4l2_ycbcr_encoding'
/usr/include/sys/videoio.h:136:6: error: redefinition of 'v4l2_ctrl_type'
/usr/include/sys/videoio.h:148:6: error: redefinition of 'v4l2_frmsizetypes'
/usr/include/sys/videoio.h:154:6: error: redefinition of 'v4l2_frmivaltypes'
/usr/include/sys/videoio.h:163:8: error: redefinition of 'v4l2_fract'
/usr/include/sys/videoio.h:168:8: error: redefinition of 'v4l2_capability'
/usr/include/sys/videoio.h:178:8: error: redefinition of 'v4l2_pix_format'
/usr/include/sys/videoio.h:203:8: error: redefinition of
'v4l2_plane_pix_format'
/usr/include/sys/videoio.h:209:8: error: redefinition of
'v4l2_pix_format_mplane'
/usr/include/sys/videoio.h:231:8: error: redefinition of 'v4l2_format'
/usr/include/sys/videoio.h:241:8: error: redefinition of 'v4l2_fmtdesc'
/usr/include/sys/videoio.h:251:8: error: redefinition of 'v4l2_timecode'
/usr/include/sys/videoio.h:261:8: error: redefinition of 'v4l2_buffer'
/usr/include/sys/videoio.h:287:8: error: redefinition of 'v4l2_requestbuffers'

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

[toc] | [prev] | [next] | [standalone]


#13419

Frombugzilla-noreply@freebsd.org
Date2026-08-13 11:13 +0000
Message-ID<bug-297454-12827-nHThlOWLvI@https.bugs.freebsd.org/bugzilla/>
In reply to#13391
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297454

--- Comment #10 from Dan Kotowski <dan.kotowski@a9development.com> ---
https://gist.github.com/agrajag9/7702031f59691207cf14082be4a81340

src @f77fa28422ee (just after D58793 was committed to main)
ports @416fd19d5397
graphics/opencv @45857456dd38

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

[toc] | [prev] | [standalone]


Back to top | Article view | muc.lists.freebsd.multimedia


csiph-web