Wrong dtype for codec_context.flags #1719
|
I just noticed that both flag fields (flags, flags2) in the codec context are type ...
stream = container.add_stream("h264", 60)
stream.flags |= 0x80000000 # set cgop flagresults in The current way to set this flag (in stream = container.add_stream("h264", 60)
stream.flags |= -2147483648 # set cgop flag |
Answered by
WyattBlue
Jan 18, 2025
Replies: 1 comment 1 reply
|
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 |
1 reply
Answer selected by
FirefoxMetzger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
flagsandflags2are bothint, notlongorunsigned longin libav.https://www.ffmpeg.org/doxygen/7.0/structAVCodecContext.html
This code works as is btw: