Added FFmpeg system

This commit is contained in:
Trevor Mears
2025-12-31 09:52:26 -08:00
parent bec1b74208
commit a90ac32a3b
3 changed files with 33 additions and 12 deletions
+3
View File
@@ -30,6 +30,9 @@ router.get('/', (req, res) => {
'-i', url,
// Copy ALL streams without re-encoding
'-c', 'copy',
// Convert AAC from ADTS format (TS) to ASC format (MP4)
// Required when remuxing MPEG-TS with AAC audio to MP4
'-bsf:a', 'aac_adtstoasc',
// Fragmented MP4 for streaming (browser-compatible)
'-f', 'mp4',
'-movflags', 'frag_keyframe+empty_moov+default_base_moof',