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
92 stars 20 forks source link

dvcapture GUI (2023-11-27-1) won't capture DVCPRO #760

Open libbyhopfauf opened 10 months ago

libbyhopfauf commented 10 months ago

While testing out dvcapture (using the GUI dvrescue version 2023-11-27-1), I am not able to capture DVCPRO. vrecord will capture the same tape using the same device (Sony DSR-1500A). I thought this might have to do with the new "keep" vs. "ignore" capture settings, but I tested it both ways multiple times and the GUI will not capture DVCPRO. It seems to be working fine with DVCAM and MiniDV across a variety of devices.

Test files are located here.

dericed commented 10 months ago

With a deck attached, can you try: dvrescue --list_devices dvrescue -m trythis.dv

Just curious if the CLI can capture it

libbyhopfauf commented 10 months ago

I tried a couple times with the deck playing. Still no capture for DVCPRO.

Here's the terminal output for those commands (it seemed like I needed to tell it to capture :):


Last login: Fri Dec  1 13:20:51 on ttys000
mipops-macbook@mipops-macbooks-MacBook-Pro ~ % dvrescue --list_devices
DSR-1500A (Sony DSR-1500A)
mipops-macbook@mipops-macbooks-MacBook-Pro ~ % dvrescue -m trythis.dv 
Usage: "dvrescue FileName1 [Filename2...] [Options...]"
"dvrescue --help" for displaying more information.

mipops-macbook@mipops-macbooks-MacBook-Pro ~ % dvrescue --capture /Users/mipops-macbook/Desktop/test.dv
<?xml version="1.0" encoding="UTF-8"?>
<dvrescue xmlns="https://mediaarea.net/dvrescue" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://mediaarea.net/dvrescue https://mediaarea.net/dvrescue/dvrescue.xsd" version="1.2.1">
    <creator>
        <program>dvrescue</program>
        <version>0.22.10</version>
        <library version="22.09">MediaInfoLib</library>
    </creator>
</dvrescue>
dericed commented 10 months ago

dvrescue --capture /Users/mipops-macbook/Desktop/test.dv isnt' valid syntax --capture is default is --cmd isn't used. In this example the filepath is uncontextualized. dvrescue --capture -m /Users/mipops-macbook/Desktop/test.dv should work.

hmm what does avfctl -cmd capture test.dv do? Can you see the dvcpro input if you try in quicktime?

libbyhopfauf commented 8 months ago

@dericed this is all using a Macbook Pro M1 chip running Ventura 13.6.1 (22G313), capturing from a Sony DSR-1500A playing DVCPRO. All test files are here.

dvrescue --capture /Users/mipops-macbook/Desktop/test.dv isnt' valid syntax --capture is default is --cmd isn't used. In this example the filepath is uncontextualized. dvrescue --capture -m /Users/mipops-macbook/Desktop/test.dv should work.

My bad! When I run the suggested command, this is what I get (I had to use the mipops-mac as my loaner computer so I had to change the user name). But it looks like the same thing:

Last login: Thu Jan 11 17:49:26 on ttys000
libbyshopfauf@MacBook-Pro-55 ~ % dvrescue --list_devices
0x8004602010e007c: DSR-1500A (Sony DSR-1500A) [DV]
libbyshopfauf@MacBook-Pro-55 ~ % dvrescue --capture -m /Users/libbyshopfauf/Desktop/2024-01-11/DVCPRO-test-01.dv
Usage: "dvrescue FileName1 [Filename2...] [Options...]"
"dvrescue --help" for displaying more information.

Just FYI, I tried using the latest build and still cannot capture DVCPRO from the dvrescue GUI. The tape plays (and deck control works), but the file is empty. Similar to what people are describing in this vrecord issue.

hmm what does avfctl -cmd capture test.dv do?

