Question on AVFoundation and importing from a DV-VCR

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Question on AVFoundation and importing from a DV-VCR

Colin Bitterfield
To Whom It May Concern:

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.

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"


Test Cases:

ffmpeg -hide_banner -benchmark_all -stats -loglevel error -f avfoundation -capture_raw_data true -pix_fmt 0rgb  -i DV-VCR -t 140 -copyts -copytb 0 -vsync passthrough -c:v copy -c:a copy  'Test 1.dv' 
ffmpeg -hide_banner -benchmark_all -stats -loglevel error -f avfoundation -capture_raw_data true -pix_fmt 0rgb -i DV-VCR -t 140 -c:v copy -c:a copy ‘Test 3.dv' -y


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)
configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-librsvg --enable-libtheora --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --enable-opencl --disable-outdev=xv --enable-audiotoolbox --enable-videotoolbox --enable-sdl2 --disable-securetransport --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-x86asm --enable-libx265 --enable-libdc1394 --enable-librtmp --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-version3 --enable-libsmbclient --enable-nonfree --enable-libfdk-aac



==========================================
Colin Bitterfield
[hidden email]
https://www.linkedin.com/in/colin-bitterfield-80612327/
==========================================

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Question on AVFoundation and importing from a DV-VCR

kumowoon1025
Hi,

> 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

Do you mean how it reaches the end of tape and refuses to finish saving, and if you force quit the files not usable?? And also does FCPX seem to lose control over the deck for no reason at all sometimes? I had a hell of a time and ended up using boot camp and premier pro as a workaround, macOS Catalina doesn't seem to like dv at all and hates HDV only marginally less.

Scene detection for splitting doesn’t seem too appealing, try if more direct access to the deck gives you more options with libdc1394. (personally I would either downgrade to mojave and use final cut there, or install windows 10 and premier with their trial/nfr licenses and archive all the dv tapes you have now. Even on mojave the newer versions of FCPX are finicky with tape decks :/)


Regards,
Ted Park

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Question on AVFoundation and importing from a DV-VCR

Colin Bitterfield



On March 26, 2020 at 10:05:58 PM, Ted Park ([hidden email]) wrote:

Hi,

> 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

Do you mean how it reaches the end of tape and refuses to finish saving, and if you force quit the files not usable?? And also does FCPX seem to lose control over the deck for no reason at all sometimes? I had a hell of a time and ended up using boot camp and premier pro as a workaround, macOS Catalina doesn't seem to like dv at all and hates HDV only marginally less.
Yeah, that’s about right. I have adobe premiere but they cut all support for DV in the Catalina. I contact support about it.







Scene detection for splitting doesn’t seem too appealing, try if more direct access to the deck gives you more options with libdc1394. (personally I would either downgrade to mojave and use final cut there, or install windows 10 and premier with their trial/nfr licenses and archive all the dv tapes you have now. Even on mojave the newer versions of FCPX are finicky with tape decks :/)
I turned off all of the processing during ingestion. Seems to be a bit better. I just can’t sit an wait for the last frame to stop the import. 








Regards,
Ted Park

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Question on AVFoundation and importing from a DV-VCR

Thilo Borgmann-2
In reply to this post by Colin Bitterfield
Hi,

> 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.

-Thilo
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Question on AVFoundation and importing from a DV-VCR

Colin Bitterfield
Thilo,

Good Morning

I am using the Mac ports ffmpeg-devel version. I can compile it from scratch for testing.

The reason for trying to keep the original time stamps (which does not seem to happen) is I wanted Final Cut Pro to have the original scene information for splitting.

The tapes are from a video studio I acquired and I am going to remaster them for re-release. So I need the maximum quality from the take. 

I think the issue is related to ffmpeg taking a set of defaults based on the first stream detected and then there are multiple streams (at least 3 or 4) which require defaults to change.

