Opened 6 years ago

Closed 6 years ago

#6798 closed defect (fixed)

crossfade goes into infinite loop in new versions of ffmpeg

Reported by: Viktors Berstis Owned by:
Priority: important Component: avfilter
Version: git-master Keywords: deadlock regression
Cc: m4neokw@gmail.com Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug: Newer version of ffmpeg go into an infinite loop trying to cross-fade two videos. Version ffmpeg-20161122-d316b21-win64-static is the last version I have which works ok. New versions such as ffmpeg-20171031-88c7aa1-win64-static or ffmpeg-3.4-win64-static fail.
The input video can be pretty much anything. I extracted 3 seconds which demos the problem with the ffmpeg command. The result fade.m2g should look the same as either head.m2t or tail.m2t.
How to reproduce:
copy tail.m2t head.m2t
ffmpeg -y -i tail.m2t -i head.m2t -an -filter_complex "[0:v]trim=start=0:end=1,setpts=PTS-STARTPTS[firstclip];[1:v]trim=start=2:end=3,setpts=PTS-STARTPTS[secondclip];[0:v]trim=start=1:end=2,setpts=PTS-STARTPTS[fadeoutsrc];[1:v]trim=start=1:end=2,setpts=PTS-STARTPTS[fadeinsrc];[fadeinsrc]format=pix_fmts=yuva420p,fade=t=in:st=0:d=1:alpha=1[fadein];[fadeoutsrc]format=pix_fmts=yuva420p,fade=t=out:st=0:d=1:alpha=1[fadeout];[fadein]fifo[fadeinfifo];[fadeout]fifo[fadeoutfifo];[fadeoutfifo][fadeinfifo]overlay[crossfade];[firstclip][crossfade][secondclip]concat=n=3[output];[0:a][1:a] acrossfade=d=3 [audio]" -map "[output]" -map "[audio]" fade.m2t -report

Attachments (2)

tail.m2t (228.0 KB ) - added by Viktors Berstis 6 years ago.
sample input file
ffmpeg-20171101-215149.log (119.2 KB ) - added by Viktors Berstis 6 years ago.
log file... four ctrl-c's gets it to exit

Download all attachments as: .zip

Change History (8)

by Viktors Berstis, 6 years ago

Attachment: tail.m2t added

sample input file

by Viktors Berstis, 6 years ago

Attachment: ffmpeg-20171101-215149.log added

log file... four ctrl-c's gets it to exit

comment:1 by Carl Eugen Hoyos, 6 years ago

Component: undeterminedavfilter
Keywords: deadlock regression added; cross fade removed
Priority: normalimportant
Reproduced by developer: set
Status: newopen

Looks like a regression since 02aa0701ae0dc2def8db640c9e3c06dc1b5de70c

comment:2 by bobe, 6 years ago

Cc: m4neokw@gmail.com added

comment:3 by Elon Musk, 6 years ago

Does this still happens with latest master?

in reply to:  3 comment:4 by bobe, 6 years ago

Replying to richardpl:

Does this still happens with latest master?

I still see the issue as of 20180117-1b5d3c0

comment:5 by Elon Musk, 6 years ago

Please try latest version.

comment:6 by Carl Eugen Hoyos, 6 years ago

Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.