On Mon, 30 Oct 2017 05:41:17 +0100
Alexandra Hájková <[email protected]>
wrote:

> On Sun, Oct 29, 2017 at 12:48 PM, Peter Große <[email protected]> wrote:
> > Fixes looping files without audio or when using stream_copy, where
> > ist->nb_samples is not set since no decoding is done.
> >  
> Does the loop discards the last frame because its duration is set to 0?

I think here it's about the duration of the input file, not the frame, but
I'm not really sure.

> Could you give me your sample(s), please?

I used https://trac.ffmpeg.org/raw-attachment/ticket/6139/loop.mp4

and the cmdline

  avconv -loop -1 -i loop.mp4 -qscale 2 out.avi

which works after applying both patches.

Another simple test is based on https://trac.ffmpeg.org/ticket/5719#comment:3

(create a 1 second sample file)
avconv -v quiet -filter_complex color=framerate=5 -t 1 /tmp/dummy.mkv
avprobe -v quiet /tmp/dummy.mkv -show_packets -show_format_entry pts_time | \
sort -g

This results in
0.400000
0.600000
0.800000
1.000000
1.200000

(loop that sample 4 times (additional 3))
avconv -v quiet -loop 3 -i /tmp/dummy.mkv -c copy /tmp/dummyx3.mp4
avprobe -v quiet /tmp/dummyx3.mp4 -show_packets -show_format_entry pts_time | \
sort -g

Without patch:

0.400000
0.600000
0.800000
1.000000
1.200000
6.200000
6.400000
6.600000
6.800000
7.000000
12.000000
12.200000
12.400000
12.600000
12.800000
17.800000
18.000000
18.200000
18.400000
18.600000

With patch, as expected:

0.400000
0.600000
0.800000
1.000000
1.200000
1.400000
1.600000
1.800000
2.000000
2.200000
2.400000
2.600000
2.800000
3.000000
3.200000
3.400000
3.600000
3.800000
4.000000
4.200000

Hope that helps.

Regards
Peter
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to