With this command, I can capture DVCPRO from my DSR-1500A (no playback, but deck control works and I can . I get the following output and the file plays great:

libbyshopfauf@MacBook-Pro-55 ~ % avfctl -cmd capture /Users/libbyshopfauf/Desktop/2024-01-11/test.dv
2024-01-11 17:53:43.469 avfctl[9149:76325] Mode changed: 0 -> 1
2024-01-11 17:53:43.469 avfctl[9149:76325] Speed changed: 0.000000 -> 1.000000
2024-01-11 17:56:19.837 avfctl[9149:76342] Speed changed: 1.000000 -> 0.000000
2024-01-11 17:56:19.837 avfctl[9149:76342] Mode changed: 1 -> 0
2024-01-11 17:56:19.837 avfctl[9149:76342] Stopping capturing.
libbyshopfauf@MacBook-Pro-55 ~ % 

Can you see the dvcpro input if you try in quicktime?

Yep! Plays great and captures (as mov).

Screenshot 2024-01-11 at 5 58 26 PM
libbyhopfauf commented 8 months ago

While testing out dvcapture (using the GUI dvrescue version 2023-11-27-1), I am not able to capture DVCPRO. vrecord will capture the same tape using the same device (Sony DSR-1500A).

@dericed As a follow up to my original comment when I opened this issue regarding using vrecord to capture DVCPRO (which was working for me when I originally posted this), but now vrecord won't capture DVCPRO. I'm using a fork from this branch (the same one that had worked previously for me). I've tried the following troubleshooting steps to resolve this (test files for vrecord capture from today are here):

https://github.com/mipops/dvrescue/assets/13877631/d3ef9a93-eac7-41bf-8501-615949533846

computer_name: MacBook-Pro-55.local
computer_model_name: MacBook Pro
computer_model_id: MacBookPro18,3
computer_processor_name: 
computer_processor_speed: 
computer_processor_count: 
computer_memory: 16 GB
computer_serial: LQYGH19CF6
computer_cores: 8
user_name: libbyshopfauf
operating_system_VERSION: Darwin Kernel Version 22.6.0: Wed Oct  4 21:26:23 PDT 2023; root:xnu-8796.141.3.701.17~4/RELEASE_ARM64_T6000
vrecord version: 2023-08-07
datetime_start: 2024-01-11T18:51:08
capture_device_node: /dev/disk3
capture_device_protocol: Apple Fabric
capture_device_name: APPLE SSD AP1024R
capture_device_block_size: 4096 Bytes
capture_device_location: Internal
capture_device_partition_type: 41504653-0000-11AA-AA11-00306543ECAC
capture_device_partition_name: APFS
capture_device_volume_uuid: 66A92C2E-EE14-4500-829F-EC49B51B21B9
capture_device_volume_available: 
capture_device_volume_total: 
FILE_PATH: /Users/libbyshopfauf/Desktop/2024-01-11/2024-01-11_DVCPRO-vrecord-test_01.dv
DVRESCUE_INPUT_CHOICE: 0x8004602010e007c: DSR-1500A (Sony DSR-1500A) [DV]
WAVEFORM_SCALE_CHOICE: digital
SIGNAL_VIEW_CHOICE: Broadcast Range
SIGNAL_INT_CHOICE: auto
MONITOR_AUDIO_CHOICE: Yes
PLAYBACKVIEW_CHOICE: Unfiltered
DV_CONTAINER_CHOICE: DV

TECHNICIAN: lsh
Capture command: dvrescue device://0x8004602010e007c --capture -m -
Record command: /usr/local/opt/ffmpegdecklink/bin/ffmpeg-dl -nostdin -nostats -i - -map 0:v -c copy -f rawvideo /Users/libbyshopfauf/Desktop/2024-01-11/2024-01-11_DVCPRO-vrecord-test_01.dv -map 0:v -f rawvideo -c copy -
Playback command: /usr/local/opt/ffmpegdecklink/bin/ffplay-dl -v info -hide_banner -stats -autoexit -window_title mode:record - input:'0x8004602010e007c: DSR-1500A (Sony DSR-1500A) [DV]' - to end recording press q, esc, or close video window -i - -af channelmap=0|1:stereo
Capture exit code: 0
Record exit code: 1
Playback exit code: 0
vrecord command Error: invalid P2_ERR value of 1
libbyhopfauf commented 8 months ago

@bravoalphatango did some AWESOME testing on this same issue today! See the results + linked (very well documented) troubleshooting document. It looks like she's getting the same results that I am for DVCPRO. Please note that the results are almost identical and that she's using an Intel Mac while I was using a M1 chip (so the problem isn't isolated to that). The main difference seems to be that vrecord did work to capture on one device (see troubleshooting doc). But it's the same deck that I am trying to use.

FROM BRIANNA: Ok so I went through the tests outlined with (4) different decks that include (3) different models and had some luck! These decks included:

QuickTime, vrecord and DVRescue recognize all the decks, but avfctl would give the following error message even though it was able to capture the tape on all 4 decks:

tothba@SIA-3118AV-1 ~ % avfctl --list_devices
avfctl - control and capture from DV tape players via AVFoundation
version 0.21.11
Usage: avfctl [Options...] [OutputFile]
"avfctl -h" for displaying more information.

was able to capture using vrecord on the Panasonic AJ-HD1400 deck and Sony DSR-1500A, but neither of the Panasonic AJ-D250P decks. We also have a Panasonic AJ-D230P deck, but I did not test it since the similar models weren't playing very nice.

I was unable to capture on any of the decks using DVRescue.

I was able to capture on all the decks using the avfctl command Dave provided, but a capture preview window does not appear like it goes with vrecord. It also doesn't provide any information in the Terminal to suggest it is doing anything. It just starts creating the file wherever you tell it to and then you play it afterward to see what was captured.

Here is my troubleshooting doc that breaks down the results of each test with each deck. Skip to page #2: https://docs.google.com/document/d/1by5TLi7utY4Psdfo14rhiDpI7_ylFRMY1iIbxjxU7uI/edit?usp=sharing

This folder has all the logs that were generated. I got some of the same results you did. https://drive.google.com/drive/folders/1OA_xlhPo-r2umCdJrc7SYok8a-DvNvCT

If you have insights into why some of these decks are working and not others it'd be great! I also don't understand the error message I'm getting when I try to capture with DVRescue. I believe it's the same one you got?

libbyhopfauf commented 8 months ago

@bravoalphatango regarding the inconsistencies with the decks: I'm not sure why it's not working with all of the decks. I think maybe it has to do with the menu settings? I know that with the DSR-1500A, it has to have very specific output settings to connect to a computer for capture, but it's like across the board, so if the settings are off it wouldn't work with Quicktime either. Panasonics tend to do weird things, but it's interesting that they are working with some of the tools, but not others. Are you able to capture MiniDV, DVCAM and DV with them using vrecord and the dvrescue CLI? I wonder if it has to do with how they communicate with those tools specifically or if it's an additional DVCPRO problem...

HMMMM I'll do some more testing on my end on Monday as well and follow up!

libbyhopfauf commented 8 months ago

@bravoalphatango I'm still having the same issues as well. I've only had success capturing DVCPRO using the avfctl command, but I agree, it's hard to know what's going on without being able to monitor the capture via a playback window.

@dericed any ideas why dvcapture for vrecord and dvrescue used to support DVCPRO, but now it doesn't?

libbyhopfauf commented 7 months ago

I just tested recording DVCPRO with the new release and I wasn't able to successfully capture using DVRescue. All test files are located here (including a capture of a MiniDV from the same deck using the dvrescue GUI). Here are the tests I ran using the same DVCPRO tape and a Sony DSR-1500A:

https://github.com/mipops/dvrescue/assets/13877631/5e4524c0-af44-4d82-b606-de4ba3792d10

Screenshot 2024-02-05 at 4 31 49 PM
dericed commented 7 months ago

@JeromeMartinez any reason that dvrescue stops after a single frame with these dvcpro captures. 8643_test-1.dv.zip

libbyhopfauf commented 6 months ago

@dericed @JeromeMartinez I can confirm that this is still an issue with version 2024-03-26. Here are my test files from today.