Opened 5 months ago

#6327 new defect

Filtergraph video overlays freezing

Reported by: LordHDL Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Summary of the bug: When using audio chains and video overlays, the overlays will freeze.
How to reproduce: Overlay 2 videos on a static image background and include their audio in the final output.

ffmpeg -y -framerate 60 -loop 1 -i ~/Desktop/Image.tiff -i ~/Desktop/Video1.nut -i ~/Desktop/Video2.nut -t 270 -lavfi \
"[0]fade=t=out:st=268:d=2[bg]; \
[1:v]setpts=(PTS-STARTPTS)+3/TB,fade=t=in:st=3:d=2,fade=t=out:st=16:d=2,fifo[fade]; \
[bg][fade]overlay=(main_w/24)-(overlay_w)/24:(main_h/2)-(overlay_h/2):format=rgb[v1]; \
[2:v]setpts=(PTS-STARTPTS)+3/TB,fade=t=in:st=3:d=2,fade=t=out:st=265:d=2,fifo[v2]; \
[v1][v2]overlay=1440:(main_h/2)-(overlay_h/2):format=rgb[video]; \
[1:a]adelay=3000|3000,pan='stereo|c0=c0',afade=t=in:st=3:d=2,afade=t=out:st=13:d=2[a1]; \
[2:a]adelay=3000|3000,pan='stereo|c1=c1',afade=t=in:st=3:d=2,afade=t=out:st=265:d=2[a2]; \
[a1][a2]amix[audio]" \
-map [video] -map [audio] -c:v ffv1 -level 3 -coder 1 -context 1 -slicecrc 1 -g 1 -c:a pcm_s16le ~/Desktop/filtergraph.nut

Note: If I remove the audio chains entirely, the video overlays play correctly. Using -atrim does not fix it, nor does removing the delays, fades, or panning.

Full output in the attached file.

Attachments (1)

Filtergraph Overlay Freeze (21.7 KB) - added by LordHDL 5 months ago.

Download all attachments as: .zip

Change History (1)

Changed 5 months ago by LordHDL

Note: See TracTickets for help on using tickets.