Skip to content

Expose LogLevel param for x264 codec#685

Open
hexbabe wants to merge 2 commits intopion:mainfrom
hexbabe:hexbabe/RSDK-12315-x264-log-level
Open

Expose LogLevel param for x264 codec#685
hexbabe wants to merge 2 commits intopion:mainfrom
hexbabe:hexbabe/RSDK-12315-x264-log-level

Conversation

@hexbabe
Copy link
Copy Markdown
Contributor

@hexbabe hexbabe commented Feb 11, 2026

Summary

  • Add LogLevel field to x264.Params so consumers can control x264 log verbosity (None, Error, Warning, Info, Debug), with default being X264_LOG_WARNING

This PR is separate from the x/3 stacked PRs for windows.

Test plan

  • Verify x264 [info] messages no longer appear in stderr with default params
  • Verify LogLevel: x264.LogInfo restores original verbose behavior
  • Verify warnings and errors from x264 still surface

🤖 Generated with Claude Code, verified by me

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 11, 2026

Codecov Report

❌ Patch coverage is 42.85714% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 42.13%. Comparing base (9a3d191) to head (e389232).

Files with missing lines Patch % Lines
pkg/codec/x264/x264.go 38.46% 8 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #685   +/-   ##
=======================================
  Coverage   42.13%   42.13%           
=======================================
  Files          86       86           
  Lines        5186     5200   +14     
=======================================
+ Hits         2185     2191    +6     
- Misses       2839     2847    +8     
  Partials      162      162           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hexbabe hexbabe marked this pull request as draft February 11, 2026 19:43
@hexbabe hexbabe changed the title Suppress noisy x264 info logs, expose LogLevel param Expose LogLevel param for x264 encoder Feb 11, 2026
@hexbabe hexbabe changed the title Expose LogLevel param for x264 encoder Expose LogLevel param for x264 codec Feb 11, 2026
@hexbabe hexbabe marked this pull request as ready for review March 2, 2026 11:40
hexbabe and others added 2 commits March 19, 2026 17:36
x264's default log level (X264_LOG_INFO) causes it to write encoder
stats, CPU capabilities, and profile info to stderr. When used with
viam-server, these appear as warn-level logs and create noise.

Default to LogWarning to suppress info messages while preserving
actual warnings and errors. Expose a LogLevel field on Params so
consumers can control the verbosity themselves.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@hexbabe hexbabe force-pushed the hexbabe/RSDK-12315-x264-log-level branch from b352a90 to e389232 Compare March 19, 2026 21:36
@hexbabe hexbabe requested review from JoTurk, at-wat and philipch07 and removed request for at-wat March 23, 2026 18:59
Copy link
Copy Markdown
Member

@JoTurk JoTurk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants