Hi Alexandre, On Wed, 2003-01-29 at 11:03, Alexandre CONRAD wrote: > And I want all this to be scriptable, automatic, etc... So basicly, I > need a text mode linux program
(lavrec). > I'm going to record a daily program early in the moring, everyday. So > once that program is recorded on disk (MPEG2 stream from satellite), I > need to add a bitmap banner on top of it. So I would have an image > (500x50 pixels), and I would like to reencode the MPEG2 with the banner > inside the video at position X and Y. Some kind of OSD in a way... > > Any ideas ? Is Mjpeg tool the right tool for doing this ? Lavrec only records to MJPEG, not MPEG2. This doesn't matter since you want a banner anyway, which basically requires reencoding. lavpipe can do layering of video, the lavpipe filter to use here is matteblend.flt(.c). Linux Video Studio shows how this can be used to overlay images over a video stream, you could also read README.lavpipe. The output of this can be directly moved over (as a raw data stream) to mpeg2enc for MPEG2 encoding. lavrec would be run in cron, something like this: - lavrec --batch --input=X --geometry=WxH --software-encoding [other interesting options] /path/to/file-%02d.avi - That creates one or more files file-{00,01,..}.avi. You need a banner image converted to a YUV image (using ImageMagick's 'convert'), and you need it's alpha channel as a separate (b/w) image, also converted to YUV. README.lavpipe in mjpegtools' source dir describes a script 'foreveryuv' that you will also need. Then, you create a script for lavpipe (again, see README.lavpipe) which describes the lavpipe filter (matteblend.flt) and the input file(s) (file-*.avi) and feed it to lavpipe. The output can be watched using yuvplay, and encoded using mpeg2enc (and any other yuvstream filter such as denoisers/scalers can be used too here). This will look like this: - lavpipe script.pli | mpeg2enc -o bla.m2v - Sounds can be converted using mp2enc, this can be multiplexed using mplex. This too can be done without intermediate files, for this, you'd have to read the MJPEG HOWTO (see our SF documentation area). hope this helps, Ronald -- Ronald Bultje <[EMAIL PROTECTED]> Linux Video/Multimedia developer ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users