[FFmpeg-user] Question on AVFoundation and importing from a DV-VCR

Thilo Borgmann thilo.borgmann at mail.de
Fri Mar 27 12:48:21 EET 2020


> I have been trying to get a direct import from a Sony DSR-45 DV Deck. Using OS X Final Cut Pro hot annoying with various issues.
> Does anyone have suggestions or a method for doing this better? I have 500-600 more DV tapes to ingest.
> Using this command brings in a 12GB DVVIDEO files
> ffmpeg -hwaccel videotoolbox -hide_banner -benchmark_all -stats -loglevel error -f avfoundation -capture_raw_data true -pix_fmt 0rgb -i DV-VCR -t 600 -q 0  -c:v copy -c:a copy 'Test7.dv' -y
> The problem are:
> 1. The file is huge (Is there a way to auto split this with a scene detect filter? I have not tried this yet.
> 2 The videos I am working with consist of:
> 	a. Intro video track no audio
> 	b. 60 second intro (apparently with different time codes)
> 	c. A 45 minute to 60 minute video
> What I get is either the intro video is too slow or the actual video I want is too fast. It seems to depend on whether I start the tape before the intro text, or during a video. I am guessing different time codes.

sounds like different timestamps on the tape. Try to add a setpts filter if you don't need the original timestamps or try setting the output rate manually if you do (but I'm not sure about that...).

> I tried a number of test cases results varied but in all cases one or the other video was bad.
> My next round of testing will be with " -capture_raw_data false"

That _might_ solve your issues regarding the playback speed. It might result in loss of quality - assuming you're about to archive these several hundred tapes.

> I am running this on a MacBook Pro (10.15 Catalina) 
> ffmpeg version 4.2.git Copyright (c) 2000-2020 the FFmpeg developers
> built with Apple clang version 11.0.0 (clang-1100.0.33.17)

I'm still on Mojave and can't comment on Catalina. However, your build is too old to have the latest patches to avfoundation. Which are especially important for you because I fixed the end of recording bug. There is no release yet featuring it, get a build from after March 5th.


More information about the ffmpeg-user mailing list