send video from local device to a slave computer with ffmpeg

setup service listener on viewer machine :

while : ; do ffplay -i tcp://192.168.xx.xx:1234?listen ; done

send video to it :

ffmpeg -re -i /dev/video1 -vcodec mpeg2video -f alsa -i hw:2,0 -ac 2 -s 1920×1080 -r 25 -strict -2 -f mpegts tcp://192.168.xx.xx:1234


192.168.xx.xx is the IP of the viewer where the ffplay is running.

1234 is the port used.

nJoy 😉


Leave a Reply

Your email address will not be published. Required fields are marked *