mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-23 23:18:06 +02:00
feat: implement core server with API routing, static file serving, Xtream proxy, FFmpeg streaming, and security middleware.
This commit is contained in:
1 parent
b244f1f807
commit
47eaf50e0c
1 file changed
+3
-1
+3
-1
@@ -463,6 +463,7 @@ Handler _createStreamHandler() {
|
|||||||
|
|
||||||
// Output format: MPEG-TS for streaming (compatible with mpegts.js)
|
// Output format: MPEG-TS for streaming (compatible with mpegts.js)
|
||||||
'-f', 'mpegts',
|
'-f', 'mpegts',
|
||||||
|
];
|
||||||
|
|
||||||
// Video: Transcode based on quality
|
// Video: Transcode based on quality
|
||||||
// High = Copy (efficient), Low/Medium = Transcode to H.264 (compatible)
|
// High = Copy (efficient), Low/Medium = Transcode to H.264 (compatible)
|
||||||
@@ -500,6 +501,7 @@ Handler _createStreamHandler() {
|
|||||||
|
|
||||||
// Audio: Transcode to AAC is SAFEST for browsers
|
// Audio: Transcode to AAC is SAFEST for browsers
|
||||||
// (Many IPTV streams typically use MP2/AC3 which browsers hate)
|
// (Many IPTV streams typically use MP2/AC3 which browsers hate)
|
||||||
|
ffmpegArgs.addAll([
|
||||||
'-c:a', 'aac',
|
'-c:a', 'aac',
|
||||||
'-b:a', '128k',
|
'-b:a', '128k',
|
||||||
'-ar', '44100',
|
'-ar', '44100',
|
||||||
@@ -510,7 +512,7 @@ Handler _createStreamHandler() {
|
|||||||
|
|
||||||
// Output to stdout pipe
|
// Output to stdout pipe
|
||||||
'pipe:1'
|
'pipe:1'
|
||||||
];
|
]);
|
||||||
|
|
||||||
// Start the process
|
// Start the process
|
||||||
final process = await Process.start('ffmpeg', ffmpegArgs);
|
final process = await Process.start('ffmpeg', ffmpegArgs);
|
||||||
|
|||||||
Reference in new issue
Block a user