视频保存

This commit is contained in:
duoaohui
2026-05-19 15:34:19 +08:00
parent c1c108e632
commit b158cccbfc
2 changed files with 3 additions and 3 deletions

View File

@@ -549,8 +549,8 @@ func (s *MeetingRecordingService) transcodeWebmToMp4(ctx context.Context, webmPa
if strings.TrimSpace(s.meetingCfg.RecordingTranscodeFFmpegPath) != "" { if strings.TrimSpace(s.meetingCfg.RecordingTranscodeFFmpegPath) != "" {
ffmpegPath = strings.TrimSpace(s.meetingCfg.RecordingTranscodeFFmpegPath) ffmpegPath = strings.TrimSpace(s.meetingCfg.RecordingTranscodeFFmpegPath)
} }
if s.meetingCfg.RecordingTranscodeTimeoutSecond > 0 { if s.meetingCfg.RecordingTranscodeTimeoutSeconds > 0 {
timeoutSec = s.meetingCfg.RecordingTranscodeTimeoutSecond timeoutSec = s.meetingCfg.RecordingTranscodeTimeoutSeconds
} }
} }
if _, err := exec.LookPath(ffmpegPath); err != nil { if _, err := exec.LookPath(ffmpegPath); err != nil {

View File

@@ -81,7 +81,7 @@ type MeetingConfig struct {
InternalWebhookSecret string `mapstructure:"internal_webhook_secret"` InternalWebhookSecret string `mapstructure:"internal_webhook_secret"`
RecordingTranscodeEnabled bool `mapstructure:"recording_transcode_enabled"` RecordingTranscodeEnabled bool `mapstructure:"recording_transcode_enabled"`
RecordingTranscodeFFmpegPath string `mapstructure:"recording_transcode_ffmpeg_path"` RecordingTranscodeFFmpegPath string `mapstructure:"recording_transcode_ffmpeg_path"`
RecordingTranscodeTimeoutSecond int `mapstructure:"recording_transcode_timeout_seconds"` RecordingTranscodeTimeoutSeconds int `mapstructure:"recording_transcode_timeout_seconds"`
StaleRoomHours int `mapstructure:"stale_room_hours"` // 活跃超过此小时且无成员视为 stale默认 4 StaleRoomHours int `mapstructure:"stale_room_hours"` // 活跃超过此小时且无成员视为 stale默认 4
} }