[30988f42] feat(transcription-tool): Add M4A audio support by re-encoding to MP3
This commit is contained in:
@@ -21,7 +21,8 @@ class FFmpegService:
|
|||||||
"ffmpeg", "-i", input_path,
|
"ffmpeg", "-i", input_path,
|
||||||
"-f", "segment",
|
"-f", "segment",
|
||||||
"-segment_time", str(settings.CHUNK_DURATION_SEC),
|
"-segment_time", str(settings.CHUNK_DURATION_SEC),
|
||||||
"-c", "copy",
|
"-c:a", "libmp3lame", # Re-encode to MP3 for compatibility
|
||||||
|
"-b:a", "256k", # Set a reasonable bitrate for quality
|
||||||
output_pattern
|
output_pattern
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user