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

control-c on capture is inconsistent #783

Open dericed opened 6 months ago

dericed commented 6 months ago
$ dvrescue device://84:3c0a102a:00000000 --control "/dev/tty.RS422 Deck Control" --decklink-video-mode ntsc --decklink-video-source composite --decklink-audio-source embedded --decklink-timecode-format vitc -y -m composite.embedded.vitc.mkv 
Capture frame 105, press ctrl+c to stop.^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C

I'm testing 2023-1206-2 and about half the time, Control-C won't work and I have to look up the PID and kill the process. Could I listen to a q keypress or offer another quick while to halt capture.

dericed commented 6 months ago

btw, with dvrescue ... -m file -m - | mpv -. If I close mpv, then the SIGPIPE signal does consistently stop dvrescue, with about a one second delay btw closing mpv and dvrescue stopping.

g-maxime commented 6 months ago

With --in-control you can use 'q' to quit ,normally.

Does control-c works without --control or with a firewire deck? (I try to guess if a linked library overwrite my signal handler)