File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -439,9 +439,9 @@ impl VideoCommandBuilder {
439439 tokio:: fs:: remove_file ( Path :: new ( "ffprobe" ) ) . await ;
440440
441441 #[ cfg( target_arch = "x86_64" ) ]
442- const WINDOWS_URL : & str = "https://johnvansickle .com/ffmpeg/ releases/ffmpeg-release-amd64-static .tar.xz" ;
442+ const WINDOWS_URL : & str = "https://github .com/BtbN/FFmpeg-Builds/ releases/download/latest/ ffmpeg-n8.0-latest-linux64-gpl-8.0 .tar.xz" ;
443443 #[ cfg( target_arch = "aarch64" ) ]
444- const WINDOWS_URL : & str = "https://johnvansickle .com/ffmpeg/ releases/ffmpeg-release-arm64-static .tar.xz" ;
444+ const WINDOWS_URL : & str = "https://github .com/BtbN/FFmpeg-Builds/ releases/download/latest/ ffmpeg-n8.0-latest-linuxarm64-gpl-8.0 .tar.xz" ;
445445
446446 let path = get_server_temp_file_path ( ) . await ?;
447447 let mut file = tokio:: fs:: File :: create ( & path) . await ?;
@@ -785,6 +785,9 @@ impl VideoCommandBuilder {
785785 self . add_out_option ( "tune=0:film-grain=8" ) ;
786786
787787 if self . format . is_none ( ) {
788+
789+ self . add_out_option ( "-movflags" ) ;
790+ self . add_out_option ( "faststart" ) ;
788791 self . format = Some ( RsVideoFormat :: Mp4 ) ;
789792 }
790793 } ,
@@ -997,7 +1000,7 @@ impl VideoCommandBuilder {
9971000
9981001
9991002 if let Some ( format) = & self . format {
1000- self . cmd . arg ( "-format " )
1003+ self . cmd . arg ( "-f " )
10011004 . arg ( format. to_string ( ) ) ;
10021005 }
10031006
You can’t perform that action at this time.
0 commit comments