Hari Babu Muga
haribabu.muga at quantiphi.com
Wed Jan 9 11:32:19 EET 2019
Thanks for the earliest reply!!
The following are the commands that I used for different operations.
1) For extracting all frames from the video:
ffmpeg -i video.mpg frames/frame%06d.jpg
2) For extracting resized all frames from the video:
ffmpeg -i video.mpg -vf scale=640:-2 frames/frame%06d.jpg
3) For reading total number of frames in a video:
ffprobe -v error -count_frames -select_streams v:0 -show_entries
Input format of the videos that I am using are: mpg, mp4, mov, flv
Output formats are: mp4 for video and jpg for an image.
On Tue, Jan 8, 2019 at 10:07 PM Carl Zwanzig <cpz at tuunq.com> wrote:
> On 1/8/2019 1:15 AM, Hari Babu Muga wrote:
> > When I read a video for knowing the total number of frames present in it,
> > ffmpeg gives me 'x' count but when I actually extracted the frames using
> > ffmpeg, it gave me 'x+3' frames. and the additional number of frames that
> > are coming are variable with respect to the format of the video. Kindly
> > tell me why this is happening.
> Hard to tell much without the complete command line you're using, please
> include that.
> Regarding formats- if you're pulling from a lossy format, such as mpeg,
> the selected frame isn't a "B" frame, you may get the extras. What's the
> export format? video or image?
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
_This message contains information that may be privileged or confidential
and is the property of the Quantiphi Inc and/or its affiliates_. It is
intended only for the person to whom it is addressed. _If you are not the
intended recipient, any review, dissemination, distribution, copying,
storage or other use of all or any portion of this message is strictly
prohibited. If you received this message in error, please immediately
notify the sender by reply e-mail and delete this message in its
More information about the ffmpeg-user