User Tools

Site Tools


hardwarerelated:raspberry_pi_4_tc358743

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hardwarerelated:raspberry_pi_4_tc358743 [2020/06/14 13:18]
chris
hardwarerelated:raspberry_pi_4_tc358743 [2020/07/09 14:17] (current)
chris [Kernel based streaming, aimed at low latency]
Line 10: Line 10:
     * Via firmware     * Via firmware
     * Via kernel driver mode, more modern/bugs will rather be fixed there     * Via kernel driver mode, more modern/bugs will rather be fixed there
-  * alternative: "hdmi usb video capture", [[https://twitter.com/Ascii211/status/1268631069051453448|link1]]+  * alternative: [[hardwarerelated/camlink_hdmi_converter|HDMI usb video capture]], does also sound
  
 {{ https://fluxcoil.net/files/tmp/raspi-grabber/raspi_switch2_zelda_menu.jpg?500x|Switch streamed to Fedora Desktop}} {{ https://fluxcoil.net/files/tmp/raspi-grabber/raspi_switch2_zelda_menu.jpg?500x|Switch streamed to Fedora Desktop}}
Line 76: Line 76:
 v4l2-ctl --query-dv-timings v4l2-ctl --query-dv-timings
  
-# Optionally, to sist all supported modes:+# Optionally, to list all supported modes:
 v4l2-ctl --list-dv-timings v4l2-ctl --list-dv-timings
  
Line 91: Line 91:
  
 ===== Kernel based streaming, aimed at low latency ===== ===== Kernel based streaming, aimed at low latency =====
-For this, we will use ustreamer. This is the best solution I found for low latency. I did not get ustreamer to work with firmware mode, just with kernel mode.+For this, we will use ustreamer. This is the best solution I found for low latency. I did not get ustreamer to work with firmware mode, just with kernel mode. When streaming this over gbit ethernet, I get 100-130ms latency.
 <code> <code>
 # preparations # preparations
Line 211: Line 211:
 ffmpeg -f v4l2 -input_format yuyv422 -s 1280x720 -r 60 -i /dev/video0 \ ffmpeg -f v4l2 -input_format yuyv422 -s 1280x720 -r 60 -i /dev/video0 \
   -tune zerolatency -vcodec mpeg2video -f mpegts udp://192.168.0.2:4242   -tune zerolatency -vcodec mpeg2video -f mpegts udp://192.168.0.2:4242
-# Client process, exchange with the IP of the Raspi who sends the stream:+# Client process, exchange with the IP of the Raspi sending the stream:
 ffplay -an -sn -i -fflags nobuffer udp://192.168.0.3:4242?listen ffplay -an -sn -i -fflags nobuffer udp://192.168.0.3:4242?listen
 </code> </code>
Line 400: Line 400:
  
   * TODO   * TODO
-    * sound. "arecord -l" can not record. 
-      * confirm with vendor via website if the board is capable of doing this. Its not explicitly stated in the few lines of spec on the site, but one could assume it is part of "HDMI grabbing". 
-      * I need extra wiring.. board<->pi4. 
     * kernel module debug parameters: https://www.raspberrypi.org/forums/viewtopic.php?f=38&t=120702&start=450#p1389665     * kernel module debug parameters: https://www.raspberrypi.org/forums/viewtopic.php?f=38&t=120702&start=450#p1389665
     * uv4l approach. It's a separate application, no free source code, but might be usable.     * uv4l approach. It's a separate application, no free source code, but might be usable.
hardwarerelated/raspberry_pi_4_tc358743.1592133491.txt ยท Last modified: 2020/06/14 13:18 by chris