Closed aliparr- closed 3 years ago
Hey @aliparr-, sorry for the late response. Apparently I missed the notification.
In the commit https://github.com/Trekky12/kburns-slideshow/commit/280628d1071cdfd741aea4550aff7187c4350e4c this feature was unintentionally removed. I restored this and it should work now as expected.
First - a huge thanks for this fantastic project. All is working well, apart from if I specify
"loopable": true
in my config.jsonIf I do that, I get the following error from ffmpeg:
Stream specifier 'v-1end' in filtergraph description [0:v]format=pix_fmts=yuva420p, crop=w=2*floor(iw/2):h=2*floor(ih/2), scale=w=1920:h=1281, crop=w=1920:h=1080:x='(iw-ow)/2':y='(ih-oh)/2', scale=7680x4320,zoompan=z='if(eq(on,0),1.1,zoom-0.0003333333333333334)':x='iw-iw/zoom':y='ih-ih/zoom':fps=30:d=30*10.0:s=1920x1080, setpts=PTS-STARTPTS, setsar=1, format=rgba, split=2[v0out-end][v0out-main]; [v0out-main]fifo,trim=start_frame=0:end_frame=210,setpts=PTS-STARTPTS[v0main]; [v0out-end]fifo,trim=start_frame=210:end_frame=300,setpts=PTS-STARTPTS[v0end]; [1:v]format=pix_fmts=yuva420p, crop=w=2*floor(iw/2):h=2*floor(ih/2), scale=w=1920:h=1252, crop=w=1920:h=1080:x='(iw-ow)/2':y='(ih-oh)/2', scale=7680x4320,zoompan=z='if(eq(on,0),1,zoom+0.0003333333333333334)':x='0':y='0':fps=30:d=30*10.0:s=1920x1080, setpts=PTS-STARTPTS, setsar=1, format=rgba, split=3[v1out-start][v1out-end][v1out-main]; [v1out-start]fifo,trim=start_frame=0:end_frame=90,setpts=PTS-STARTPTS[v1start]; [v1out-main]fifo,trim=start_frame=90:end_frame=210,setpts=PTS-STARTPTS[v1main]; [v1out-end]fifo,trim=start_frame=210:end_frame=300,setpts=PTS-STARTPTS[v1end]; [2:v]format=pix_fmts=yuva420p, crop=w=2*floor(iw/2):h=2*floor(ih/2), pad=w=3290:h=1851:x='(ow-iw)/2':y='(oh-ih)/2', scale=7680x4320,zoompan=z='if(eq(on,0),1.1,zoom-0.0003333333333333334)':x='iw-iw/zoom':y='ih-ih/zoom':fps=30:d=30*10.0:s=1920x1080, setpts=PTS-STARTPTS, setsar=1, format=rgba, split=3[v2out-start][v2out-end][v2out-main]; [v2out-start]fifo,trim=start_frame=0:end_frame=90,setpts=PTS-STARTPTS[v2start]; [v2out-main]fifo,trim=start_frame=90:end_frame=210,setpts=PTS-STARTPTS[v2main]; [v2out-end]fifo,trim=start_frame=210:end_frame=300,setpts=PTS-STARTPTS[v2end]; [3:v]format=pix_fmts=yuva420p, crop=w=2*floor(iw/2):h=2*floor(ih/2), pad=w=3223:h=1813:x='(ow-iw)/2':y='(oh-ih)/2', scale=7680x4320,zoompan=z='if(eq(on,0),1,zoom+0.0003333333333333334)':x='0':y='ih-ih/zoom':fps=30:d=30*10.0:s=1920x1080, setpts=PTS-STARTPTS, setsar=1, format=rgba, split=3[v3out-start][v3out-end][v3out-main]; [v3out-start]fifo,trim=start_frame=0:end_frame=90,setpts=PTS-STARTPTS[v3start]; [v3out-main]fifo,trim=start_frame=90:end_frame=210,setpts=PTS-STARTPTS[v3main]; [v3out-end]fifo,trim=start_frame=210:end_frame=300,setpts=PTS-STARTPTS[v3end]; [4:v]format=pix_fmts=yuva420p, crop=w=2*floor(iw/2):h=2*floor(ih/2), scale=w=1920:h=1280, crop=w=1920:h=1080:x='(iw-ow)/2':y='(ih-oh)/2', scale=7680x4320,zoompan=z='if(eq(on,0),1,zoom+0.0003333333333333334)':x='0':y='ih-ih/zoom':fps=30:d=30*10.0:s=1920x1080, setpts=PTS-STARTPTS, setsar=1, format=rgba, split=3[v4out-start][v4out-end][v4out-main]; [v4out-start]fifo,trim=start_frame=0:end_frame=90,setpts=PTS-STARTPTS[v4start]; [v4out-main]fifo,trim=start_frame=90:end_frame=210,setpts=PTS-STARTPTS[v4main]; [v4out-end]fifo,trim=start_frame=210:end_frame=300,setpts=PTS-STARTPTS[v4end]; [5:v]format=pix_fmts=yuva420p, crop=w=2*floor(iw/2):h=2*floor(ih/2), pad=w=3555:h=2000:x='(ow-iw)/2':y='(oh-ih)/2', scale=7680x4320,zoompan=z='if(eq(on,0),1.1,zoom-0.0003333333333333334)':x='iw-iw/zoom':y='0':fps=30:d=30*10.0:s=1920x1080, setpts=PTS-STARTPTS, setsar=1, format=rgba, split=3[v5out-start][v5out-end][v5out-main]; [v5out-start]fifo,trim=start_frame=0:end_frame=90,setpts=PTS-STARTPTS[v5start]; [v5out-main]fifo,trim=start_frame=90:end_frame=210,setpts=PTS-STARTPTS[v5main]; [v5out-end]fifo,trim=start_frame=210:end_frame=300,setpts=PTS-STARTPTS[v5end]; [6:v]format=pix_fmts=yuva420p, crop=w=2*floor(iw/2):h=2*floor(ih/2), pad=w=3557:h=2001:x='(ow-iw)/2':y='(oh-ih)/2', scale=7680x4320,zoompan=z='if(eq(on,0),1.1,zoom-0.0003333333333333334)':x='iw-iw/zoom':y='ih-ih/zoom':fps=30:d=30*10.0:s=1920x1080, setpts=PTS-STARTPTS, setsar=1, format=rgba, split=3[v6out-start][v6out-end][v6out-main]; [v6out-start]fifo,trim=start_frame=0:end_frame=90,setpts=PTS-STARTPTS[v6start]; [v6out-main]fifo,trim=start_frame=90:end_frame=210,setpts=PTS-STARTPTS[v6main]; [v6out-end]fifo,trim=start_frame=210:end_frame=300,setpts=PTS-STARTPTS[v6end]; [7:v]format=pix_fmts=yuva420p, crop=w=2*floor(iw/2):h=2*floor(ih/2), scale=w=1920:h=1280, crop=w=1920:h=1080:x='(iw-ow)/2':y='(ih-oh)/2', scale=7680x4320,zoompan=z='if(eq(on,0),1,zoom+0.0003333333333333334)':x='iw-iw/zoom':y='0':fps=30:d=30*10.0:s=1920x1080, setpts=PTS-STARTPTS, setsar=1, format=rgba, split=3[v7out-start][v7out-end][v7out-main]; [v7out-start]fifo,trim=start_frame=0:end_frame=90,setpts=PTS-STARTPTS[v7start]; [v7out-main]fifo,trim=start_frame=90:end_frame=210,setpts=PTS-STARTPTS[v7main]; [v7out-end]fifo,trim=start_frame=210:end_frame=300,setpts=PTS-STARTPTS[v7end]; [8:v]format=pix_fmts=yuva420p, crop=w=2*floor(iw/2):h=2*floor(ih/2), scale=w=1920:h=1080, crop=w=1920:h=1080:x='(iw-ow)/2':y='(ih-oh)/2', scale=7680x4320,zoompan=z='if(eq(on,0),1,zoom+0.0003333333333333334)':x='0':y='ih-ih/zoom':fps=30:d=30*10.0:s=1920x1080, setpts=PTS-STARTPTS, setsar=1, format=rgba, split=3[v8out-start][v8out-end][v8out-main]; [v8out-start]fifo,trim=start_frame=0:end_frame=90,setpts=PTS-STARTPTS[v8start]; [v8out-main]fifo,trim=start_frame=90:end_frame=210,setpts=PTS-STARTPTS[v8main]; [v8out-end]fifo,trim=start_frame=210:end_frame=300,setpts=PTS-STARTPTS[v8end]; [9:v]format=pix_fmts=yuva420p, crop=w=2*floor(iw/2):h=2*floor(ih/2), scale=w=1920:h=1280, crop=w=1920:h=1080:x='(iw-ow)/2':y='(ih-oh)/2', scale=7680x4320,zoompan=z='if(eq(on,0),1,zoom+0.0003333333333333334)':x='iw-iw/zoom':y='0':fps=30:d=30*10.0:s=1920x1080, setpts=PTS-STARTPTS, setsar=1, format=rgba, split=3[v9out-start][v9out-end][v9out-main]; [v9out-start]fifo,trim=start_frame=0:end_frame=90,setpts=PTS-STARTPTS[v9start]; [v9out-main]fifo,trim=start_frame=90:end_frame=210,setpts=PTS-STARTPTS[v9main]; [v9out-end]fifo,trim=start_frame=210:end_frame=300,setpts=PTS-STARTPTS[v9end]; [10:v]format=pix_fmts=yuva420p, crop=w=2*floor(iw/2):h=2*floor(ih/2), scale=w=1920:h=1281, crop=w=1920:h=1080:x='(iw-ow)/2':y='(ih-oh)/2', scale=7680x4320,zoompan=z='if(eq(on,0),1.1,zoom-0.0003333333333333334)':x='iw-iw/zoom':y='ih-ih/zoom':fps=30:d=30*10.0:s=1920x1080, setpts=PTS-STARTPTS, setsar=1, format=rgba, split=2[v10out-start][v10out-main]; [v10out-start]fifo,trim=start_frame=0:end_frame=90,setpts=PTS-STARTPTS[v10start]; [v10out-main]fifo,trim=start_frame=90:end_frame=300,setpts=PTS-STARTPTS[v10main]; [v0end] [v1start] blend=all_expr='A*(1-T/3)+B*(T/3)':shortest=1 [v1trans]; [v1end] [v2start] blend=all_expr='A*(1-T/3)+B*(T/3)':shortest=1 [v2trans]; [v2end] [v3start] blend=all_expr='A*(1-T/3)+B*(T/3)':shortest=1 [v3trans]; [v3end] [v4start] blend=all_expr='A*(1-T/3)+B*(T/3)':shortest=1 [v4trans]; [v4end] [v5start] blend=all_expr='A*(1-T/3)+B*(T/3)':shortest=1 [v5trans]; [v5end] [v6start] blend=all_expr='A*(1-T/3)+B*(T/3)':shortest=1 [v6trans]; [v6end] [v7start] blend=all_expr='A*(1-T/3)+B*(T/3)':shortest=1 [v7trans]; [v7end] [v8start] blend=all_expr='A*(1-T/3)+B*(T/3)':shortest=1 [v8trans]; [v8end] [v9start] blend=all_expr='A*(1-T/3)+B*(T/3)':shortest=1 [v9trans]; [v9end] [v10start] blend=all_expr='A*(1-T/3)+B*(T/3)':shortest=1 [v10trans]; [v-1end][v0start][v0main][v1trans][v1main][v2trans][v2main][v3trans][v3main][v4trans][v4main][v5trans][v5main][v6trans][v6main][v7trans][v7main][v8trans][v8main][v9trans][v9main][v10trans][v10main] concat=n=23:v=1:a=0,format=yuv420p[out] matches no streams.
Here is the cmd line I am using to trigger:
python3 kbvs-cli.py out.mp4 -i data/1.jpeg data/2.jpeg data/3.jpeg data/4.jpeg data/5.jpeg data/6.jpeg data/7.jpeg data/8.jpeg data/9.jpeg data/10.jpeg
Thanks