Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2003 20:58:46 +0900
From:      Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
To:        "Petr Holub" <hopet@ics.muni.cz>
Cc:        <freebsd-firewire@FreeBSD.ORG>, <ikob@FreeBSD.ORG>, <akimichi@sfc.wide.ad.jp>
Subject:   Re: reading from /dev/fw0?
Message-ID:  <ybsvg0ewyh5.wl@ett.sat.t.u-tokyo.ac.jp>
In-Reply-To: <ybs3cnv0y7g.wl@ett.sat.t.u-tokyo.ac.jp>
References:  <004d01c2bbe5$efda4800$2603fb93@kloboucek> <ybs8yxt3426.wl@ett.sat.t.u-tokyo.ac.jp> <ybs3cnv0y7g.wl@ett.sat.t.u-tokyo.ac.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
At Wed, 15 Jan 2003 14:38:27 +0900,
Hidetoshi Shimokawa wrote:
> 
> At Tue, 14 Jan 2003 16:59:36 +0100,
> Petr Holub wrote:
> > 
> > > 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?)
> 
> I have several problems with playdv too.
> (XVideo cannot be used. I give up...)
> 
> I believe DV stream is OK because I wrote sending part
> and DVcam can play a recorded stream without problem.
> 
> http://people.freebsd.org/~simokawa/firewire/dv-20030115.tar.gz
> 
> This should be complied and run on latest -current.

Those tools are merged to /usr/sbin/fwcontrol in both -current and
4-stable. It should work with PAL but I cannot test it.
Quoted from fwcontrol(8):

EXAMPLES
     Each DV frame has fixed size and it is easy to edit those frame order.

           fwcontrol -R original.dv

     Receive stream.

           dd if=original.dv of=first.dv bs=120000 count=30

     Get first 30 frames(NTSC).

           dd if=original.dv of=second.dv bs=120000 skip=30 count=30

     Get second 30 frames(NTSC).

           cat second.dv first.dv | fwcontrol -S /dev/stdin

     Swap first and second 30 frames and send them to DV recorder. For PAL,
     replace 'bs=120000' with 'bs=144000'.


/\ Hidetoshi Shimokawa
\/  simokawa@sat.t.u-tokyo.ac.jp
PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html


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?ybsvg0ewyh5.wl>