pastebin - collaborative debugging tool
eckelmann.kpaste.net RSS


Fix video in labgrid for more than one camera
Posted by Anonymous on Mon 8th Apr 2019 13:39
raw | new post

  1. diff --git a/labgrid/driver/usbvideodriver.py b/labgrid/driver/usbvideodriver.py
  2. index 8046711..d1ef48a 100644
  3. --- a/labgrid/driver/usbvideodriver.py
  4. +++ b/labgrid/driver/usbvideodriver.py
  5. @@ -39,7 +39,7 @@ class USBVideoDriver(Driver):
  6.          caps = self.select_caps(caps_hint)
  7.  
  8.          tx_cmd = self.video.command_prefix + ["gst-launch-1.0"]
  9. -        tx_cmd += "v4l2src ! {} ! h264parse ! fdsink".format(caps).split()
  10. +        tx_cmd += "v4l2src device={} ! {} ! h264parse ! fdsink".format(self.video.path, caps).split()                                                            
  11.          rx_cmd = ["gst-launch-1.0"]
  12.          rx_cmd += "fdsrc ! h264parse ! avdec_h264 ! glimagesink sync=false".split()

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}





All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at