My idea was to import the video raw to a file and then have FPCX do the import on the file. FCPX does not seem to work the same on a file as it does on controlling the deck for import.  

I am trying to streamline a workflow because after I finish 500 DV tapes I have another 500 8MM tapes to go.

Regards

==========================================
Colin Bitterfield
[hidden email]
==========================================


On March 27, 2020 at 3:49:14 AM, Thilo Borgmann ([hidden email]) wrote:

Hi,

> 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.

-Thilo
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Question on AVFoundation and importing from a DV-VCR

Carl Eugen Hoyos-2
In reply to this post by Colin Bitterfield
Am Fr., 27. März 2020 um 05:33 Uhr schrieb Colin Bitterfield
<[hidden email]>:

> 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

(q 0 looks superfluous and misguiding)

> The problem are:
>
> 1. The file is huge (Is there a way to auto split this with a scene detect filter?

You cannot use a filter when you want to "codec copy", re-encoding would
lead to significantly smaller files.

But you can use pipe output and cut the file, that should unproblematic
with dv files.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Question on AVFoundation and importing from a DV-VCR

Colin Bitterfield
I will look into that. Ffmpeg | ffmpeg



==========================================
Colin Bitterfield

==========================================


On March 27, 2020 at 10:27:14 AM, Carl Eugen Hoyos ([hidden email]) wrote:

Am Fr., 27. März 2020 um 05:33 Uhr schrieb Colin Bitterfield
<[hidden email]>:

> 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

(q 0 looks superfluous and misguiding)

> The problem are:
>
> 1. The file is huge (Is there a way to auto split this with a scene detect filter?

You cannot use a filter when you want to "codec copy", re-encoding would
lead to significantly smaller files.

But you can use pipe output and cut the file, that should unproblematic
with dv files.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Question on AVFoundation and importing from a DV-VCR

Carl Eugen Hoyos-2
In reply to this post by Carl Eugen Hoyos-2
Am Fr., 27. März 2020 um 18:26 Uhr schrieb Carl Eugen Hoyos
<[hidden email]>:

>
> Am Fr., 27. März 2020 um 05:33 Uhr schrieb Colin Bitterfield
> <[hidden email]>:
>
> > 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
>
> (q 0 looks superfluous and misguiding)
>
> > The problem are:
> >
> > 1. The file is huge (Is there a way to auto split this with a scene detect filter?
>
> You cannot use a filter when you want to "codec copy", re-encoding would
> lead to significantly smaller files.
>
> But you can use pipe output and cut the file, that should unproblematic
> with dv files.

And I should have mentioned that one of the segment muxers will also work.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Question on AVFoundation and importing from a DV-VCR

Colin Bitterfield
I am not exactly sure what a segment muxer is. Do you have an example?
On Mar 27, 2020, 12:57 PM -0700, Carl Eugen Hoyos <[hidden email]>, wrote:

> Am Fr., 27. März 2020 um 18:26 Uhr schrieb Carl Eugen Hoyos
> <[hidden email]>:
> >
> > Am Fr., 27. März 2020 um 05:33 Uhr schrieb Colin Bitterfield
> > <[hidden email]>:
> >
> > > 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
> >
> > (q 0 looks superfluous and misguiding)
> >
> > > The problem are:
> > >
> > > 1. The file is huge (Is there a way to auto split this with a scene detect filter?
> >
> > You cannot use a filter when you want to "codec copy", re-encoding would
> > lead to significantly smaller files.
> >
> > But you can use pipe output and cut the file, that should unproblematic
> > with dv files.
>
> And I should have mentioned that one of the segment muxers will also work.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Question on AVFoundation and importing from a DV-VCR

Lou Logan
On Sat, Mar 28, 2020, at 8:54 AM, Colin Bitterfield wrote:
> I am not exactly sure what a segment muxer is. Do you have an example?

See:
https://ffmpeg.org/ffmpeg-formats.html#segment
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".