MJPEG HOWTO − an Introduction to the MJPEG−Tools MJPEG HOWTO − an Introduction to the MJPEG−Tools Table of Contents
Total Page:16
File Type:pdf, Size:1020Kb
MJPEG HOWTO − An introduction to the MJPEG−tools MJPEG HOWTO − An introduction to the MJPEG−tools Table of Contents MJPEG HOWTO − An introduction to the MJPEG−tools............................................................................1 Praschinger Bernhard...............................................................................................................................1 1. Introduction..........................................................................................................................................1 2. Unsorted list of useful Hints................................................................................................................2 2.1 Some books we found usefull............................................................................................................4 3. Recording videos.................................................................................................................................4 3.1 lavrec examples..................................................................................................................................4 3.2 Other recording hints.........................................................................................................................6 3.3 Some information about the typical lavrec output while recording...................................................6 3.4 Notes about "interlace field order − what can go wrong and how to fix it"......................................7 There are three bad things that can happen with fields.....................................................................7 How can I recognize if I have one of these Problems ?....................................................................7 How can you fix it?...........................................................................................................................8 Hey, what about NTSC movies ?......................................................................................................9 4. Creating videos from other sources.....................................................................................................9 4.1 Creating videos from images.............................................................................................................9 4.2 Decoding streams with mplayer.......................................................................................................11 4.3 Decoding MPEG2 streams with mpeg2dec.....................................................................................11 4.4 Other things to know........................................................................................................................11 5. Checking if recording was successful................................................................................................12 6. Edit the video.....................................................................................................................................13 6.1 Edit with glav...................................................................................................................................13 6.2 Unify videos.....................................................................................................................................14 6.3 Separate sound.................................................................................................................................14 6.4 Separate images...............................................................................................................................14 6.5 Creating movie transitions...............................................................................................................14 7. Converting the stream to MPEG or DIVx videos..............................................................................16 7.1 Creating sound.................................................................................................................................17 7.2 Converting video..............................................................................................................................18 Scaling.............................................................................................................................................18 7.3 Putting the streams together.............................................................................................................19 7.4 Creating MPEG1 Videos.................................................................................................................20 MPEG1 Audio creation Example....................................................................................................20 MPEG1 Video creation Example....................................................................................................20 MPEG1 Multiplexing Example.......................................................................................................22 7.5 Creating MPEG2 Videos.................................................................................................................22 MPEG2 Audio creation Example....................................................................................................23 MPEG2 Video creation Example....................................................................................................23 Which values should be used for VBR Encoding...........................................................................23 Encoding destination TV (interlaced) or Monitor (progressive).....................................................24 MPEG2 Multiplexing Example.......................................................................................................25 7.6 Creating Video−CD's.......................................................................................................................25 VCD Audio creation Example........................................................................................................25 VCD Video creation Example.........................................................................................................25 VCD Multiplexing Example...........................................................................................................26 Creating the CD...............................................................................................................................26 Notes................................................................................................................................................26 Storing MPEGs................................................................................................................................26 i MJPEG HOWTO − An introduction to the MJPEG−tools Table of Contents MJPEG HOWTO − An introduction to the MJPEG−tools 7.7 Creating SVCD................................................................................................................................27 SVCD Audio creation Example......................................................................................................27 SVCD Video creation Example......................................................................................................27 SVCD Multiplexing Example.........................................................................................................28 SVCD Creating the CD...................................................................................................................28 7.8 Creating DVD's................................................................................................................................29 DVD Audio creation Example........................................................................................................29 DVD Video creation Example........................................................................................................29 DVD Mplex Example......................................................................................................................29 DVD creation Example...................................................................................................................30 7.9 Creating DIVX Videos....................................................................................................................30 lav2avi.sh.........................................................................................................................................30 8. Optimizing the stream........................................................................................................................31 8.1 Scaling and offset correction...........................................................................................................34 8.2 Frame rate conversion......................................................................................................................35 9. Transcoding of existing MPEG−2.....................................................................................................36 9.1 If you want to do every step on your own it will look something like this.....................................38 10. Trading Quality/Speed.....................................................................................................................40 10.1 Creating streams to be played from disk using Software players..................................................41 11. SMP and distributed Encoding........................................................................................................41