Browse Source

Update README.MD

MoeClub 5 years ago
parent
commit
ffa3db41ae
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ffmpeg/README.MD

+ 2 - 2
ffmpeg/README.MD

@@ -16,9 +16,9 @@ ffprobe -v error -show_entries format=bit_rate -of default=noprint_wrappers=1:no
 # 视频文件切片
 ```
 # 平均码率转换
-ffmpeg -i <File> -vcodec copy -acodec aac -bsf:v h264_mp4toannexb -b:v 2000k -bufsize 2000k -maxrate 2250k output.mp4
+ffmpeg -threads 2 -i <File> -vcodec copy -acodec aac -bsf:v h264_mp4toannexb -b:v 2000k -bufsize 2000k -maxrate 2250k output.mp4
 # 切片
-ffmpeg -i output.mp4 -vcodec copy -acodec copy -map 0 -f segment -segment_list output.m3u8 -segment_time 20 output_%03d.ts
+ffmpeg -threads 2 -i output.mp4 -vcodec copy -acodec copy -map 0 -f segment -segment_list output.m3u8 -segment_time 20 output_%03d.ts
 ```
 
 # 视频文件直接切片