mirror of
https://github.com/IllusionMan1212/ffui.git
synced 2026-10-24 02:12:35 +00:00
feat: add button to print compiled ffmpeg command and exit
This commit is contained in:
@@ -79,8 +79,11 @@ func encode(fullFilePath string, fileName string, teaP *tea.Program, cfg ParsedC
|
||||
}
|
||||
}
|
||||
|
||||
err = ffmpeg.Input(fullFilePath).
|
||||
Output(newFileFullPath, ffmpeg.KwArgs{
|
||||
quotedFilePath := fmt.Sprintf("\"%s\"", fullFilePath)
|
||||
quotedNewFilePath := fmt.Sprintf("\"%s\"", newFileFullPath)
|
||||
|
||||
err = ffmpeg.Input(quotedFilePath).
|
||||
Output(quotedNewFilePath, ffmpeg.KwArgs{
|
||||
"c:v": cfg.VideoEncoder,
|
||||
"crf": cfg.CRF,
|
||||
"preset": cfg.Preset,
|
||||
|
||||
Reference in New Issue
Block a user