AVStream.stream_identifier

Stream Identifier This is the MPEG-TS stream identifier +1 0 means unknown

struct AVStream
int stream_identifier;

Meta