Skip to content

Commit

Permalink
add crf, preview, strip-audio flags
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygd committed Apr 2, 2024
1 parent b377790 commit dd7126e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,10 @@ func main() {
// handle flags
versionFlag := flag.BoolP("version", "v", false, "Print version and exit")
updateFlag := flag.BoolP("update", "u", false, "Update to the latest version")
flag.StringVar(&Crf, "crf", Crf, "Constant rate factor")
flag.IntVarP(&Speed, "speed", "s", Speed, fmt.Sprintf("Priority of conversion speed over quality (0-%d)", len(SpeedPresets)-1))
flag.BoolVar(&StripAudio, "strip-audio", StripAudio, "Strip audio from the video")
flag.BoolVarP(&Preview, "preview", "p", Preview, "Converts only the first 3 seconds")
flag.BoolVar(&skipX265, "skip-x265", false, "Skip x265 conversion")
flag.BoolVar(&skipAV1, "skip-av1", false, "Skip AV1 conversion")

Expand Down

0 comments on commit dd7126e

Please sign in to comment.