<html>
  <head>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
      Hi, I'm new using libavformat, libavcodec and libavutil and I got
    this thesis project where I need to select any video file from
    filesystem and encode to any video format whatever I want. I've
    tried many things, even the examples on several forums but I got no
    luck. I'm working with Qt and C++ in Ubuntu 11.10, I don't know if
    this could be an issue.<br>
     My principal problem is how to detect which is the video stream in
    the array of streams (using libavformar for that), the thing is that
    I need a codec id which can be compared with any file I choose from
    the filesystem, or  need to know if there is a way to find out which
    is the right codec id to compare. The other problem I got is when
    try to decode/encode the selected file the function
    avcodec_encode_video fails. <br>
    Also fails when I try to get file info using libavformat and is a HD
    video file (doesn't matter the extension, mkv, avi, mpg, mpg4;
    always fails).<br>
    <br>
     Does anyone know anything about it? Thanks in advance for any help.<br>
    Sorry by my english...<br>
    <div class="moz-signature">-- <br>
      <img src="cid:part1.04060605.04090401@art.jovenclub.cu" border="0"></div>
  </body>
</html>