Replies: 1 comment 1 reply
-
Update It turns out this configuration does the trick 🍾 (latency is very high): cmd = exec.Command(ffmpegPath,
"-y",
"-i", "-",
"-c:v", "libx264",
"-c:a", "aac",
"-preset", "ultrafast",
"-bufsize", "1000",
"-f", "flv",
"rtmp://localhost:1935/live/STREAMING_KEY",
) Can Owncast support two streams or is an intermediate step required to display both stream sources? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am really excited by the library and have a question and I hope someone can provide some insight.
What is the appropriate
ffmpeg
invocation to write a chunk from aMediaRecorder
?My use case is as follows:
I have two cameras (laptop/external) displaying video in my browser and a
video
element andMediaRecorder
for each. Every second data is sent via websocket to my server which has ffmpeg running. I am trying to adapt myffmpeg
invocation from this: https://owncast.online/docs/broadcasting/#using-with-ffmpeg.For now, I just want to try one camera at a time. I assumed I should write to stdin using this command to see my stream:
and the handler code maps to this:
It does not work as expected. The first concern was this message:
Then, every subsequent chunk results in this message being piped
stream fail: write |1: broken pipe
.Any guidance on using ffmpeg correctly (this is my first try) would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions