<div dir="ltr">Sorry, I do not understand.<div><br></div><div>How can I see that </div><div><br></div><div>Stream #0:0: Video: mjpeg, yuvj420p, 640x480, 90k tbr, 90k tbn, 90k tbc is BAD</div><div><br></div><div>and </div><div>
</div><div>Stream #0:2(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 640x480, 5500 kb/s, 29.97 tbr, 1k tbn, 1k tbc is GOOD ?</div><div><br></div><div>Thank you,</div><div>Svetlana</div><div><br><div class="gmail_quote">
On Sun, Oct 21, 2012 at 4:03 PM, Andrey Utkin <span dir="ltr"><<a href="mailto:andrey.krieger.utkin@gmail.com" target="_blank">andrey.krieger.utkin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2012/10/21 Svetlana Olonetsky <<a href="mailto:svetlana.olonetsky@gmail.com">svetlana.olonetsky@gmail.com</a>>:<br>
<div><div class="h5">> Hi,<br>
><br>
> I am reading video files using ffmpeg in C++.<br>
> I have some videos from users with multiple video streams.<br>
><br>
> For example, running ffmpeg directly gives stream info:<br>
> Stream #0:0: Video: mjpeg, yuvj420p, 640x480, 90k tbr, 90k tbn, 90k tbc<br>
> Metadata:<br>
> comment : Movie/video screen capture<br>
> Stream #0:1(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, stereo,<br>
> s16, 192 kb/s<br>
> Stream #0:2(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p,<br>
> 640x480, 5500 kb/s, 29.97 tbr, 1k tbn, 1k tbc<br>
><br>
> How can I figure out which video stream is Main ?<br>
<br>
</div></div>You are contradicting yourself. You show example with one audio and<br>
one video stream.<br>
For analyzing elementary streams, look at AVFormatContext.streams<br>
array of AVStream structs; AVStream also has entry 'codec' of<br>
AVCodecContext type, where you can find all properties of certain<br>
elementary stream.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Andrey Utkin<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</font></span></blockquote></div><br></div></div>