@@ -48,6 +48,8 @@ int main( int argc, char** argv )
48
48
input.getProperties ().videoStreams .at (videoStreamIndex).sar .den << std::endl;
49
49
std::cout << " display aspect ratio : " << input.getProperties ().videoStreams .at (videoStreamIndex).dar .num << " /" <<
50
50
input.getProperties ().videoStreams .at (videoStreamIndex).dar .den << std::endl;
51
+ std::cout << " pixel type : " << input.getProperties ().videoStreams .at (videoStreamIndex).pixelName << std::endl;
52
+ std::cout << " number of components : " << input.getProperties ().videoStreams .at (videoStreamIndex).componentsCount << std::endl;
51
53
52
54
std::cout << " gop : " ;
53
55
for ( size_t frameIndex = 0 ; frameIndex < input.getProperties ().videoStreams .at (videoStreamIndex).gopStructure .size (); ++frameIndex )
@@ -56,7 +58,18 @@ int main( int argc, char** argv )
56
58
std::cout << ( input.getProperties ().videoStreams .at (videoStreamIndex).gopStructure .at ( frameIndex ).second ? " *" : " " );
57
59
}
58
60
std::cout << std::endl;
59
-
61
+ }
62
+ for ( size_t audioStreamIndex = 0 ; audioStreamIndex < input.getProperties ().audioStreams .size (); ++audioStreamIndex )
63
+ {
64
+ std::cout << " ---------- Audio stream " << audioStreamIndex << " ----------" << std::endl;
65
+ std::cout << " codec name : " << input.getProperties ().audioStreams .at (audioStreamIndex).codecName << std::endl;
66
+ std::cout << " codec long name : " << input.getProperties ().audioStreams .at (audioStreamIndex).codecLongName << std::endl;
67
+ std::cout << " sample format : " << input.getProperties ().audioStreams .at (audioStreamIndex).sampleFormat << std::endl;
68
+ std::cout << " codec id : " << input.getProperties ().audioStreams .at (audioStreamIndex).codecId << std::endl;
69
+ std::cout << " stream id : " << input.getProperties ().audioStreams .at (audioStreamIndex).streamId << std::endl;
70
+ std::cout << " sample rate : " << input.getProperties ().audioStreams .at (audioStreamIndex).sampleRate << std::endl;
71
+ std::cout << " channels : " << input.getProperties ().audioStreams .at (audioStreamIndex).channels << std::endl;
72
+ std::cout << " bit rate : " << input.getProperties ().audioStreams .at (audioStreamIndex).bit_rate << std::endl;
60
73
}
61
74
62
75
// init video decoders
0 commit comments