Skip to content

Commit

Permalink
Added "bframes" stream selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Thulinma committed Apr 13, 2023
1 parent 9779940 commit a784b63
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,15 @@ std::set<size_t> Util::pickTracks(const DTSC::Meta &M, const std::set<size_t> tr

// Video-specific matches
if (!trackType.size() || trackType == "video"){
//All tracks containing bframes
if (trackLow == "bframes"){
for (std::set<size_t>::iterator it = trackList.begin(); it != trackList.end(); it++){
if (!trackType.size() || M.getType(*it) == trackType || M.getCodec(*it) == trackType){
if (M.hasBFrames(*it)){result.insert(*it);}
}
}
return result;
}
//Highest resolution
if (trackLow == "highres" || trackLow == "bestres" || trackLow == "maxres"){
//Select highest resolution track of this type
Expand Down

0 comments on commit a784b63

Please sign in to comment.