mipops / dvrescue

Archivist-made software that supports data migration from DV tapes into digital files suitable for long-term preservation. Snapshot daily builds are at https://mediaarea.net/download/snapshots/binary/dvrescue/.
BSD 3-Clause "New" or "Revised" License
83 stars 19 forks source link

show play/stop for unconfigured decklink #797

Closed ElderOrb closed 3 months ago

dericed commented 6 months ago

In this case, when the user clicks stop and there's no control to decklink, then the gui sends /usr/local/bin/dvrescue device://84:3c0a102a:00000000 --decklink-video-mode ntsc --decklink-video-source sdi --decklink-audio-source embedded --decklink-timecode-format vitc -cmd stop. This doesn't do anything since there's no control, what should happen here is that pressing stop stops the active recording command.

So,

  if decklink is not recording; then
    if no control; then
       stop should be grayed out
    elif if control; then 
       stop should be active and a press sends `-cmd stop`
    fi
  else # aka decklink is recording
    if no control; then
       stop should be active and a press stops the active recording command
    elif if control; then 
       stop should be active and a press stops the active recording command and sends `-cmd stop`
    fi
fi