- Full Error:
Stream specifier 's1:v' in filtergraph description [0]split=2:outputs=2[s0][s1];[s1:v]reverse[s2];[s0][s2]concat=a=0:n=2:v=1[s3] matches no streams.
- Formatted Error
- [0]split=2:outputs=2[s0][s1];
- [s1:v]reverse[s2];
- [s0][s2]concat=a=0:n=2:v=1[s3]
- Code:
instances = (
ffmpeg
.input(self.video_file)
.filter_multi_output(filter_name="split", outputs=2)
)
ordered_edits = []
for i in range(2):
if i%2 == 0:
ordered_edits.append(
instances[i]
)
else:
ordered_edits.append(
instances[i].video.filter(filter_name="reverse")
)
(
ffmpeg
.concat(*ordered_edits, a=0, v=1)
.output('done/output.mp4')
.run(overwrite_output=True))
Looking at the error code, it seems like s1:v should be a valid reference. The only thing I can think of is that there is an issue saving an exclusive video input into a nonspecified output. The files don't actually have any audio, I just want the video.
I'm lost, please help ffmpeg experts of the world!