As we have reactjs at client end and nodejs at server end. We are capturing webcam video/audio using mediarecorder api and sending it to the server using socket. Now at the server side getting this buffer data. We are trying to pass this buffer to ffmpeg and to stream to a rtmp url. We are stuck on converting/reading that buffer from ffmpeg.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Hi there,
Would you mind sharing a bit more information about your exact setup that you have?
For example, how are you currently sending the buffer from the client to the server? Are you using WebSockets or something else?
Are there any specific errors or issues you’re encountering when trying to stream the data using
ffmpeg
?Can you share more details about your
ffmpeg
command or configuration?If you have a code snippet that I could take a look and test out on my end that would also be helpful.
- Bobby