8000 no hd · mastashake08/screen-recorder-api@5572e19 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5572e19

Browse files
author
Jyrone Parker
committed
no hd
1 parent 2a07c40 commit 5572e19

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

routes/api.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@
7777
$r_480p = (new Representation)->setKiloBitrate(750)->setResize(854, 480);
7878
$r_720p = (new Representation)->setKiloBitrate(2048)->setResize(1280, 720);
7979
$r_1080p = (new Representation)->setKiloBitrate(4096)->setResize(1920, 1080);
80-
$r_2k = (new Representation)->setKiloBitrate(6144)->setResize(2560, 1440);
81-
$r_4k = (new Representation)->setKiloBitrate(17408)->setResize(3840, 2160);
8280
$ffmpeg = Streaming\FFMpeg::create([
8381
'ffmpeg.binaries' => '/usr/bin/ffmpeg',
8482
'ffprobe.binaries' => '/usr/bin/ffprobe'
@@ -87,7 +85,7 @@
8785
$video->dash()
8886
->setAdaption('id=0,streams=v id=1,streams=a') // Set the adaption.
8987
->x264() // Format of the video. Alternatives: x264() and vp9()
90-
->addRepresentations([$r_144p, $r_240p, $r_360p, $r_480p, $r_720p, $r_1080p, $r_2k, $r_4k])
88+
->addRepresentations([$r_144p, $r_240p, $r_360p, $r_480p, $r_720p, $r_1080p])
9189
->save(null, $to_s3); // It can be passed a path to the method or it can be null
9290
return response()->json($video->metadata());
9391
});

0 commit comments

Comments
 (0)
0