Changed transcode ffmpeg flags

This commit is contained in:
Trevor Mears
2026-01-06 20:16:20 -08:00
parent f525a6ee67
commit 5bb0629de2
+1 -2
View File
@@ -46,13 +46,12 @@ router.get('/', (req, res) => {
'-c:v', 'copy', '-c:v', 'copy',
// Audio: Transcode to browser-compatible AAC // Audio: Transcode to browser-compatible AAC
'-c:a', 'aac', '-c:a', 'aac',
'-ac', '2', // Downmix to stereo (fixes 5.1 surround issues)
'-ar', '48000', '-ar', '48000',
'-b:a', '192k', '-b:a', '192k',
// Handle async audio/video using async filter // Handle async audio/video using async filter
'-af', 'aresample=async=1:min_hard_comp=0.100000:first_pts=0', '-af', 'aresample=async=1:min_hard_comp=0.100000:first_pts=0',
// Timestamp handling // Timestamp handling
'-vsync', 'passthrough', '-fps_mode', 'passthrough',
'-async', '1', '-async', '1',
'-max_muxing_queue_size', '2048', '-max_muxing_queue_size', '2048',
// Fragmented MP4 for streaming (browser-compatible) // Fragmented MP4 for streaming (browser-compatible)