[cvs] / xvidcore / examples / README Repository:
ViewVC logotype

Annotation of /xvidcore/examples/README

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (view) (download)

1 : edgomez 1.2 +--------------------------------------------------------------------+
2 :     | XviD core lib examples |
3 :     +--------------------------------------------------------------------+
4 :    
5 : Isibaar 1.1 In this directory can find some examples how to use XviD MPEG4 codec
6 :     in your own programs.
7 :    
8 : edgomez 1.2 ** cactus.pgm.bz2
9 :     ----------------------------------------------------------------------
10 :    
11 :     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 :    
17 :     * xvid_encraw.c
18 :     ----------------------------------------------------------------------
19 :    
20 :     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 :    
27 :     Type "xvid_encraw -help" to have all options' description.
28 :    
29 :     Examples :
30 :    
31 : suxen_drol 1.3 1) bzip2 -dc cactus.pgm.bz2 | ./xvid_encraw -type 1
32 : edgomez 1.2
33 : suxen_drol 1.3 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 : edgomez 1.2
37 : suxen_drol 1.3 2) ./xvid_encraw -type 1 -i cactus.pgm -save
38 : edgomez 1.2
39 : suxen_drol 1.3 Compress cactus.pgm frames into mpeg4 stream, and then writes a
40 :     m4v file per encoded frame.
41 : edgomez 1.2
42 : suxen_drol 1.3 3) ./xvid_encraw -type 1 -i cactus.pgm -o my_xvid_example.m4v -stats
43 : edgomez 1.2
44 : suxen_drol 1.3 Same thing as above but saves all raw m4v data to a singlefile,
45 :     and displays yuv-plane psnr statistics to stdout.
46 : edgomez 1.2
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 1.3 1) ./xvid_decraw -i stream.m4v -d
59 : edgomez 1.2
60 : suxen_drol 1.3 This command decodes a m4v file from stream.m4v and saves all
61 :     decoder output frames to individual PGM files (framexxxxx.pgm).
62 : edgomez 1.2
63 : suxen_drol 1.3 2) cat stream.m4v | ./xvid_decraw
64 : edgomez 1.2
65 : suxen_drol 1.3 This examples decodes a m4v stream from standard input, but does
66 :     save any decoded frames.
67 : edgomez 1.2
68 :    
69 : suxen_drol 1.3 ** xvid_bench.c
70 : edgomez 1.2 ----------------------------------------------------------------------
71 :    
72 : suxen_drol 1.3 This is a tool to conduct unit testing and profiling of the signal
73 :     processing functions used internally within libxvidcore.
74 : Isibaar 1.1

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4