vrecord icon indicating copy to clipboard operation
vrecord copied to clipboard

test if vrecord via avfctl works with hdv

Open dericed opened this issue 4 years ago • 14 comments

If works, then adjust vrecord to do hdv capture (might just be detecting the format and using the right extensions).

dericed avatar Jul 03 '20 00:07 dericed

related to https://github.com/mipops/dvrescue/issues/53 and https://github.com/amiaopensource/vrecord/issues/482

dericed avatar Jul 03 '20 00:07 dericed

Fingers crossed! Wish I could test right now.

kieranjol avatar Jul 03 '20 06:07 kieranjol

testing out hdv capture, and it doesn't seem to be working for me. In vrecord, the capture window never opens and I'm getting the following message:

pipe:: Invalid data found when processing input

 2020-07-20T12:47:48 -  [vrecord]Error: Running: avfctl
Consider reporting this or asking for help at https://github.com/amiaopensource/vrecord/issues

And the capture log says vrecord command Error: 141

Running avfctl -device 0 -cmd capture - in terminal, I'm getting a whole bunch of this:

(base) MY-LPAMI-056430:~ benjaminturkus$ avfctl -device 0 -cmd capture -
2020-07-20 12:46:32.860 avfctl[40584:323689] Mode changed: 0 -> 1
2020-07-20 12:46:32.860 avfctl[40584:323689] Speed changed: 0.000000 -> 1.000000
?Z84=	.  & &,,,,,,4046664444666:::DDD:::66::@@DDJLJFFDFLLPPP``\\ppt????b?!?!?T??????<G4(?@??z?
                L?6?Q?.aK?An3?j?40??5V?fܥ??? ?'"S?4??.?N;
                                                         ?%DP??Z*m,"??f?K?e?????@%?|-/ըL:??e???b?C?E.?Ȱ6?,R??V?h
                                ???T`?,????=?؏??%0S@?????+Y?@?4?????a?I`?aO???%b?F4??)?,??K?Q?@?2????l8?
6s
???s@??)?E??(?SD(?L???.??f<?J
e3Eaa
?B?r??(???Q??\Sv?!??`6???Ō???<-??p??Z?C?d=*6??B)?B?%????7dE?%?%??!?e`4b9IL?
                                                                           ????,?̛jX?†??秀
         ?F??`P?ȁlJ)H@Z?2rz?e64
                               $?4??,
                                     hQd??`s?LLr?A? ?PxkrIh?$??QC!
                                                                  ?$ad????-g?x?????"C#???? ?؜??X?l-?%8j<?PH??.?c?Hj_????o?
                   ?eZ?x
                        <cdTBJz?<??->3X?ȥ?\
                                           ??3??Im`y????p??K?FE?/????x???B?5?eJ??#!?62??
?)K?#g??!c#*????m?lRb? ,??8`QĐ4?"!^?2??n????K`,???4?B?
       ?!?1G ?M?? ?Lc!6????Q??+d(4s(X??o?
???Q????E????U?}???@?Z???QGz?0qd?XU-???Kz?6?"???eB? 6*rјid??l???d??Y???l?Pѧ??TP????i


?fx???*_???6?*?cp????Ф?ן????Ha)??i$?"xь???4C=Y???%3?M??H???+C ?+ѩ?D-N???BDm<<
`RӼTt??.0T(?Ű&YJ>
                 X=i)??qg?Ece??J?4???`??e@???z6?ZP?I0?Fa???Bڌ'Zp?T??'STB3??Xy
))??'m,???Fg??aP0xJc?T??????M???P-?EB??6҂j????ae?o????F???.)??b1!*47e??@Y?(????!J?

bturkus avatar Jul 20 '20 16:07 bturkus

can you try avfctl -device 0 -cmd capture - | ffplay - on that hdv tape

dericed avatar Jul 20 '20 17:07 dericed

i'm not getting any audio thru ffplay, but that does seem to work. nice big video.

bturkus avatar Jul 20 '20 17:07 bturkus

Hi all, have there been any updates here? I'm looking to tackle a large-scale HDV project and would love to use vrecord. I can get audio from an HDV deck using $ ffmpeg -f avfoundation -capture_raw_data true -i "1:none" out.dv

I can get picture using avfctl and vrecord. Can't seem to get both, though.

Thanks in advance!

camardo avatar Jan 25 '22 01:01 camardo

has anyone tested this anymore? I'm really concerned that Apple will drop import for DV formats soon, so I'd love an option like this to capture my HDV tapes from my camera. What did you guys (@ncam610 + @bturkus) run exactly to record the HDV ? Thanks.

Chrisedmo avatar Oct 16 '22 21:10 Chrisedmo

I've been using dvgrab on Ubuntu -- it's less than ideal. Lots of packet corruption and difficult to troubleshoot.

camardo avatar Oct 17 '22 16:10 camardo

Hi @ncam610 - have you tried vrecord and/or FFmpeg on Ubuntu? On Linux Vrecord uses FFmpeg's IEC61883 device to capture DV, and that device seems to be capable of HDV capture as well.

I, unfortunately, don't have an HDV tape at hand to test so I can't say for sure if this works, but might be worth a shot if you have access to an Ubuntu machine.

privatezero avatar Oct 17 '22 17:10 privatezero

We've tried with ffmpeg. Trying with vrecord now. It looks like capturing to .mov retains the mpeg2 video stream, so that might be a good solution. There was also a warning upon ending capture that the current version of ffmpeg on our computer (4.2.7) could cause out of sync. audio/video.

camardo avatar Oct 17 '22 18:10 camardo

FFmpeg 4.2.8 (Ada) has been released a few days ago and this release branch was cut from master three years ago.

retokromer avatar Oct 18 '22 02:10 retokromer

I'm pretty new to this, would someone mind displaying the exact command used to get HDV videos ? I'm not having much luck. Thanks.

Chrisedmo avatar Oct 18 '22 08:10 Chrisedmo

Hi @Chrisedmo, a sample command from FFmpeg's documentation on the IEC61883 device that might work is ffmpeg -f iec61883 -i auto -dvbuffer 100000 out.mpg, however this might not help you as it sounds like you are on a Mac?

privatezero avatar Oct 18 '22 19:10 privatezero

@Chrisedmo: it's been some time since I've tested, but this should work on a mac: ffmpeg -f avfoundation -capture_raw_data 1 -i 1:1 -c copy output.m2t

-i is input in the format: [VIDEO:AUDIO], the number being the stream you wish to capture. All available devices can be enumerated by using -list_devices true, listing all device names and corresponding indices.

camardo avatar Oct 18 '22 20:10 camardo