Reduce Matroska video / audio quality before streaming with netcat

Without resolution change:

ffmpeg -i - -b:v 1M -b:a 128k -preset ultrafast -f matroska - | netcat -lp 8123

Downsampling from to 1280×720:

ffmpeg -i - -vf scale=-1:720 -b:v 1M -b:a 128k -preset ultrafast -f matroska - | netcat -lp 8123

Receiving with VLC and netcat:

netcat server.ip 8123 | vlc -

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.