feat: Implement hardware-accelerated HLS transcoding with granular controls, smart stereo downmixing, and robust support for MKV and 10-bit HEVC playback.

This commit is contained in:
Trevor Mears
2026-01-17 03:07:16 -08:00
parent efcf14a545
commit 2c34359b2c
11 changed files with 472 additions and 97 deletions
+4 -2
View File
@@ -29,7 +29,7 @@ transcodeSession.startCleanupInterval();
* Body: { url: string, seekOffset?: number }
*/
router.post('/session', async (req, res) => {
const { url, seekOffset } = req.body;
const { url, seekOffset, videoMode, videoCodec } = req.body;
if (!url) {
return res.status(400).json({ error: 'URL is required' });
@@ -46,7 +46,9 @@ router.post('/session', async (req, res) => {
seekOffset: seekOffset || 0,
hwEncoder: settings.hwEncoder || 'software',
maxResolution: settings.maxResolution || '1080p',
quality: settings.quality || 'medium'
quality: settings.quality || 'medium',
videoMode: videoMode, // 'copy' or 'encode'
videoCodec: videoCodec // 'h264', 'hevc', etc.
});
await session.start();