Add ffmpeg async option for HomeKit audio

This commit is contained in:
Alexey Khit
2022-11-14 01:29:45 +03:00
parent eea413a36c
commit a4eab1944a
2 changed files with 5 additions and 0 deletions

View File

@@ -58,3 +58,4 @@
- https://github.com/leandromoreira/ffmpeg-libav-tutorial - https://github.com/leandromoreira/ffmpeg-libav-tutorial
- https://www.reddit.com/user/VeritablePornocopium/comments/okw130/ffmpeg_with_libfdk_aac_for_windows_x64/ - https://www.reddit.com/user/VeritablePornocopium/comments/okw130/ffmpeg_with_libfdk_aac_for_windows_x64/
- https://slhck.info/video/2017/02/24/vbr-settings.html - https://slhck.info/video/2017/02/24/vbr-settings.html
- [HomeKit audio samples problem](https://superuser.com/questions/1290996/non-monotonous-dts-with-igndts-flag)

View File

@@ -115,6 +115,10 @@ func Init() {
input = strings.Replace(tpl["file"], "{input}", s, 1) input = strings.Replace(tpl["file"], "{input}", s, 1)
} }
if _, ok := query["async"]; ok {
input = "-use_wallclock_as_timestamps 1 -async 1 " + input
}
s = cmd + input s = cmd + input
if query != nil { if query != nil {