mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-11 17:30:00 +02:00
Merge pull request #77 from R0m1k3/antigravity
feat: implement core server with API routing, static file serving, Xt…
This commit is contained in:
1 file changed
+3
-1
+3
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user