GUI-STUDIO commited on
Commit ·
125ba72
1
Parent(s): 31b85ff
Update ffmpeg.ts
Browse files- src/lib/ffmpeg.ts +3 -3
src/lib/ffmpeg.ts
CHANGED
|
@@ -730,7 +730,7 @@ async function F_build_ffmpeg_command_v1(arg0: {
|
|
| 730 |
|
| 731 |
command.push("-tune", "zerolatency");
|
| 732 |
command.push("-crf", "23");
|
| 733 |
-
command.push("-preset", live === "stream" ? "ultrafast" : "
|
| 734 |
command.push("-pix_fmt", "yuv420p");
|
| 735 |
command.push("-c:a", "aac");
|
| 736 |
command.push("-b:a", "256k");
|
|
@@ -947,7 +947,7 @@ async function F_build_ffmpeg_command_v2(arg0: {
|
|
| 947 |
|
| 948 |
command.addOption("-tune", "zerolatency"); // tells the encoder to minimize the delay between capturing a frame and outputting it
|
| 949 |
command.addOption("-crf", "23");
|
| 950 |
-
command.addOption("-preset", live === "stream" ? "ultrafast" : "
|
| 951 |
command.addOption("-pix_fmt", "yuv420p");
|
| 952 |
command.addOption("-c:a", "aac");
|
| 953 |
command.addOption("-b:a", "256k");
|
|
@@ -1321,7 +1321,7 @@ async function F_build_ffmpeg_command_v3(arg0: {
|
|
| 1321 |
/* ENCODING & TUNING */
|
| 1322 |
command.push("-tune", "zerolatency");
|
| 1323 |
command.push("-crf", "23");
|
| 1324 |
-
command.push("-preset", use_ultrafast ? "ultrafast" : "
|
| 1325 |
command.push("-pix_fmt", "yuv420p");
|
| 1326 |
command.push("-max_interleave_delta", "0");
|
| 1327 |
|
|
|
|
| 730 |
|
| 731 |
command.push("-tune", "zerolatency");
|
| 732 |
command.push("-crf", "23");
|
| 733 |
+
command.push("-preset", live === "stream" ? "ultrafast" : "ultrafast");
|
| 734 |
command.push("-pix_fmt", "yuv420p");
|
| 735 |
command.push("-c:a", "aac");
|
| 736 |
command.push("-b:a", "256k");
|
|
|
|
| 947 |
|
| 948 |
command.addOption("-tune", "zerolatency"); // tells the encoder to minimize the delay between capturing a frame and outputting it
|
| 949 |
command.addOption("-crf", "23");
|
| 950 |
+
command.addOption("-preset", live === "stream" ? "ultrafast" : "ultrafast");
|
| 951 |
command.addOption("-pix_fmt", "yuv420p");
|
| 952 |
command.addOption("-c:a", "aac");
|
| 953 |
command.addOption("-b:a", "256k");
|
|
|
|
| 1321 |
/* ENCODING & TUNING */
|
| 1322 |
command.push("-tune", "zerolatency");
|
| 1323 |
command.push("-crf", "23");
|
| 1324 |
+
command.push("-preset", use_ultrafast ? "ultrafast" : "ultrafast"); // veryfast faster medium
|
| 1325 |
command.push("-pix_fmt", "yuv420p");
|
| 1326 |
command.push("-max_interleave_delta", "0");
|
| 1327 |
|