Parent Directory | Revision Log
Revision 1637 - (view) (download)
1 : | edgomez | 562 | +--------------------------------------------------------------------+ |
2 : | | XviD core lib examples | | ||
3 : | +--------------------------------------------------------------------+ | ||
4 : | |||
5 : | Isibaar | 3 | In this directory can find some examples how to use XviD MPEG4 codec |
6 : | in your own programs. | ||
7 : | |||
8 : | edgomez | 562 | ** cactus.pgm.bz2 |
9 : | ---------------------------------------------------------------------- | ||
10 : | Isibaar | 3 | |
11 : | edgomez | 562 | This a test sequence of 3 images with a cactus moving from right to |
12 : | left. It bzip2-compressed for size reason (half the size of a | ||
13 : | ZIP-file). Binaries of bunzip2 are available for all major OSes at | ||
14 : | http://sources.redhat.com/bzip2/ The original source of the cactus | ||
15 : | image is unknown... | ||
16 : | Isibaar | 3 | |
17 : | edgomez | 562 | * xvid_encraw.c |
18 : | ---------------------------------------------------------------------- | ||
19 : | Isibaar | 3 | |
20 : | edgomez | 562 | This is a small example that allows you to encode YUV streams or PGM |
21 : | files into a MPEG4 stream. It can output single files (on per encoded | ||
22 : | frame), or one file for all the enced stream (m4v format or a simple | ||
23 : | container format that we called mp4u, its description can be found at | ||
24 : | the end of this file). This program also outputs some very basic time | ||
25 : | results. | ||
26 : | Isibaar | 3 | |
27 : | edgomez | 562 | Type "xvid_encraw -help" to have all options' description. |
28 : | Isibaar | 3 | |
29 : | edgomez | 562 | Examples : |
30 : | Isibaar | 3 | |
31 : | suxen_drol | 1637 | 1) bzip2 -dc cactus.pgm.bz2 | ./xvid_encraw -type 1 |
32 : | Isibaar | 3 | |
33 : | suxen_drol | 1637 | This command decompress cactus.pgm.bz2 and pipe the pgm file to |
34 : | xvid_encraw that will compress it to mpeg4 format. No mp4 stream | ||
35 : | output is written to disk. | ||
36 : | Isibaar | 3 | |
37 : | suxen_drol | 1637 | 2) ./xvid_encraw -type 1 -i cactus.pgm -save |
38 : | Isibaar | 3 | |
39 : | suxen_drol | 1637 | Compress cactus.pgm frames into mpeg4 stream, and then writes a |
40 : | m4v file per encoded frame. | ||
41 : | Isibaar | 3 | |
42 : | suxen_drol | 1637 | 3) ./xvid_encraw -type 1 -i cactus.pgm -o my_xvid_example.m4v -stats |
43 : | Isibaar | 3 | |
44 : | suxen_drol | 1637 | Same thing as above but saves all raw m4v data to a singlefile, |
45 : | and displays yuv-plane psnr statistics to stdout. | ||
46 : | edgomez | 562 | |
47 : | |||
48 : | ** xvid_decraw.c | ||
49 : | ---------------------------------------------------------------------- | ||
50 : | |||
51 : | This is a decoder example that is able to decode a m4v or mp4u | ||
52 : | stream. You can use it to decode what xvid_encraw encoded. | ||
53 : | |||
54 : | Type "xvid_decraw -help" to have all options' description. | ||
55 : | |||
56 : | Examples : | ||
57 : | |||
58 : | suxen_drol | 1637 | 1) ./xvid_decraw -i stream.m4v -d |
59 : | edgomez | 562 | |
60 : | suxen_drol | 1637 | This command decodes a m4v file from stream.m4v and saves all |
61 : | decoder output frames to individual PGM files (framexxxxx.pgm). | ||
62 : | edgomez | 562 | |
63 : | suxen_drol | 1637 | 2) cat stream.m4v | ./xvid_decraw |
64 : | edgomez | 562 | |
65 : | suxen_drol | 1637 | This examples decodes a m4v stream from standard input, but does |
66 : | save any decoded frames. | ||
67 : | edgomez | 562 | |
68 : | |||
69 : | suxen_drol | 1637 | ** xvid_bench.c |
70 : | edgomez | 562 | ---------------------------------------------------------------------- |
71 : | |||
72 : | suxen_drol | 1637 | This is a tool to conduct unit testing and profiling of the signal |
73 : | processing functions used internally within libxvidcore. | ||
74 : | edgomez | 562 |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |