ddennedy / dvgrab

Command line FireWire DV and HDV capture tool for Linux
GNU General Public License v2.0
35 stars 13 forks source link

`recordonly` option not functioning #15

Open asprinwizard opened 1 year ago

asprinwizard commented 1 year ago

Hi,

I have been trying to setup a DTE record device using dvgrab. The recordonly (-r) option is key to this because, as I understand it, it should not starting capturing anything until the camera is recording. Here is my command:

dvgrab -recordonly -autosplit foo-

I run this when the camera is in record pause mode. dvgrab starts capturing immediately. If I then press record it then starts capturing a new file, and again when I put the camera back into record pause. Basically each time I press the record trigger it starts capturing a new file, but it is never in a pending state waiting for the camera to start recording. Perhaps I'm doing something wrong here but I thought that was the expected behavior.

I have noticed that if I remove -recordonly from the command the behaviour is exactly the same, so it is as if the recordonly param is being ignored. If I remove the autosplit it starts capturing straight away to one big file. I cannot get it to wait for the signal to start capturing. I'm using version 3.5 and have used the compiled version and one I compiled from source and they behave exactly the same. My cameras are mainly HDV cameras but I've tried them in DV output mode and it's just the same. Can anyone help me out here.

Thanks, Richard

asprinwizard commented 1 year ago

Just to follow on from this, I tried adding the --interactive flag to the command and this now does hold off the capture AND displays the camcorder record status correctly Recording or Recording Paused but it won't actually capture anything when the camcorder is recording. You need to start the capture by pressing c - so this is still not right. Once again if I remove the --recordonly flag the behaviour doesn't change, so it does seem like the recordonly option is doing absolutely nothing. Any help appreciated.

ddennedy commented 1 year ago

I do not use or work on this project anymore. I just looked at the source, and I see recordonly option does not work with HDV: https://github.com/ddennedy/dvgrab/blob/57e642b5a8ccafba702ea0d1ab0cf109a19b1d12/dvgrab.cc#L1041

Also, I would not be surprised if it is mutually exclusive with interactive mode. The man page says it is intended to give camera operator control, which is the opposite of the interactive terminal user.

asprinwizard commented 1 year ago

Thanks for taking the time to reply. I realise this is an old project. I will try with a DV camcorder. Is there any reason why this is not enabled for HDV? Perhaps I could take a fork and add this in? Thanks again.