Warning: session_start(): open(/var/lib/php/sessions/sess_bhu8k7gri9v616t78go0p09g8r, 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 = formatDouble(r.start, 2);
S end = formatDouble(r.end, 2);
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 + "]");
}
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);
}