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 flag results in
The current way to set this flag (in stream = container.add_stream("h264", 60)
stream.flags |= -2147483648 # set cgop flag |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
flags
andflags2
are bothint
, notlong
orunsigned long
in libav.https://www.ffmpeg.org/doxygen/7.0/structAVCodecContext.html
This code works as is btw: