Skip to content

Wrong dtype for codec_context.flags #1719

Closed Answered by WyattBlue
FirefoxMetzger asked this question in 4. Bugs
Discussion options

You must be logged in to vote

flags and flags2 are both int, not long or unsigned long in libav.
https://www.ffmpeg.org/doxygen/7.0/structAVCodecContext.html

This code works as is btw:

import av

from av.codec.context import Flags

container = av.open("test.mp4", "w")
stream = container.add_stream("h264", 60)
stream.flags |= Flags.closed_gop

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FirefoxMetzger
Comment options

Answer selected by FirefoxMetzger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1718 on January 18, 2025 06:40.