hopefully fix out of sync udio

This commit is contained in:
Olive Vaughn 2026-08-26 01:54:01 -04:00
parent 6b69d7a532
commit 54668c0d93
2 changed files with 18 additions and 2 deletions

View file

@ -24,10 +24,10 @@ services:
volumes: volumes:
- /mnt/user/plex:/media:ro - /mnt/user/plex:/media:ro
- ./transcode-config.yaml:/app/config.yaml:ro - ./transcode-config.yaml:/app/config.yaml:ro
- transcode-cache-v4:/cache - transcode-cache-v5:/cache
ports: ports:
- "8090:8080" - "8090:8080"
restart: unless-stopped restart: unless-stopped
volumes: volumes:
transcode-cache-v4: transcode-cache-v5:

View file

@ -121,3 +121,19 @@ index 9bbe037..c0297fe 100644
} }
// Audio specs // Audio specs
@@ -106,12 +127,15 @@ func TranscodeSegments(ctx context.Context, ffmpegBinary string, config Transcod
args = append(args, []string{
"-c:a", "aac",
"-b:a", fmt.Sprintf("%dk", profile.Bitrate),
+ "-af", "aresample=async=1:min_hard_comp=0.100",
}...)
}
// Segmenting specs
args = append(args, []string{
"-f", "segment",
+ "-muxdelay", "0",
+ "-muxpreload", "0",
"-segment_time_delta", "0.2",
"-segment_format", "mpegts",
"-segment_times", commaSeparatedSegTimes,