[FFmpeg-trac] #5719(ffmpeg:new): Using -stream_loop is wrong duration output

FFmpeg trac at avcodec.org
Sun Jul 24 10:47:58 EEST 2016


#5719: Using -stream_loop is wrong duration output
------------------------------------+----------------------------------
             Reporter:  nicol       |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  ffmpeg
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+----------------------------------

Comment (by mulvya):

 To add further, the DTS/PTS in the output are discontinuous at each loop
 joint and the timestamps 'jump'.

 Illustration:

 '''Step 1''': Generate dummy video


 {{{
 ffmpeg -f lavfi -i color=r=5:d=1 dummy.mkv
 }}}

 This has sane timestamps.


 {{{
 ffprobe dummy.mkv -show_entries frame=pkt_pts_time -of compact=p=0:nk=1
 }}}


 shows as expected


 {{{
 0.000000
 0.200000
 0.400000
 0.600000
 0.800000
 }}}


 '''Step 2''': Generate looped video


 {{{
 ffmpeg -stream_loop 3 -i dummy.mkv -c copy dummyx3.mp4
 }}}

 Timestamps are


 {{{
 0.000000
 0.200000
 0.400000
 0.600000
 0.800000
 5.800000
 6.000000
 6.200000
 6.400000
 6.600000
 11.600000
 11.800000
 12.000000
 12.200000
 12.400000
 17.400000
 17.600000
 17.800000
 18.000000
 18.200000
 }}}

 With longer videos, I have seen jumps of 30 seconds.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5719#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list