Skip to content

Commit

Permalink
Update libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
theyosh committed Feb 28, 2022
1 parent 5a2c6f6 commit 4e280f0
Show file tree
Hide file tree
Showing 5 changed files with 548 additions and 709 deletions.
8 changes: 4 additions & 4 deletions app/Streamer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ class Streamer

const bitrates = [
'FullHD' => ['name' => 'Full HD',
'video_bitrate' => 3000,
'video_bitrate' => 4000,
'width' => 1920,
'height' => 1080,
'framerate'=> 25,
'audio_bitrate' => 160,
'h264' => '-profile:v high -level 4.1 -pixel_format nv12'],

'HDReady' => ['name' => 'HD Ready',
'video_bitrate' => 1500,
'video_bitrate' => 2000,
'width' => 1280,
'height' => 720,
'framerate'=> 25,
'audio_bitrate' => 128,
'h264' => '-profile:v high -level 4.0 -pixel_format nv12'],

'SD' => ['name' => 'SD',
'video_bitrate' => 800,
'video_bitrate' => 1000,
'width' => 854,
'height' => 480,
'framerate'=> 25,
Expand Down Expand Up @@ -274,7 +274,7 @@ public function start()
elseif ('nvidia' == $this->encoder_type)
{
// NVIDIA
$cmd = $this->executable . ' -hide_banner -vsync 1 -hwaccel cuvid -c:v h264_cuvid -hwaccel_output_format cuda -i ' . $this->source_url;
$cmd = $this->executable . ' -hide_banner -hwaccel cuvid -c:v h264_cuvid -hwaccel_output_format cuda -i ' . $this->source_url;
}
elseif ('omx' == $this->encoder_type)
{
Expand Down
Loading

0 comments on commit 4e280f0

Please sign in to comment.