New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AVStream.codecpar #222
Comments
Looking at the example the problem isn't that we set the parameters on This kinda makes sense, as it means that libavformat becomes more isolated from libavcodec. You may not need codec contexts at all for [de]muxing. So, maybe, all we need to do is call |
(Take with a grain of salt:) Maybe we ought to consider that streams don't need a codec context... because they strictly don't. The content could be encoded elsewhere. We then expose each of the properties on This sort of very repetitive thing makes me want to dig out the Cython templating branch that I've been slowly rebasing up the chain every few months. |
My current understanding is that On the whole this doesn't seem to be a major issue, however there is at least one place where it is : Edit: my question about ContainerProxy seems to relate to #271 |
Lots of people are opening issues and/or sending emails that contain:
Perhaps we should do that.
The warning comes from mux.c:300, called from
avformat_init_output
, called fromavformat_write_header
. It is looking atAVCodecContext.codec_type
, seeing that it is set, and then issuing the warning.My guess is that it is being set by
avcodec_open2
, as we are manually opening all of the streams before writing the container header. (Oops?) I'm not sure if that actually makes sense.The text was updated successfully, but these errors were encountered: