Open zacharynevin opened 7 years ago
Well, all we can tell from the error output is that ffmpeg receives data it's not prepared to handle. My hint would be : dump your rtp packets into a file, pipe this file (in a shell) to ffmpeg and try to get it working on command line. When you found what's missing, go back to implementing it with fluent-ffmpeg :)
Version information
About the issue
I am using mediasoup as a WebRTC server. In mediasoup, you can intercept raw RTP packets on the serverside using the following code:
These packets are
vp8
encoded. I want to pass the packets into FFMPEG and write them to anmp4
file.My first attempt at doing this used the following procedure:
rtpReceiver.on('rtpraw')
event into aReadable
stream.ffmpeg(rptPacketStream)
)output
to a video file (e.g.myfile.mp4
).Here is an example of the code:
When I run this, I get the error
Invalid data when processing input
. Here are the console logs:Thank you for all your help!