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
I use this function from example func firstVideoStream(fmtCtx *avformat.Context) *avformat.Stream { for _, stream := range fmtCtx.Streams() { switch stream.CodecContext().CodecType() { case avutil.MediaTypeVideo: return stream } } return nil }
Why I always get 0 (zero) from this call stream.CodecContext().CodecType()? Test with type data video, image, text, etc.
The text was updated successfully, but these errors were encountered:
I use this function from example
func firstVideoStream(fmtCtx *avformat.Context) *avformat.Stream { for _, stream := range fmtCtx.Streams() { switch stream.CodecContext().CodecType() { case avutil.MediaTypeVideo: return stream } } return nil }
Why I always get 0 (zero) from this call stream.CodecContext().CodecType()? Test with type data video, image, text, etc.
The text was updated successfully, but these errors were encountered: