Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    Thank you for this solution. Trying to tunnel RTSP over SSH using ffmpeg/ffplay or some other solution involving http servers, etc, is so much more complicated than encoding to matroska and using stdout/stdin for the connection! Commented Dec 21, 2021 at 19:43
  • For anyone getting the error message Unable to find a suitable output format for 'pipe:' pipe:: Invalid argument: when outputting to a Unix pipe, ffmpeg requires to have an output format explicitly specified, just as erik does in his answer: ... -f matroska - | ffplay ... Commented Mar 18, 2022 at 13:02
  • 1
    This one worked for me, but with a 10-second delay. Both computers are hard wired with cat5e to the same 1G switch. Commented Nov 12, 2022 at 21:38
  • @JayRugMan The delay comes from buffers being filled before playing. If you find a solution with smaller or zero buffers that have less delay you can comment here. Commented Nov 14, 2022 at 7:19
  • The mpv version doesn't work for me but the mplayer version does. mpv will complain about invalid input and exit while mplayer will wait a while and then play something with a huge delay. Commented Oct 22, 2023 at 23:57