Added "bframes" stream selector
This commit is contained in:
parent
9779940c76
commit
a784b63f36
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue