How do I using av.open to open a ByteIO object? #999
Unanswered
fake-warrior8
asked this question in
1. Help
Replies: 1 comment 1 reply
-
Any solution? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
IMPORTANT: Be sure to replace all template sections {{ like this }} or your issue may be discarded.
Overview
I want to use av.open to open a ByteIO object. However, video_byte=av.open(buff) (where buff=ByteIO(some_bytes)) will output some errors. For example, video_byte.streams.video[0].time_base is None while video_mp4=av.open(some_mp4), video_mp4.streams.video[0].time_base will give a right number.
Expected behavior
video_byte = av.open(buff) (where buff=ByteIO(some_bytes)) and video_mp4=av.open(some_mp4) will work the same, which means their attributes are the same.
Actual behavior
video_byte.streams.video[0].time_base is None
Traceback:
Investigation
Research
I have done the following:
Additional context
{{ Add any other context about the problem here. }}
Beta Was this translation helpful? Give feedback.
All reactions