Skip to content

Fix build with ffmpeg 8 - #1018

Open
marillat wants to merge 2 commits into
OpenShot:developfrom
marillat:patch-1
Open

Fix build with ffmpeg 8#1018
marillat wants to merge 2 commits into
OpenShot:developfrom
marillat:patch-1

Conversation

@marillat

@marillat marillat commented Sep 5, 2025

Copy link
Copy Markdown

No description provided.

Comment thread src/FFmpegWriter.cpp Outdated
case AV_CODEC_ID_H264:
video_codec_ctx->max_b_frames = 0; // At least this GPU doesn't support b-frames
video_codec_ctx->profile = FF_PROFILE_H264_BASELINE | FF_PROFILE_H264_CONSTRAINED;
video_codec_ctx->profile = AV_PROFILE_H264_BASELINE | AV_PROFILE_H264_BASELINE;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're changing *_H264_CONSTRAINED to *_H264_BASELINE here, is that intentional?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course should be AV_PROFILE_H264_CONSTRAINED
Fixed in 737c9c8

@rathann

rathann commented Oct 20, 2025

Copy link
Copy Markdown

FYI, these definitions were deprecated back in FFmpeg 6.1 (FFmpeg/FFmpeg@8238bc0) two years ago.

rathann added a commit to rathann/libopenshot that referenced this pull request Dec 19, 2025
Fixes build with FFmpeg 8, where `FF_PROFILE_*` enums were replaced with
`AV_PROFILE_*` and side_data API was replaced with codecpar.

References:
FFmpeg/FFmpeg@8238bc0
FFmpeg/FFmpeg@5432d2a

Supersedes OpenShot#1018 .

Fixes OpenShot#1028 .
@rathann rathann mentioned this pull request Dec 19, 2025
@github-actions github-actions Bot added the conflicts A PR with unresolved merge conflicts label Mar 22, 2026
@github-actions

Copy link
Copy Markdown

Merge conflicts have been detected on this PR, please resolve.

@rathann

rathann commented Aug 20, 2026

Copy link
Copy Markdown

It looks like this one is no longer required as this was fixed differently in #1045 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conflicts A PR with unresolved merge conflicts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants