Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ghostream
Manage
Activity
Members
Labels
Plan
Issues
15
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Nounous
Ghostream
Commits
4f947ad6
Commit
4f947ad6
authored
4 years ago
by
ynerant
Browse files
Options
Downloads
Patches
Plain Diff
Bufferize reading
parent
8427377d
No related branches found
No related tags found
No related merge requests found
Pipeline
#4646
failed with stages
in 2 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stream/webrtc/ingest.go
+2
-2
2 additions, 2 deletions
stream/webrtc/ingest.go
with
2 additions
and
2 deletions
stream/webrtc/ingest.go
+
2
−
2
View file @
4f947ad6
...
...
@@ -31,7 +31,7 @@ func ingest(name string, q *messaging.Quality) {
return
}
// Start ffmp
a
g to convert videoInput to audio UDP
// Start ffmp
e
g to convert videoInput to audio UDP
ffmpeg
,
ffmpegOut
,
err
:=
startFFmpeg
(
videoInput
,
firstPort
)
if
err
!=
nil
{
log
.
Printf
(
"Error while starting ffmpeg: %s"
,
err
)
...
...
@@ -40,7 +40,7 @@ func ingest(name string, q *messaging.Quality) {
// Receive video
go
func
()
{
h264
,
_
:=
h264reader
.
NewReader
(
*
ffmpegOut
)
h264
,
_
:=
h264reader
.
NewReader
(
bufio
.
NewReader
(
*
ffmpegOut
)
)
var
spsAndPpsCache
[]
byte
for
{
...
...
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