Seek -ss accuracy

Issues involving a Windows version of FFmpeg. Do not post general usage questions here.
mingonn
Posts: 1
Joined: Wed Apr 12, 2017 12:01 am

Seek -ss accuracy

Postby mingonn » Wed Apr 12, 2017 12:56 am

Hi all,

Need to extract frames at an exact points (100ms accuracy) but having trouble. Documentation says
Note that in most formats it is not possible to seek exactly, so ffmpeg will seek to the closest seek point before position.
so it sounds like its not possible with ffmpeg so I though I would double check.

I have tried the following and a couple of other variants but is most cases stepping forward 100ms still gives me the same frame of starting point in the resulting clip. Looking at the results seeks resolution seems to be to the nearest second?

ffmpeg -ss 10.45 -i "C:\Video Analysis\1\1\Produce_6.mp4" -t 2 -c copy "C:\Video Analysis\1\1\Frames\0.MP4"
ffmpeg -ss 00:00:10.450 -i "C:\Video Analysis\1\1\Produce_6.mp4" -frames:v 1 "C:\Video Analysis\1\1\Frames\0.jpg"

Is it an issue with the video? Can I add more seek positions? Have 100s of videos and seek positions so doing this manually is not an option.

Hope someone has been here before and there is an easy fix.

llogan
Posts: 314
Joined: Fri Mar 14, 2014 3:29 am

Re: Seek -ss accuracy

Postby llogan » Thu Apr 20, 2017 7:50 pm

You need to cut on keyframes if you want to use "-c copy".
For your second command try using "-ss" as an output option.


Return to “Usage Issues”

Who is online

Users browsing this forum: Google [Bot] and 1 guest