[FFmpeg-trac] #9586(ffmpeg:new): Incorrect seeking on mp4

FFmpeg trac at avcodec.org
Thu Jan 6 16:21:27 EET 2022


#9586: Incorrect seeking on mp4
----------------------------------+----------------------------------
             Reporter:  Rikitiki  |                     Type:  defect
               Status:  new       |                 Priority:  normal
            Component:  ffmpeg    |                  Version:  4.4.1
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+----------------------------------
 Incorrect seeking on bbb_sunflower_2160p_30fps_normal.mp4

 How to reproduce:
 1. unpack reproduce.7z to a folder
 2. copy ffmpeg executable to the unpacked folder
 3. download
 http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_2160p_30fps_normal.mp4
 from http://bbb3d.renderfarming.net/download.html to the unpacked folder
 4. in run.cmd modify paths inside CONFIGURATION AREA if need
 5. execute run.cmd to get test data
 6. content of "%OUT_DIR%\14270.jpg" should be equal to
 "%OUT_DIR%\_out.jpg" '''but it is not true'''

 In short, run.cmd does:
 1. extract pts_time for all frames via

 {{{
 %FFMPEG_CMD% -i "%INPUT_FILE%" -filter:v showinfo=checksum=False -f null -
 2> "%OUT_DIR%\_out.txt"
 }}}

 2. inside _out.txt, pts_time for frame n:14270 will be 475.733
 3. extract frame n:14270 via

 {{{
 %FFMPEG_CMD% -y -ss 475.733 -i "%INPUT_FILE%" -frames:v 1 -vsync drop
 "%OUT_DIR%\_out.jpg"
 }}}

 4. extract all frames via

 {{{
 %FFMPEG_CMD% -y -i "%INPUT_FILE%" -vsync drop -start_number 0
 "%OUT_DIR%\%%05d.jpg"
 }}}


 related tickets:
 ticket:6315
 ticket:5309
 ticket:4554
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9586>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list