Update params
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user