Obtain fourcc when `AVStream` is network stream
The `codec_tag` is only available when opening a file from disk. If `AVStream` is a network stream then `fourcc` must be obtained using `codec_id`. I have tested the following scenarios: 1) Open a `.mp4` file and verify that `codec_tag` is returned (old behavior) 2) Open a `rtsp` stream and verify that `codec_fourcc` is returned (Tested with a MJPEG, H264 and H265 stream)
Showing
Please
register
or
sign in
to comment