• Peter Rekdal Sunde's avatar
    Obtain fourcc when `AVStream` is network stream · 042c486b
    Peter Rekdal Sunde authored
    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)
    042c486b
Name
Last commit
Last update
..
doc Loading commit data...
include/opencv2 Loading commit data...
misc Loading commit data...
perf Loading commit data...
src Loading commit data...
test Loading commit data...
CMakeLists.txt Loading commit data...