1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

仮想環境の画面をキャプチャしてUDPで配信する!

Posted at

仮想環境の画面をキャプチャしてUDPで配信する!

何がしたいのか

Proxmoxの中に立てたXbuntuのデスクトップ画面をffmpegでキャプチャしてUDPを用いて配信をする

シェルコードで実装!

サーバー側のコード

ffmpeg \
    -f x11grab \
    -s 1440x900 \
    -r 15 \
    -thread_queue_size 8192 \
    -i :0.0 \
    -c:v libx264 \
    -preset ultrafast \
    -tune zerolatency \
    -g 15 \
    -f h264 \
    udp://<受診するPC>:1234?pkt_size=512

受診PCのコード
(ffmpegのインストールする必要あるよ)

ffplay -fflags nobuffer udp://<受診するPC>:1234
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?