[Libav-user] Getting the size of video frames

Alex Cohn alexcohn at netvision.net.il
Tue Sep 11 08:18:42 CEST 2012


On Tue, Sep 11, 2012 at 5:09 AM, 陈 钢 <chengang5 at staff.sina.com.cn> wrote:
> Take a look at :
>
> http://stackoverflow.com/questions/2017843/fetch-frame-count-with-ffmpeg

I thought the question was about frame size (width and height), not
the number of frames.

Alex

> 在 2012-9-11,上午8:51, Rouhi Amirhossein2 写道:
>
> Hi
> I have a list of videos. how can i run a program, like ffmpeg (or any other
> program ) in a for loop to just get the size of the video frames ? like:
>
> for(i=0;i<MaxVideoNum;i++){
>
>   FrameSize[i]  =system(ffmpeg_path); //!!!?????
>
> }
> Cheers
> Amir


More information about the Libav-user mailing list