Transcoding and Streaming with ffmpeg

By chimo on (updated on )
Another note-to-self to document the commands I'm using to transcode video files from the desktop and stream it to the raspberrypi.

On the desktop:

[chimo@desktop ~]$ ffmpeg -i S05E01.mkv -map 0 -c:v libx264 -crf 18 -vf \
    format=yuv420p -c:a copy -f matroska "tcp://0.0.0.0:1234?listen"

On the raspberrypi:

[chimo@raspberrypi ~]$ /usr/bin/xinit /usr/bin/ffplay tcp://desktop:1234 \
    -vf scale=1920:1080 -- :0 -nolisten tcp vt1