View Issue Details

IDProjectCategoryView StatusLast Update
0032871CommunityOCCT:Configurationpublic2024-08-22 17:25
Reporterkgv Assigned Tovpozdyayev 
PrioritynormalSeverityminor 
Status newResolutionopen 
Product Version7.6.0 
Target VersionUnscheduled 
Summary0032871: Configuration, Media_FormatContext - compilation fails with FFmpeg 5.0
DescriptionCompilation fails with FFmpeg-5.0
https://bugs.gentoo.org/834422
FAILED: src/TKService/CMakeFiles/TKService.dir/__/Media/Media_FormatContext.cxx.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DHAVE_FFMPEG -DHAVE_FREETYPE -DHAVE_OPENGL_EXT -DHAVE_TK -DHAVE_XLIB -DOCC_CONVERT_SIGNALS -DTKService_EXPORTS -I/usr/include/freetype2 -I/var/tmp/portage-ondisk/portage/sci-libs/opencascade-7.6.1/work/occt-V7_6_1_build/include/opencascade  -std=c++0x -O2 -pipe -march=znver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check -fexceptions -fPIC -Wall -Wextra -fPIC -MD -MT src/TKService/CMakeFiles/TKService.dir/__/Media/Media_FormatContext.cxx.o -MF src/TKService/CMakeFiles/TKService.dir/__/Media/Media_FormatContext.cxx.o.d -o src/TKService/CMakeFiles/TKService.dir/__/Media/Media_FormatContext.cxx.o -c /var/tmp/portage-ondisk/portage/sci-libs/opencascade-7.6.1/work/occt-V7_6_1/src/Media/Media_FormatContext.cxx
/var/tmp/portage-ondisk/portage/sci-libs/opencascade-7.6.1/work/occt-V7_6_1/src/Media/Media_FormatContext.cxx: In member function ‘TCollection_AsciiString Media_FormatContext::StreamInfo(unsigned int, AVCodecContext*) const’:
/var/tmp/portage-ondisk/portage/sci-libs/opencascade-7.6.1/work/occt-V7_6_1/src/Media/Media_FormatContext.cxx:413:25: error: ‘const AVStream’ {aka ‘const struct AVStream’} has no member named ‘codec’
  413 |     aCodecCtx = aStream.codec;
TagsNo tags attached.
Test case number

Relationships

child of 0030612 closedapn Open CASCADE Visualization - provide texture map with video as image source 

Activities

dpasukhi

2024-08-22 11:22

administrator   ~0116541

@edman007 do you have the same issue and it is has impact on your project?

edman007

2024-08-22 16:20

reporter   ~0116542

@dpasukhi yup, working now

edman007

2024-08-22 16:23

reporter   ~0116543

@dpasukhi I mean yes, I still have this issue, I was adding the note because I'm going to try and patch it to get it working with the latest ffmpeg and see if anyone else has this issue

edman007

2024-08-22 16:27

reporter   ~0116544

My only impacts though so far is I can't build with ffmpeg at all, I'm not sure that I need ffmpeg, using it right now without ffmpeg

dpasukhi

2024-08-22 16:48

administrator   ~0116545

@edman007 do you work on win or linux?
If you needs to play audio - you need that lib. But by default, OCCT has no audio actions on XCAF. You will need to create your own solution based on OCCT functionality.

edman007

2024-08-22 17:25

reporter   ~0116546

@dpasukhi I'm on Linux, using it for FreeCAD and KiCad, not sure I need audio though

Anyways, I looked at the code and some bug reports, I think ffmpeg 4.x is the last version that Opencascade will build with. The latest ffmpeg is 7.x, 4.x is so old that I don't think any modern system has it anymore.

And the reason it's failing to build is the APIs opencascade were already very deprecated in 4.x, and they started deleting them in 5.x. most of the ffmpeg code needs to be updated to use the newer APIs to get a sccessful ffmpeg build. That's why the Gentoo bug has resolved as just marking it incompatible with anything other than ffmpeg 4. There have been multiple releases of opencascade since then and no updates to the ffmpeg support.

Issue History

Date Modified Username Field Change
2022-03-14 09:32 kgv New Issue
2022-03-14 09:32 kgv Assigned To => kgv
2022-03-14 09:33 kgv Summary Configuration - compilation fails with FFmpeg 5.0 => Configuration, Media_FormatContext - compilation fails with FFmpeg 5.0
2022-03-14 09:33 kgv Relationship added child of 0030612
2022-10-19 15:55 smoskvin Assigned To kgv => vpozdyayev
2022-10-24 10:39 szy Target Version 7.7.0 => 7.8.0
2023-08-01 15:09 dpasukhi Target Version 7.8.0 => Unscheduled
2024-08-22 11:22 dpasukhi Note Added: 0116541
2024-08-22 16:20 edman007 Note Added: 0116542
2024-08-22 16:23 edman007 Note Added: 0116543
2024-08-22 16:27 edman007 Note Added: 0116544
2024-08-22 16:48 dpasukhi Note Added: 0116545
2024-08-22 17:25 edman007 Note Added: 0116546