https://bugs.kde.org/show_bug.cgi?id=450790

--- Comment #6 from Reinold Rojas <rojasrein...@gmail.com> ---
I'm now not totally sure it is a scale issue. I tried using the same  method to
extend a frame as the preview and use it for the end but that doesn't seem to
work. ffmpeg just seems to skip rendering that portion entirely if its added to
the end.

I found this a comment on stack overflow that mentions exactly what I thought
was the problem (different resolutions for input images) but trying that
doesn't seem to fix the issue here. https://superuser.com/a/1136305 and ffmpeg
doc https://ffmpeg.org/ffmpeg-filters.html#scale

I'm not quite sure what else to try/test if anyone has any ideas...

Here was my last ffmpeg filter command I was testing with for visibility:

```

[0]scale=w=$WIDTH:h=$HEIGHT:force_original_aspect_ratio=decrease:eval=frame[main1];
 [main1]loop=1:size=1:start=0[main2];
 [main2]setpts=PTS-STARTPTS[main3];
 [1]split=3 [preview1][transition1][ending1];

[transition1]scale=$WIDTH:$HEIGHT:force_original_aspect_ratio=decrease:eval=frame
[transition2];
 [transition2]loop='if(gte($FIRST_FRAME_SEC, 1), 1*$IN_FPS,
0)':size=1:start=1[transition3];
 [transition3]setpts=PTS-STARTPTS[transition4];
 [preview1]loop='if(gte($FIRST_FRAME_SEC, 1), ($FIRST_FRAME_SEC*$IN_FPS) -
0.5*$IN_FPS, $FIRST_FRAME_SEC*$IN_FPS)':size=1:start=1[preview2];

[preview2]scale=$WIDTH:$HEIGHT:force_original_aspect_ratio=decrease:eval=frame[preview3];
 [preview3]setpts=PTS-STARTPTS[preview4];
 [ending1]loop=$LAST_FRAME_SEC*$IN_FPS:size=1:start=1[ending2];

[ending2]scale=$WIDTH:$HEIGHT:force_original_aspect_ratio=decrease:eval=frame[ending3];
 [ending3]setpts=PTS-STARTPTS[ending4];

[transition4][main3]xfade=transition=smoothright:duration=0.5:offset=0[combined1];
 [combined1]trim=start_frame=1[combined2];

[combined2]scale=$WIDTH:$HEIGHT:force_original_aspect_ratio=decrease:eval=frame[combined3];
 [ending4][combined3]scale2ref[ending5][combined4] ;
 [preview4][combined4][ending5] concat=n=3[final1];
 [final1] setpts=PTS-STARTPTS[final2];
 [final2] trim=start_frame=1
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to