Re: problems with streamer / AVI files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Op ma 01-04-2002, om 04:18 schreef Scott T. Bowden:
> The biggest problem is that if I record more than 2GB worth of data in one
> file, the file becomes uneditable by glav. I know that there is a 2GB
> limit on AVI files, and I also know that there does exist an extension to
> the AVI specification that works around this. However, 'streamer' doesn't
> seem to be able to write out files in this format (or, glav can't
> recognize them, but I think that streamer isn't writing out the index on
> the >2GB files correctly)

No, this is a mjpegtools problem. It simply can't read files larger than
2 GB, it doesn't support the extension yet. I'm planning on integrating
this after the 1.6.0 release (I've read the doco/xawtv code, so I know
how to do it, but I don't want to do it right before a stable
release...).

> This is a problem mainly because, at 320x240, and mjpeg quality of 80, 1
> hour of video hovers right around the 2GB line. Sometimes it makes it
> under, sometimes it doesn't, depending on what it was I was recording. So
> the question is: does there exist a capture program that can write out AVI
> files >2GB correctly? A corrolary to this: does there exist an editor that
> can edit AVI files >2GB? If no to either of these, is there a capture
> program that can write ANY video format >2GB, and is there an editor that
> can edit said files?

lavrec (part of mjpegtools) can capture video just like streamer, but
will record to multiple < 2 GB files rather than to one big file:

lavrec --software-encoding --geometry=352x288 --input=[nps]
file-%02d.avi

That will record video at a size of 352x288 from the first BTTV input (n
for NTSC, p or PAL, s for SECAM) to file-00.avi, file-01.avi, etc. See
'man lavrec' for more information. It's included in the mjpegtools RPM
distribution.

> I attemped to capture to raw video/audio , but the YUV files created by
> 'streamer' give the following error when I attempt to process them using
> any of the YUV tools in the mjpegtools package:
> 
> **ERROR: Could not read YUV4MPEG header: bad header magic!

Correct, we've a 'new' YUV4MPEG format for 1.6.0. xawtv probably needs a
small patch to support that. If xawtv hasn't been patched already, I'll
make up a patch shortly. Gerd?

> The second problem I'm having is just that for some reason, when I
> capture, I have a black border on the left of each frame that is about 5%
> of the width o the frame, and another, smaller border on the right side of
> the frame, about 2% of the width of the frame. An example can be seen at
> http://implausible.net/images/frame.jpg . Is there a way to fix this? It
> isn't that big a deal, but it is slightly annoying.

Capture to a somewhat larger size (384x288 or so) and cut (with
yuvscaler or so) the borders away. See 'man yuvscaler' or ask on
mjpeg-users@xxxxxxxxxxxxx

Ronald

-- 
-   .-.
-   /V\    | Ronald Bultje <rbultje@xxxxxxxxxxxxxxxxxxx>
-  // \\   | Running: Linux 2.4.18-mdk6 and OpenBSD 3.0
- /(   )\  | http://ronald.bitfreak.net/
-  ^^-^^





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux