Merge pull request #77 from R0m1k3/antigravity

feat: implement core server with API routing, static file serving, Xt…
This commit is contained in:
LogiFlow authored and GitHub committed 2025-12-07 15:34:55 +01:00
commit e3af1d5a4f
1 file changed
+3 -1
+3 -1
View File
@@ -463,6 +463,7 @@ Handler _createStreamHandler() {
// Output format: MPEG-TS for streaming (compatible with mpegts.js)
'-f', 'mpegts',
];
// Video: Transcode based on quality
// High = Copy (efficient), Low/Medium = Transcode to H.264 (compatible)
@@ -500,6 +501,7 @@ Handler _createStreamHandler() {
// Audio: Transcode to AAC is SAFEST for browsers
// (Many IPTV streams typically use MP2/AC3 which browsers hate)
ffmpegArgs.addAll([
'-c:a', 'aac',
'-b:a', '128k',
'-ar', '44100',
@@ -510,7 +512,7 @@ Handler _createStreamHandler() {
// Output to stdout pipe
'pipe:1'
];
]);
// Start the process
final process = await Process.start('ffmpeg', ffmpegArgs);