Closed dericed closed 9 months ago
@libbyhopfauf, any advice on how this control selector and/or warning should appear? Some sort of dropdown?
@dericed I think a drop down would be ideal! I also think that, if possible, the warning should appear below the viewer until the issue is resolved vs. a mouseover, just because I think that will be more obvious to users and they can correct the problem. Something like, "Oops! You are already using this device. Please select a different device for capture."
@ElderOrb here's a sample of the output of --list-devices_json
.
$ /usr/local/bin/dvrescue --list_controls_json
[{"name":"/dev/tty.wlan-debug: tty.wlan-debug"},{"name":"/dev/tty.RS422 Deck Control: tty.RS422 Deck Control"},{"name":"/dev/tty.Bluetooth-Incoming-Port: tty.Bluetooth-Incoming-Port"},{"name":"/dev/tty.usbserial-A10KXF88: tty.usbserial-A10KXF88"}]
So potentially I'd want to pick either /dev/tty.usbserial-A10KXF88
or "/dev/tty.RS422 Deck Control"
to control an attached device.
If the device type is DV, then the extension of a recording must be '.dv'. if the device type is Decklink, then the extension of the recording must be '.mkv'.
@ElderOrb if no extension is used, but the input is decklink, then the output filename is suffixed with '.mkv' but the hint-name in the ui is still '.dv'
last comment is fixed in https://github.com/mipops/dvrescue/pull/791
Here's the current capture GUI with a DV deck attached and a decklink card attached.
To support decklink capture, some additions are needed. These are only for the capture interface when the device type=decklink
dvrescue --list_controls
ordvrescue --list_controls_json
).Also note that in addition to the options that may be available from
dvrescue --list_controls
, an extra option of "No control" should be default and available. If the device's control is set to "No control" then all buttons expect for the record one should be hidden or grayed out.If two devices share a selected controller, then there should be a visible warning with a mouseover saying that the user picked the same controller for two different devices.
For implementing the option this correlates to the cli with
So if
and the user selects
tty.RS422 Deck Control
, then the capture should add--control "/dev/tty.RS422 Deck Control"
or to rewind, dodvrescue --control "/dev/tty.RS422 Deck Control" -cmd rew
.@libbyhopfauf, any advice on how this control selector and/or warning should appear? Some sort of dropdown?
device input settings If the device type is decklink, then we need to control some input settings. The settings and their picklist values are in the cli as:
So an example capture if
dvrescue device://84:3c0a102a:00000000 --decklink-video-mode ntsc --decklink-video-source sdi --decklink-audio-source embedded --decklink-timecode-format vitc -m test.mkv
Note that as the recording filename ui, adds
.dv
to recording filename if the provided value doesn't end with.dv
, if the device type is decklink then the extension must be.mkv
.