util

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCommandWithRealtimeOutput

func ExecuteCommandWithRealtimeOutput(cmd *exec.Cmd) error

执行命令并实时输出命令的输出 逐行打印命令本身的输出(包括标准输出和错误输出)

func GetFrameNum added in v0.2.2

func GetFrameNum(s string) (int, error)

GetFrameNum 从ffmpeg输出中提取当前处理的帧数 使用正则表达式匹配输出中的frame字段 参数:

  • s: ffmpeg命令的输出字符串

返回值:

  • int: 提取到的帧数
  • error: 提取过程中的错误,如果提取成功则返回nil

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL