>>108201711
>Post the source code. Don't care about quality, would love to see.
sure its just a thin wrapper over a single ffmpeg command. python + qt (pyside is their official thing) and has all the widgets and player junk
def save_trim(self):
if not self.current_file:
return
base, ext = os.path.splitext(self.current_file)
output = base + "_trimmed" + ext
start_sec = self.trim_bar.start / 1000
end_sec = self.trim_bar.end / 1000
cmd = [
"ffmpeg",
"-y",
"-i", self.current_file,
"-ss", str(start_sec),
"-to", str(end_sec),
"-c:v", "libx264",
"-crf", "18",
"-preset", "medium",
"-c:a", "aac",
output
]
subprocess.run(cmd)
print("Saved:", output)
https://pastebin.com/raw/9fpCfRsp