Date: Tue, 14 Jan 2003 16:59:36 +0100 From: "Petr Holub" <hopet@ics.muni.cz> To: "Hidetoshi Shimokawa" <simokawa@sat.t.u-tokyo.ac.jp> Cc: <freebsd-firewire@freebsd.org>, <ikob@freebsd.org>, <akimichi@sfc.wide.ad.jp> Subject: RE: reading from /dev/fw0? Message-ID: <004d01c2bbe5$efda4800$2603fb93@kloboucek> In-Reply-To: <ybs8yxt3426.wl@ett.sat.t.u-tokyo.ac.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
> I wrote small utility which dumps DV stream to a file. > The resulting file can be decoded or viewed with libdv(and playdv) > in ports collection. > > http://people.freebsd.org/~simokawa/firewire/dvrec-20030110.tar.gz Seems to work great! I've changed NBLOCKS to work with PAL and changed several includes to work in RC2. The only problem I have now is with playdv from libdv: - when using gtk display it's slow (around 20 fps on 1.2 GHz Athlon) and therefore sound gets distorted - when using SDL sound is OK but video is approx 1.5 faster than it should be - when playing just audio (--disable-video), it's OK. Is that some problem with libdv/playdv or is it something missing in the DV stream? (Some timing info?) Thanks! Petr ================================================================ Petr Holub CESNET z.s.p.o. Supercomputing Center Brno Zikova 4 Institute of Compt. Science 162 00 Praha 6, CZ Masaryk University Czech Republic Botanicka 68a, 60200 Brno, CZ e-mail: Petr.Holub@cesnet.cz phone: +420-541512213 fax: +420-541212747 e-mail: hopet@ics.muni.cz --- dvrec.c.bak Tue Jan 14 16:52:21 2003 +++ dvrec.c Tue Jan 14 16:54:47 2003 @@ -44,9 +44,10 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <netinet/in.h> -#include <dev/firewire/firewire.h> -#include <dev/firewire/iec68113.h> +#include "/usr/src/sys/dev/firewire/firewire.h" +#include "/usr/src/sys/dev/firewire/iec68113.h" static void usage() @@ -61,7 +62,7 @@ #define NVEC 50 #define BUFSIZE (PSIZE * NPKT) #define BLOCKSIZE 80 -#define NBLOCKS (250*6) /* data blocks per a frame (NTSC) */ +#define NBLOCKS (150*12) /* data blocks per a frame (150*12 for PAL, 150*10 for NTSC) */ int dvrec(int d, char *filename, char ich, int count) { To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-firewire" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004d01c2bbe5$efda4800$2603fb93>
