Warning: session_start(): open(/var/lib/php/sessions/sess_k34l2r4hdlvdefeafvp5p0iejm, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
// ranges: ranges in seconds
sS ffmpeg_makeSpliceFilter(L ranges) {
new LS out;
int i = 0;
fOr (DoubleRange r : ranges) {
int lbl = ++i;
S start = ffmpeg_formatSeconds(r.start);
S end = ffmpeg_formatSeconds(r.end);
out.add("[0:v]trim=start=" + start + ":end=" + end + ",setpts=PTS-STARTPTS[v" + lbl + "]");
out.add("[0:a]atrim=start=" + start + ":end=" + end + ",asetpts=PTS-STARTPTS[a" + lbl + "]");
}
S concat = "concat=n=" + l(ranges);
out.add(joinMap(iota(i), j -> "[v" + j + "]") + concat + "[outv]");
out.add(joinMap(iota(i), j -> "[a" + j + "]") + + concat + ":v=0:a=1[outa]");
ret joinWithSemicolon(out);
}