0

I am searching around for 2 days but didn't find a solution.

Is it possible to stream a video to a local network port with ffmpeg?

My goal would be, to capture a remote stream, convert it and send it to my local port in real time. The stuff should be something like a plain .mp4 stream that someone could catch and playback in a client.

The idea is to reduce network traffic and cpu power to watch the stream.

EDIT: Because the community bot wants a clear question. Is it possible to stream a video with ffmpeg to a local network port. It does not have to contain any data about the type or codec, it should be just a simple network stream of bytes.

6
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.
    – Community Bot
    Nov 8, 2022 at 12:49
  • assuming you just want to send the stream to another machine as udp, try "ffmpeg -i input -f format udp://<IP_address>:<port_number>
    – Paul
    Nov 8, 2022 at 16:33
  • @Paul i will catch an online live stream, convert it. But this work has to be done on a server, so that multiple client can get the converted stream. But if ffmpeg only sends traffic on a peer to peer basis, i am gooing and try something different
    – Yuki
    Nov 9, 2022 at 18:21
  • @yuki, to send it to multiple clients on the same network, simply use a multicast IP address (239.x.x.x) in the command above, and instruct all the clients to listen to that address.
    – Paul
    Nov 10, 2022 at 15:56
  • @Paul how am i joining a multicast group is a never solved mystery in my case. But i am using different networks in my home which would break this idea.
    – Yuki
    Nov 10, 2022 at 16:25

0

You must log in to answer this question.

Browse other questions tagged .