bartbutenaers / node-red-rtsp-to-mjpeg

A Node-RED node to convert an RTSP stream to an MJPEG stream
Apache License 2.0
3 stars 2 forks source link

Extract Audio from Stream #5

Open Harvey-Mushman opened 3 weeks ago

Harvey-Mushman commented 3 weeks ago

This node works for me without any problems with one exception, can't find a way to seperate the audio portion of the stream. In ffmpeg I can see both parts of the stream are present. But trying to put the audio onto the Node-Red desktop has me puzzled. And because I'm working on building an intercome styled solution, I wonder now if bi-directional audio along wit hteh video is going to be outside the possibilites of Node-Red nodes. Any help would be greatly appreicated -- including buying your wife a cup of coffee!

bartbutenaers commented 2 weeks ago

Hi @Harvey-Mushman,

Sorry for the late reply! Life is getting in between me and Node-RED...

Well this node is dedicated purely designed to extract jpeg frames out of an rtsp stream. Due to lack of time I haven't developed all the code to call ffmpeg directly, but instead this node uses the rtsp-ffmpeg library. As you can see that library simply extracts jpeg frames from an rtsp stream.

So this node is not about extracting audio or video streams. And to be honest I find ffmpeg very unfriendly to use myself. I would advice you to start a discussion on Discourse and mention kevinGodell, because he knows quite a lot about ffmpeg. He might have ideas about how you can achieve this using his https://flows.nodered.org/node/@kevingodell/node-red-ffmpeg node perhaps. And I assume there will be other users around there that might give you some tips...

Good luck with your project!! Bart