KPplayer是一个带混淆的推流/拉流工具,原理为打乱每一帧的像素
中文使用教程请参见/windows/使用教程.txt
KPplayer is an obscure streaming player/publisher.
The publisher random shuffle pixels on each frame.
The player reshuffle pixels to recover frames.
streamlink, plz use the latest version
sudo apt-get install libglib2.0-dev libfftw3-dev
sudo apt-get install git ffmpeg x264 mplayer
git clone https://github.com/kzoacn/KPplayer
cd KPplayer
make
#Encode
ffmpeg -i input.flv -f rawvideo - | ./kpenc -s 1280x720 -q 6 --qmin 1 --qmax 4 |x264 --input-res 1280x720 --fps 23.98 --profile high --level 5.1 --tune stillimage --crf 22 --colormatrix bt709 --me dia --merange 0 -o tmp.mkv -
ffmpeg -i input.flv -f mp3 tmp.mp3
ffmpeg -i tmp.mp3 -i tmp.mkv output.flv
#Decode
ffmpeg -i output.flv -f rawvideo - | ./kpdec -s 1280x720 -q 6 --qmin 1 --qmax 4 | mplayer - -demuxer rawvideo -rawvideo w=1280:h=720:fps=23.98
#Push stream
ffmpeg -re -i output.flv -c:v libx264 -f flv "rtmp://0.0.0.0"
#Pull stream
streamlink <url> best -O | tee -i >(cvlc - --no-video) >(ffmpeg -i - -f rawvideo - | ./kpdec -s 1280x720 -q 6 --qmin 1 --qmax 4 | mplayer - -demuxer rawvideo -rawvideo w=1280:h=720:fps=23.98) > /dev/null
# choose your resolution and fps!!!!
# choose your resolution and fps!!!!
# choose your resolution and fps!!!!