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 stream=nb_read_frames video.mpg 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. Thanks!! On Tue, Jan 8, 2019 at 10:07 PM Carl Zwanzig <[email protected]> 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, > and > the selected frame isn't a "B" frame, you may get the extras. What's the > export format? video or image? > > Later, > > z! > _______________________________________________ > ffmpeg-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > [email protected] 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 *entirety*___ _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
