![]() strm file containing: that with KODI results playing the stream on TV, which is so basically showing my virtual monitor. Definitely wasn’t good for a movie (NO youtube low framerate) nor gaming (for that too high latency). The resulting latency is about 0.7s which is acceptable for me to project still images, it’s even OK for browsing the web. Here comes the ffmpeg part: ffmpeg -f x11grab -s 1920x1080 -r 10 -i :0.0+1920,0 -vcodec libx264 -b:v 5600K -pix_fmt yuv420p -preset ultrafast -tune zerolatency -g 1 -f mpegts udp://192.168.1.8:5004?pkt_size=1016?buffer_size=65535įfmpeg captures the content of the virtual monitor with a framerate of 10 (the higher the framerate, the less the choppyness on the “monitor” also the less the delay but the higher the cpu load on the computer), encodes to x264 only using I frames, the resulting bitrate is about 5.5Mbps, and streams it to the IP of the raspberry on udp port 5004. ![]() Now the virtual monitor is there, but nowhere to see it The virtual monitor is placed beside the main display, on the right side. This works on my laptop, which has it’s main display with 1920x1080, called eDP1. Xrandr -addmode VIRTUAL1 1920x1080 xrandr -output VIRTUAL1 -mode 1920x1080 -right-of eDP1 ![]() So my solution which involves xrandr and ffmpeg as Lego bricks to play with…įirst I create a virtual monitor on the computer, then set it to a desired resolution (FullHD): xrandr -setmonitor VIRTUAL1 1920/508x1080/286+1920+0 VIRTUAL1 I intended it for looking at family photos on the TV. Now another purpose for it: display something “projected” from a computer directly. One of its purpose is to be my media player (attached to TV via HDMI), so it runs KODI on Raspbian Buster. I have a Raspberry 3B+ in my living room, which serves a bunch of functions. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |