I have two data streams, each representing a rabbitmq subscriber. Inside audio and video streams, data is in the form of bytes. Something like:
vp = VideoProcess()
ap = AudioProcess()
async def receive_video_data(message: IncomingMessage):
async with message.process():
await vp.process(frame=message.body)
async def receive_audio_data(message: IncomingMessage):
async with message.process():
await ap.process(packet=message.body)
I wanted to take this data from each stream and put it in the ffmpeg stream, which would open the port on the service. So that I can broadcast this data to other subsystems in the form of an ffmpeg stream (for example, to broadcast audio and video to my html page). Can you tell me what are the options for this task?
process = sp.Popen(
shlex.split(
f"ffmpeg -i ...."
))