Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BigBlueButton LiveStreaming
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sergio Vergata
BigBlueButton LiveStreaming
Commits
943260bf
Commit
943260bf
authored
5 years ago
by
Michael Koscher
Browse files
Options
Downloads
Patches
Plain Diff
set KeyInt and CBR
parent
8e3b2e79
Branches
changeCodecToH264
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stream.py
+1
-1
1 addition, 1 deletion
stream.py
with
1 addition
and
1 deletion
stream.py
+
1
−
1
View file @
943260bf
...
@@ -82,7 +82,7 @@ def watch():
...
@@ -82,7 +82,7 @@ def watch():
def
stream
():
def
stream
():
audio_options
=
'
-f alsa -i pulse -ac 2 -c:a aac -b:a 160k -ar 44100
'
audio_options
=
'
-f alsa -i pulse -ac 2 -c:a aac -b:a 160k -ar 44100
'
#video_options = ' -c:v libvpx-vp9 -b:v 2000k -crf 33 -quality realtime -speed 5'
#video_options = ' -c:v libvpx-vp9 -b:v 2000k -crf 33 -quality realtime -speed 5'
video_options
=
'
-c:v libx264 -vf format=yuv420p -b:v 4000k -g
5
0 -preset ultrafast -tune zerolatency
'
video_options
=
'
-c:v libx264
-x264-params
"
nal-hrd=cbr
"
-vf format=yuv420p -b:v 4000k -g
6
0 -preset ultrafast -tune zerolatency
'
ffmpeg_stream
=
'
ffmpeg -thread_queue_size 512 -f x11grab -draw_mouse 0 -s 1920x1080 -i :%d %s -threads 0 %s -f flv
"
%s
"'
%
(
122
,
audio_options
,
video_options
,
args
.
target
)
ffmpeg_stream
=
'
ffmpeg -thread_queue_size 512 -f x11grab -draw_mouse 0 -s 1920x1080 -i :%d %s -threads 0 %s -f flv
"
%s
"'
%
(
122
,
audio_options
,
video_options
,
args
.
target
)
ffmpeg_args
=
shlex
.
split
(
ffmpeg_stream
)
ffmpeg_args
=
shlex
.
split
(
ffmpeg_stream
)
p
=
subprocess
.
Popen
(
ffmpeg_args
)
p
=
subprocess
.
Popen
(
ffmpeg_args
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment