Opened 6 years ago

Last modified 6 years ago

#6997 open defect

Last image of the sequence is not shown in the generated video in case it is monochrome and goes after colored image

Reported by: Andriy Owned by:
Priority: important Component: ffmpeg
Version: git-master Keywords: concat fps regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug:
I'm generating the video using concat demuxer with a sequence of images. Video has a fade out in the end and each image has a duration specified (4.189 sec and 0.03214 for fade in/out transitions).
In the end of the video, there goes colored image, then monochrome image and then the fade out.
So the main issue is that this colored image is showed not 4.189 but 8.378 seconds and the monochrome image is not shown at all. The colored image is shown instead of the monochrome right till the ending fade out (It can be seen in the attached video).

Is reproducible only with the monochrome image going after colored and fps set to 30 (is not reproducible when fps is not set). Two colored is fine, two monochrome is fine, monochrome and then colored is fine.

Hard to say if it is a regression because it worked fine in the ffmpeg version 2.8. But after this version, we went straight to the latest 3.4.1

Attached required files to reproduce the issue (Put images_sequence.txt file and images folder into the same directory).
Full execution report attached.

How to reproduce:

% ffmpeg -f concat -i images_sequence.txt -vf fps=30 -vcodec h264 -pix_fmt yuv420p -preset slower -crf 24 missing_last_image.mp4
ffmpeg version - 3.4.1
built on Debain Jessy x64

Attachments (3)

missing_last_image.mp4 (2.1 MB ) - added by Andriy 6 years ago.
generated video with last image missing
ffmpeg-20180131-120322.log (384.8 KB ) - added by Andriy 6 years ago.
Full report of the command execution
images_sequence.txt (5.0 KB ) - added by Andriy 6 years ago.
Data required for the concat demuxer

Change History (5)

by Andriy, 6 years ago

Attachment: missing_last_image.mp4 added

generated video with last image missing

by Andriy, 6 years ago

Attachment: ffmpeg-20180131-120322.log added

Full report of the command execution

by Andriy, 6 years ago

Attachment: images_sequence.txt added

Data required for the concat demuxer

comment:1 by Andriy, 6 years ago

Was not able to upload files to FTP (was not able to connect, the host was unreachable ) or to Videolan (it just hang). So I put all the images in Dropbox.

https://www.dropbox.com/sh/1hibeo24je3t7tl/AADIa-w3KiJfk8l3-yt-RR4Ia?dl=0

Simply download the images folder.

comment:2 by Carl Eugen Hoyos, 6 years ago

Keywords: regression added; demuxer removed
Priority: criticalimportant
Reproduced by developer: set
Status: newopen
Version: 3.4git-master

For future tickets: Please remember to always test current FFmpeg git head before reporting an issue.

Regression since 9f6d48d696d679de77e8cb513d5f64cd708ed86f, related to tickets #1578 and #4119.

Work-around is to use -r 30.

Note: See TracTickets for help on using tickets.