I am watching VHS tapes with ffmpeg and piping it into MPV with ffmpeg -f v4l2 -i [my video card] -f alsa -i [my sound card] -c copy -f nut pipe:1 | mpv -. The reason I'm not just playing the video and audio stream off of my capture device is because I want to be able to adjust audio delay in real time with MPV hotkeys. This works well so far. Now, I want to grab the stream from another computer on my LAN. How do I do that? I've been thinking of sshfs, but I can't mount the capture card. Should I stream into a file on the server which I then mount on the client side with sshfs? If I did that, I'd have to delete the file that my command created every time I watched something, no?

all 5 comments

sorted by: hot top controversial new old
[–] 3 points 44 minutes ago

ffmpeg can send video over RTMP or SRT protocols. ffplay can receive and play.

  • source
  • [–] 2 points 47 minutes ago*

    If you want another "unga-bunga" approach, you can use netcat:
    On the player machine:

    nc -l 1234 | mpv -
    

    On the sender machine:

    ffmpeg | nc 192.168.1.4 1234
    

    Of course, you can use any unused port instead of 1234.

  • source
  • [–] 10 points 2 hours ago (1 child)

    Realistically, you'll probably want to encode the stream first to keep bandwidth sane, but I suspect you're looking for something like: ffmpeg -f v4l2 -i [my video card] -f alsa -i [my sound card] -c copy -f nut pipe:1 | ssh username@otherhost 'mpv -'.

  • source
  • hideshow 1 child comment
  • [–] 3 points 2 hours ago

    Maybe you should be looking into a proper RTSP video stream. I know VLC can act as a server.

  • source