Update params

This commit is contained in:
Logan Cusano
2025-08-02 02:03:13 -04:00
parent 378fecbfc0
commit 74e4141236

View File

@@ -156,14 +156,17 @@ async def stream_video(video_id: str, current_user: dict = Depends(is_user)):
ffmpeg_command = [
'ffmpeg',
'-i', full_path,
'-map', '0:v:0',
'-map', '0:a?',
'-movflags', 'frag_keyframe+empty_moov+omit_tfhd_offset+frag_discont+default_base_moof',
'-f', 'mp4',
'-codec:v', 'libx264',
'-preset', 'ultrafast',
'-crf', '28',
'-codec:a', 'aac',
'-filter_complex', 'amerge',
'-ac', '2',
'-b:a', '128k',
'-map', '0:a',
'-loglevel', 'warning',
'-hide_banner',
'pipe:1'