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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy