Scenario: some old VHS tapes played in a Sony SLV-E710EE VCR, video output goes into a composite capture card, audio output from the VCR goes into the computers's sound card. 4.6-stable (see dmesg below).
This is how I try to record the tape with ffmpeg: $ ffmpeg -y -v 1 -tvstd pal -isync -f oss -ar 48000 -ac 2 -i /dev/audio0 \ -f bktr -r 25 -s 768x576 -i /dev/bktr0 -vcodec rawvideo -acodec pcm_s16le \ out.avi During the capture, I get a lot of error messages saying SLEPT NO signals - 8866 microseconds late - the number of microseconds varies anywhere between 4000 and 20000. The resulting video (out.avi) apparently is not well synced - audio is lagging behind video, and the lag seems to be getting worse. Does it have anything to do with the above error message? What exactly does the message mean anyway? Who tried to SLEEP for NO signals? What was X microseconds late behind what? (Looking at the source, it seems that fmpeg didn't get last frame's time from bktr, and tries to do some computation using av_gettime() to figure out if it's later than the last frame plus microseconds-per-frame, but I'm not sure. If that is the case, isn't my bktr crappy in the first place, if it doesn't tell the driver/application the timestamps?) Thank you for your time Jan OpenBSD 4.6-stable (GENERIC) #0: Sat Nov 21 15:58:26 CET 2009 r...@alz.stare.cz:/usr/src/sys/arch/i386/compile/GENERIC cpu0: AMD Athlon(tm) XP 2500+ ("AuthenticAMD" 686-class, 512KB L2 cache) 1.84 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 804810752 (767MB) avail mem = 768880640 (733MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 05/16/03, BIOS32 rev. 0 @ 0xfdad0, SMBIOS rev. 2.3 @ 0xf0630 (22 entries) bios0: vendor American Megatrends Inc. version "Version 07.00T" date 04/02/01 bios0: MSI MS-6712 apm at bios0 function 0x15 not configured acpi0 at bios0: rev 0 acpi0: tables DSDT FACP APIC acpi0: wakeup devices USB1(S3) USB2(S3) USB3(S3) EHCI(S3) UAR1(S4) AC9_(S4) MC9_(S4) ILAN(S4) PCI0(S4) SLPB(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 337MHz ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 3, 24 pins acpiprt0 at acpi0: bus 0 (PCI0) acpicpu0 at acpi0 acpipwrres0 at acpi0: URP1 acpipwrres1 at acpi0: URP2 acpipwrres2 at acpi0: FDDP acpipwrres3 at acpi0: LPTP acpibtn0 at acpi0: PWRB acpibtn1 at acpi0: SLPB bios0: ROM list: 0xc0000/0xec00 pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "VIA VT8377 PCI" rev 0x80 viaagp0 at pchb0: v3 agp0 at viaagp0: aperture at 0xe0000000, size 0x10000000 ppb0 at pci0 dev 1 function 0 "VIA VT8377 AGP" rev 0x00 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 "NVIDIA GeForce4 MX 440 AGP" rev 0xa4 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) emu0 at pci0 dev 6 function 0 "Creative Labs SoundBlaster Live" rev 0x08: apic 2 int 17 (irq 10) ac97: codec id 0x54524123 (TriTech Microelectronics TR28602) audio0 at emu0 "Creative Labs PCI Gameport Joystick" rev 0x08 at pci0 dev 6 function 1 not configured bktr0 at pci0 dev 8 function 0 "Brooktree BT878" rev 0x02: apic 2 int 19 (irq 5) bktr0: Warning - card vendor 0x0000 (model 0x0000) unknown. bktr0: Detected a dpl3...@-@0 at 0x84 bktr0: Intel Smart Video III/VideoLogic Captivator PCI, <no> tuner, dpl3518a dolby. "Brooktree BT878 Audio" rev 0x02 at pci0 dev 8 function 1 not configured uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x80: apic 2 int 21 (irq 11) uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x80: apic 2 int 21 (irq 10) uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x80: apic 2 int 21 (irq 5) ehci0 at pci0 dev 16 function 3 "VIA VT6202 USB" rev 0x82: apic 2 int 21 (irq 5) usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "VIA EHCI root hub" rev 2.00/1.00 addr 1 viapm0 at pci0 dev 17 function 0 "VIA VT8235 ISA" rev 0x00 iic0 at viapm0 iic0: addr 0x1b 06=f0 0b=fc 0c=08 0d=08 0e=f0 0f=07 10=0c 11=03 12=05 14=55 15=55 17=ff 18=ff 1c=02 1e=2a 20=ff 22=07 26=30 29=ff words 00=00ff 01=00ff 02=00ff 03=00ff 04=00ff 05=00ff 06=f0ff 07=00ff iic0: addr 0x2f 04=00 06=03 07=00 0c=00 0d=07 0e=84 0f=00 10=c0 11=11 12=00 13=60 14=14 15=62 16=01 17=06 words 00=ffff 01=ffff 02=ffff 03=ffff 04=00ff 05=ffff 06=03ff 07=00ff spdmem0 at iic0 addr 0x50: 256MB DDR SDRAM non-parity PC3200CL3.0 spdmem1 at iic0 addr 0x51: 256MB DDR SDRAM non-parity PC3200CL3.0 spdmem2 at iic0 addr 0x52: 256MB DDR SDRAM non-parity PC2700CL2.5 pciide0 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: <ST320011A> wd0: 16-sector PIO, LBA, 19092MB, 39102336 sectors atapiscsi0 at pciide0 channel 0 drive 1 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: <LITE-ON, DVDRW SOHW-1693S, KS06> ATAPI 5/cdrom removable wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 4 wd1 at pciide0 channel 1 drive 0: <Maxtor 6L300R0> wd1: 16-sector PIO, LBA48, 286188MB, 586114704 sectors wd2 at pciide0 channel 1 drive 1: <MAXTOR STM3200820A> wd2: 16-sector PIO, LBA48, 190782MB, 390721968 sectors wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 6 wd2(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 5 auvia0 at pci0 dev 17 function 5 "VIA VT8233 AC97" rev 0x50: apic 2 int 22 (irq 5) ac97: codec id 0x414c4720 (Avance Logic ALC650) ac97: codec features 20 bit DAC, 18 bit ADC, Realtek 3D audio1 at auvia0 vr0 at pci0 dev 18 function 0 "VIA RhineII-2" rev 0x74: apic 2 int 23 (irq 11), address 00:0c:76:55:85:56 ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 8: OUI 0x004063, model 0x0032 usb1 at uhci0: USB revision 1.0 uhub1 at usb1 "VIA UHCI root hub" rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 "VIA UHCI root hub" rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 "VIA UHCI root hub" rev 1.00/1.00 addr 1 isa0 at mainbus0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: <PC speaker> spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 wbsio0 at isa0 port 0x2e/2: W83697HF rev 0x12 lm1 at wbsio0 port 0x290/8: W83697HF npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec mtrr: Pentium Pro MTRR support softraid0 at root root on wd0a swap on wd0b dump on wd0b _______________________________________________ ffmpeg-user mailing list ffmpeg-u...@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user ----- End forwarded message -----