Hello all!
(BTW: I've not posted this in software or hardware forums as I don't know if this a software or hardware problem - not sure which one!).
I'm currently trying to video capture some of my old VHS video tapes. However no matter what video capture device I try (or no matter which tape) there always seems to be a problem I'm having - the video capture is dropping frames.
To do this I'm using the latest version of debian (buster). The system I'm using is an older system however it should be able to surely do video captrue. It's an AMD Phenom II x2 555 CPU, 4 GB of RAM, onboard graphics. No hard drive but I'm using a SATA SSD of 55GB.
The capture devices I've tried are PCI and USB based. Right now I'm using a USB device (as both devices seem to have the same frame drop problem). The USB device is a USBTV007 video grabber (Easycap) 1B71:3002 .
I can see the video captured by this device OK with a programmed called QT V4L2 test utility and I can also hear the audio coming into the capture device without problem.
I'm also wanting to capture using lossless (not lossy) audio and video and I am using the following command line to perform the capture:
Code:
$ ffmpeg -f v4l2 -thread_queue_size 1024 -tvstd pal-i -i /dev/video1 -r 25 -f alsa -thread_queue_size 1024 -ac 2 -i hw:2,0 -acodec pcm_s16le -ar 48000 -vcodec ffv1 -level 3 -async 1 1.avi
This works and video and audio are recorded ok. However eventually for some reason I'm getting dropped frames - out of a 48 min video I ended up with 305 dropped frames.
Code:
frame=72477 fps= 25 q=-0.0 Lsize=15916485kB time=00:48:33.44 bitrate=44753.9kbits/s dup=0 drop=305 speed= 1x
However I'm also seeing this error listed several times while capturing:
Code:
[video4linux2,v4l2 @ 0x559016e9a340] Dequeued v4l2 buffer contains corrupted data (829440 bytes). speed= 1x
[video4linux2,v4l2 @ 0x559016e9a340] Dequeued v4l2 buffer contains corrupted data (829440 bytes). speed= 1x
[video4linux2,v4l2 @ 0x559016e9a340] Dequeued v4l2 buffer contains corrupted data (829440 bytes). speed= 1x
[video4linux2,v4l2 @ 0x559016e9a340] Dequeued v4l2 buffer contains corrupted data (829440 bytes). speed= 1x
The PC I'm using isn't really doing much else apart from running normal KDE. However try as I might I can't find the reason for the frame drops. It seems to happen no matter if I use an older PCI device or the USB device mentioned above and also with any tape.
BTW I can confirm my VHS video recorder I'm using is working; I am capturing via its svideo output (and the machine I'm using even has a TBC which is powered on). Its model number is HR-S7600.
Has anyone experienced problems with frame dropping while doing analog video capture at all? I know this used to be a problem a long time ago with older PCs but largely that really was down to the PC and any I/O being too slow to keep up!
Thanks
ljones