AvTranscoder  0.9.4
C++APIforLibav/FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AVCChecker.cpp
Go to the documentation of this file.
2 
3 extern "C" {
4 #include <libavcodec/h264.h>
5 }
6 
7 #include <string>
8 #include <vector>
9 
10 int main(int argc, char** argv)
11 {
14 
15  // List command line arguments
16  std::vector<std::string> arguments;
17  for(int argument = 1; argument < argc; ++argument)
18  {
19  arguments.push_back(argv[argument]);
20  }
21 
22  avtranscoder::InputFile inputFile(arguments.at(0));
23  avtranscoder::VideoProperties& video = inputFile.getProperties().getVideoProperties().at(0);
24  void* privateContext = video.getAVCodecContext().priv_data;
25  H264Context* h264Context = static_cast<H264Context*>(privateContext);
26 
27  return 0;
28 }
void preloadCodecsAndFormats()
Register all the codecs and formats which are enabled at configuration time.
Definition: common.cpp:16
AVCodecContext & getAVCodecContext()
static void setLogLevel(const int level)
Set the log level of ffmpeg/libav.
Definition: log.cpp:26
int main(int argc, char **argv)
Definition: AVCChecker.cpp:10