Re: [Libav-user] reading video with multiple video streams

2012-10-22 Thread Michael Bradshaw
On Mon, Oct 22, 2012 at 2:01 AM, Svetlana Olonetsky wrote: > Thank you ! > > In our example we decided to go with codec_info_nb_frames != 1 in case 2 > video streams exist. I just found the function av_find_best_stream() which can find the "best" audio/video stream, which may be useful and/or mor

Re: [Libav-user] reading video with multiple video streams

2012-10-22 Thread Svetlana Olonetsky
Thank you ! In our example we decided to go with codec_info_nb_frames != 1 in case 2 video streams exist. Svetlana On Sun, Oct 21, 2012 at 9:18 PM, Michael Bradshaw < mbrads...@sorensonmedia.com> wrote: > On Sun, Oct 21, 2012 at 2:24 AM, Svetlana Olonetsky > wrote: > > Hi, > > > > I am reading

Re: [Libav-user] reading video with multiple video streams

2012-10-21 Thread Michael Bradshaw
On Sun, Oct 21, 2012 at 2:24 AM, Svetlana Olonetsky wrote: > Hi, > > I am reading video files using ffmpeg in C++. > I have some videos from users with multiple video streams. > > For example, running ffmpeg directly gives stream info: > Stream #0:0: Video: mjpeg, yuvj420p, 640x480, 90k tbr, 90k t

Re: [Libav-user] reading video with multiple video streams

2012-10-21 Thread Andrey Utkin
2012/10/21 Svetlana Olonetsky : > Sorry, I do not understand. > > How can I see that > > Stream #0:0: Video: mjpeg, yuvj420p, 640x480, 90k tbr, 90k tbn, 90k tbc is > BAD > > and > > Stream #0:2(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 640x480, > 5500 kb/s, 29.97 tbr, 1k tbn, 1k tbc is

Re: [Libav-user] reading video with multiple video streams

2012-10-21 Thread Svetlana Olonetsky
Sorry, I do not understand. How can I see that Stream #0:0: Video: mjpeg, yuvj420p, 640x480, 90k tbr, 90k tbn, 90k tbc is BAD and Stream #0:2(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 640x480, 5500 kb/s, 29.97 tbr, 1k tbn, 1k tbc is GOOD ? Thank you, Svetlana On Sun, Oct 21, 2012

Re: [Libav-user] reading video with multiple video streams

2012-10-21 Thread Andrey Utkin
2012/10/21 Svetlana Olonetsky : > Hi, > > I am reading video files using ffmpeg in C++. > I have some videos from users with multiple video streams. > > For example, running ffmpeg directly gives stream info: > Stream #0:0: Video: mjpeg, yuvj420p, 640x480, 90k tbr, 90k tbn, 90k tbc > Metadata:

[Libav-user] reading video with multiple video streams

2012-10-21 Thread Svetlana Olonetsky
Hi, I am reading video files using ffmpeg in C++. I have some videos from users with multiple video streams. For example, running ffmpeg directly gives stream info: Stream #0:0: Video: mjpeg, yuvj420p, 640x480, 90k tbr, 90k tbn, 90k tbc Metadata: comment : Movie/video screen cap