Compare commits

...

3 commits

Author SHA1 Message Date
Hoang Dinh cb51396677
Merge 4a14707f06 into 1aff7a35f2 2024-09-09 14:48:36 +09:00
dependabot[bot] 1aff7a35f2
no log: Bump the mantine group in /frontend with 6 updates (#2649) 2024-09-09 14:48:15 +09:00
Administrator Administrator 4a14707f06 Turn on Audio Sync for audio extraction process 2024-09-01 19:38:43 -07:00
4 changed files with 44 additions and 42 deletions

View file

@ -143,7 +143,7 @@ def encode_audio_stream(path, ffmpeg_path, audio_stream_language=None):
logger.debug(f"Whisper will only use the {audio_stream_language} audio stream for {path}")
inp = inp[f'a:m:language:{audio_stream_language}']
out, _ = inp.output("-", format="s16le", acodec="pcm_s16le", ac=1, ar=16000) \
out, _ = inp.output("-", format="s16le", acodec="pcm_s16le", ac=1, ar=16000, af="aresample=async=1") \
.run(cmd=[ffmpeg_path, "-nostdin"], capture_stdout=True, capture_stderr=True)
except ffmpeg.Error as e:

View file

@ -9,12 +9,12 @@
"version": "1.0.0",
"license": "GPL-3",
"dependencies": {
"@mantine/core": "^7.12.1",
"@mantine/dropzone": "^7.12.1",
"@mantine/form": "^7.12.1",
"@mantine/hooks": "^7.12.1",
"@mantine/modals": "^7.12.1",
"@mantine/notifications": "^7.12.1",
"@mantine/core": "^7.12.2",
"@mantine/dropzone": "^7.12.2",
"@mantine/form": "^7.12.2",
"@mantine/hooks": "^7.12.2",
"@mantine/modals": "^7.12.2",
"@mantine/notifications": "^7.12.2",
"@tanstack/react-query": "^5.40.1",
"@tanstack/react-table": "^8.19.2",
"axios": "^1.6.8",
@ -2616,9 +2616,9 @@
}
},
"node_modules/@mantine/core": {
"version": "7.12.1",
"resolved": "https://registry.npmjs.org/@mantine/core/-/core-7.12.1.tgz",
"integrity": "sha512-PXKIDaT1fpNB77dPQIcdFGM2NRnfmsJSVx3uuBccngBQWMIWI0wPyiO1Y26DK4LQrbrypeb+TS+Zxpgx6RoiCA==",
"version": "7.12.2",
"resolved": "https://registry.npmjs.org/@mantine/core/-/core-7.12.2.tgz",
"integrity": "sha512-FrMHOKq4s3CiPIxqZ9xnVX7H4PEGNmbtHMvWO/0YlfPgoV0Er/N/DNJOFW1ys4WSnidPTayYeB41riyxxGOpRQ==",
"dependencies": {
"@floating-ui/react": "^0.26.9",
"clsx": "^2.1.1",
@ -2628,7 +2628,7 @@
"type-fest": "^4.12.0"
},
"peerDependencies": {
"@mantine/hooks": "7.12.1",
"@mantine/hooks": "7.12.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
@ -2645,23 +2645,23 @@
}
},
"node_modules/@mantine/dropzone": {
"version": "7.12.1",
"resolved": "https://registry.npmjs.org/@mantine/dropzone/-/dropzone-7.12.1.tgz",
"integrity": "sha512-IuAdCnl6PDtkDnGp4vQlHgxr9z3R7s0685khVKpxy/3f+XfdoswUBBY3X7XyirpDXMIjMD4SLpkIzwuUXgZsag==",
"version": "7.12.2",
"resolved": "https://registry.npmjs.org/@mantine/dropzone/-/dropzone-7.12.2.tgz",
"integrity": "sha512-VXKpgFBfRfci6eQEyrmNSsTR7LdtErDhWloVw7W6YRsCqJxJHg9e3luG+yIk+tokzSyLoLOVZRX/mESDEso3PQ==",
"dependencies": {
"react-dropzone-esm": "15.0.1"
},
"peerDependencies": {
"@mantine/core": "7.12.1",
"@mantine/hooks": "7.12.1",
"@mantine/core": "7.12.2",
"@mantine/hooks": "7.12.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
},
"node_modules/@mantine/form": {
"version": "7.12.1",
"resolved": "https://registry.npmjs.org/@mantine/form/-/form-7.12.1.tgz",
"integrity": "sha512-Q+lpgG9N8srlsI0IPnD1V1c2ZaI0xmR3bBEVm+LttSos6Q5zkG49Yy011mc0cXzEKUk2h48j8PLoPHfSEzO03g==",
"version": "7.12.2",
"resolved": "https://registry.npmjs.org/@mantine/form/-/form-7.12.2.tgz",
"integrity": "sha512-MknzDN5F7u/V24wVrL5VIXNvE7/6NMt40K6w3p7wbKFZiLhdh/tDWdMcRN7PkkWF1j2+eoVCBAOCL74U3BzNag==",
"dependencies": {
"fast-deep-equal": "^3.1.3",
"klona": "^2.0.6"
@ -2671,43 +2671,43 @@
}
},
"node_modules/@mantine/hooks": {
"version": "7.12.1",
"resolved": "https://registry.npmjs.org/@mantine/hooks/-/hooks-7.12.1.tgz",
"integrity": "sha512-YPA3qiMHJkWID5+YzakBaLvjHtX3Fg3PdPY49iIb/CaWM9+lrJ+77TOVS7bsY7ZTBHXUfzft1/6Woqt3xSuweA==",
"version": "7.12.2",
"resolved": "https://registry.npmjs.org/@mantine/hooks/-/hooks-7.12.2.tgz",
"integrity": "sha512-dVMw8jpM0hAzc8e7/GNvzkk9N0RN/m+PKycETB3H6lJGuXJJSRR4wzzgQKpEhHwPccktDpvb4rkukKDq2jA8Fg==",
"peerDependencies": {
"react": "^18.2.0"
}
},
"node_modules/@mantine/modals": {
"version": "7.12.1",
"resolved": "https://registry.npmjs.org/@mantine/modals/-/modals-7.12.1.tgz",
"integrity": "sha512-olS07yDcCFLGylLGaQgBiTnKcRrUZVLKqBFBw5glcmc/wZmJf4SDMgx5mxSwBnsbJOwJ2d3aIYwO/qNTNnluSg==",
"version": "7.12.2",
"resolved": "https://registry.npmjs.org/@mantine/modals/-/modals-7.12.2.tgz",
"integrity": "sha512-ffnu9MtUHceoaLlhrwq+J+eojidEPkq3m2Rrt5HfcZv3vAP8RtqPnTfgk99WOB3vyCtdu8r4I9P3ckuYtPRtAg==",
"peerDependencies": {
"@mantine/core": "7.12.1",
"@mantine/hooks": "7.12.1",
"@mantine/core": "7.12.2",
"@mantine/hooks": "7.12.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
},
"node_modules/@mantine/notifications": {
"version": "7.12.1",
"resolved": "https://registry.npmjs.org/@mantine/notifications/-/notifications-7.12.1.tgz",
"integrity": "sha512-YIV2ItCRJzbOjEyXtz5Rjf3qn6kwmcz6CqAGurpd+kecxx6wwNoKuKs6YNlz7tcprFegcH/hCUkW2tVbXHKVBA==",
"version": "7.12.2",
"resolved": "https://registry.npmjs.org/@mantine/notifications/-/notifications-7.12.2.tgz",
"integrity": "sha512-gTvLHkoAZ42v5bZxibP9A50djp5ndEwumVhHSa7mxQ8oSS23tt3It/6hOqH7M+9kHY0a8s+viMiflUzTByA9qg==",
"dependencies": {
"@mantine/store": "7.12.1",
"@mantine/store": "7.12.2",
"react-transition-group": "4.4.5"
},
"peerDependencies": {
"@mantine/core": "7.12.1",
"@mantine/hooks": "7.12.1",
"@mantine/core": "7.12.2",
"@mantine/hooks": "7.12.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
},
"node_modules/@mantine/store": {
"version": "7.12.1",
"resolved": "https://registry.npmjs.org/@mantine/store/-/store-7.12.1.tgz",
"integrity": "sha512-zIzYEheEyXchPTNKsm88BJ0CTEZV6ZNwMhMDWHKQE3CzjKLJdKHJdIBcZImRU3Pn4GROZdZdIkQF9HLJ6BjvYw==",
"version": "7.12.2",
"resolved": "https://registry.npmjs.org/@mantine/store/-/store-7.12.2.tgz",
"integrity": "sha512-NqL31sO/KcAETEWP/CiXrQOQNoE4168vZsxyXacQHGBueVMJa64WIDQtKLHrCnFRMws3vsXF02/OO4bH4XGcMQ==",
"peerDependencies": {
"react": "^18.2.0"
}

View file

@ -13,12 +13,12 @@
},
"private": true,
"dependencies": {
"@mantine/core": "^7.12.1",
"@mantine/dropzone": "^7.12.1",
"@mantine/form": "^7.12.1",
"@mantine/hooks": "^7.12.1",
"@mantine/modals": "^7.12.1",
"@mantine/notifications": "^7.12.1",
"@mantine/core": "^7.12.2",
"@mantine/dropzone": "^7.12.2",
"@mantine/form": "^7.12.2",
"@mantine/hooks": "^7.12.2",
"@mantine/modals": "^7.12.2",
"@mantine/notifications": "^7.12.2",
"@tanstack/react-query": "^5.40.1",
"@tanstack/react-table": "^8.19.2",
"axios": "^1.6.8",

View file

@ -367,6 +367,8 @@ class VideoSpeechTransformer(TransformerMixin):
"1",
"-acodec",
"pcm_s16le",
"-af",
"aresample=async=1",
"-ar",
str(self.frame_rate),
"-",