hopefully fix out of sync udio
This commit is contained in:
parent
6b69d7a532
commit
54668c0d93
2 changed files with 18 additions and 2 deletions
|
|
@ -24,10 +24,10 @@ services:
|
|||
volumes:
|
||||
- /mnt/user/plex:/media:ro
|
||||
- ./transcode-config.yaml:/app/config.yaml:ro
|
||||
- transcode-cache-v4:/cache
|
||||
- transcode-cache-v5:/cache
|
||||
ports:
|
||||
- "8090:8080"
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
transcode-cache-v4:
|
||||
transcode-cache-v5:
|
||||
|
|
|
|||
|
|
@ -121,3 +121,19 @@ index 9bbe037..c0297fe 100644
|
|||
}
|
||||
|
||||
// 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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue