mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-11 17:30:00 +02:00
fix(live): transcode audio to AAC for browser compatibility
- Keep video as direct copy (low CPU) - Transcode audio to AAC (supports AC3/EAC3/DTS sources) - Downmix to stereo for 5.1 surround streams
This commit is contained in:
1 parent
9da60f2141
commit
d955ab9523
1 file changed
+4
-1
@@ -142,7 +142,10 @@ Handler createLiveStreamHandler(
|
||||
|
||||
'-i', targetUrl,
|
||||
|
||||
'-c', 'copy', // Direct stream copy (Very low CPU)
|
||||
'-c:v', 'copy', // Video: Direct copy (Very low CPU)
|
||||
'-c:a', 'aac', // Audio: Transcode to AAC (browser compatible)
|
||||
'-b:a', '192k', // Good audio quality
|
||||
'-ac', '2', // Stereo downmix (handles 5.1 surround)
|
||||
'-f', 'mpegts',
|
||||
'pipe:1', // Output to stdout
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user