Warning: session_start(): open(/var/lib/php/sessions/sess_84pv18qafjosco9f320fhb18f3, 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
!7
cmodule VideoSplicer > DynPrintLog {
S inputFile, outputFile;
S timestamps;
transient ImageSurface isPreview;
visual jvsplit(northAndCenterWithMargins(
vstackWithSpacing(
withLabel("Input video:", filePathInputWithBrowseButton(dm_textField('inputFile))),
withLabel("Output video:", filePathInputWithBrowseButton(dm_textField('outputFile))),
rightAlignedLine(jbutton("Load video", rThread loadVideo))),
jsection("Timestamps", dm_textArea('timestamps))),
jhsplit(jsection("Preview", isPreview = jImageSurface()),
super));
void loadVideo enter {
File f = newFile(inputFile);
if (fileExists(f)) ret with infoBox("File not found: " + f2s(f));
S id = md5(f2s(f));
File previewFile = prepareCacheProgramFile("preview-" + id + ".jpg");
if (!fileExists(previewFile))
ffmpeg_getSingleFrame(f, previewFile, 0.0);
isPreview.setImage(loadImage2(previewFile));
}
}