diff --git a/CHANGELOG.md b/CHANGELOG.md index a4af6d2..403c04f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -# [0.16.0] - 2026-01-26 +# [0.16.2] - 2026-01-26 ### Added diff --git a/README.md b/README.md index 4dae258..71b0c5c 100644 --- a/README.md +++ b/README.md @@ -764,7 +764,8 @@ gobs-cli settings stream-service --key='live_xyzxyzxyzxyz' rtmp_common - video: Get/Set video setting. - flags: - - --show: Show video settings. + + *optional* - --base-width: Base (canvas) width. - --base-height: Base (canvas) height. - --output-width: Output (scaled) width. @@ -773,7 +774,7 @@ gobs-cli settings stream-service --key='live_xyzxyzxyzxyz' rtmp_common - --fps-den: Frames per second denominator. ```console -gobs-cli settings video --show +gobs-cli settings video gobs-cli settings video --base-width=1920 --base-height=1080 ``` diff --git a/settings.go b/settings.go index 1be75b0..cbf0cbc 100644 --- a/settings.go +++ b/settings.go @@ -252,13 +252,12 @@ func (cmd *SettingsStreamServiceCmd) Run(ctx *context) error { // SettingsVideoCmd gets/ sets video settings. type SettingsVideoCmd struct { - Show bool `flag:"" help:"Show video settings."` - BaseWidth int `flag:"" help:"Base (canvas) width." min:"8"` - BaseHeight int `flag:"" help:"Base (canvas) height." min:"8"` - OutputWidth int `flag:"" help:"Output (scaled) width." min:"8"` - OutputHeight int `flag:"" help:"Output (scaled) height." min:"8"` - FPSNum int `flag:"" help:"Frames per second numerator." min:"1"` - FPSDen int `flag:"" help:"Frames per second denominator." min:"1"` + BaseWidth int `flag:"" help:"Base (canvas) width." min:"8"` + BaseHeight int `flag:"" help:"Base (canvas) height." min:"8"` + OutputWidth int `flag:"" help:"Output (scaled) width." min:"8"` + OutputHeight int `flag:"" help:"Output (scaled) height." min:"8"` + FPSNum int `flag:"" help:"Frames per second numerator." min:"1"` + FPSDen int `flag:"" help:"Frames per second denominator." min:"1"` } // Run executes the gets/ set video command. @@ -269,7 +268,8 @@ func (cmd *SettingsVideoCmd) Run(ctx *context) error { return fmt.Errorf("failed to get video settings: %w", err) } - if cmd.Show { + if cmd.BaseWidth == 0 && cmd.BaseHeight == 0 && cmd.OutputWidth == 0 && + cmd.OutputHeight == 0 && cmd.FPSNum == 0 && cmd.FPSDen == 0 { t := table.New().Border(lipgloss.RoundedBorder()). BorderStyle(lipgloss.NewStyle().Foreground(ctx.Style.border)). Headers("Video Setting", "Value").