You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Setting time_base when adding a stream to an output container #1524
Accessing time_base now raises an error with 13.0 when specifying time_base when calling add_stream on an output container
Expected behavior
Able to specify the time_base on a stream like previous versions
Actual behavior
RuntimeError raised when it's called
Traceback:
Traceback (most recent call last):
File \"/usr/src/app/test.py\", line 129, in test
main()
File \"/usr/src/app/test.py\", line 81, in _test
stream = container.add_stream(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File \"av/container/output.pyx\", line 132, in av.container.output.OutputContainer.add_stream
File \"av/stream.pyx\", line 111, in av.stream.Stream.__setattr__
File \"av/codec/context.pyx\", line 511, in av.codec.context.CodecContext.time_base.__set__
RuntimeError: Cannot access 'time_base' as a decoder"
If there's another way to specify this, then I'm definitely up for switching how I specify this, but I believe this is a valid use case since it's an encoder rather than a decoder and maybe the issue is that something is wrong with the is_decoder check?
Activity