⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 linux下的一款mpeg播放器
💻
字号:
                                 mpeg2play                                 =========                         Version 1.1b, July 13, 1994           (C) Stefan Eckart, stefan@lis.e-technik.tu-muenchen.de  mpeg2play is based on mpeg2decode, (C) 1994, MPEG Software Simulation GroupFeatures========- plays MPEG-1 and MPEG-2 video bitstreams on 8 bit color X displays- plays system layer (MPEG-1 only) streams, audio being ignored- high quality ordered dither algorithm- high speed interlaced to progressive scan conversion- speed is about 90% of Berkeley's mpeg_play (somewhat platform and  stream dependent)- NCSA Mosaic compatible (as external viewer for video/mpeg)Introduction============mpeg2play is a player for MPEG-1 and MPEG-2 video bitstreams. It is based onmpeg2decode by the MPEG Software Simulation Group. In mpeg2decode theemphasis is on correct implementation of the MPEG standard and comprehensivecode structure. The latter is not always easy to combine with high executionspeed. Therefore a version has been derived which is optimized for higherdecoding and display speed at the cost of a less straightforwardimplementation and slightly non-compliant decoding. In addition allconformance checks and some fault recovery procedures have been omitted frommpeg2play.Availability============The most recent versions of mpeg2play and of the MPEG Software SimulationGroup codec software are available by anonymous ftp from:  ftp.netcom.com:/pub/cfogg/mpeg2The Internet address of ftp.netcom.com is [192.100.81.1].Installation============Please report problems, bugs, suggestions etc. to  stefan@lis.e-technik.tu-muenchen.deI'm also interested in speed comparisons with mpeg_play on platformsother than Sparc (preferably based on 'well-known' bitstreams).Step 1: edit Makefile---------------------You may have to set CC to your C compiler and CFLAGS to the flags requiredby the compiler. Follow the instructions in the Makefile regarding thecorrect setting of the other variables (USE_SHMEM, LIBS, INCLUDEDIR andLIBRARYDIR).Use of shared memory (USE_SHMEM) requires SYSV shared memory support andan X server implementing the MIT-SHM extensions. It results in aconsiderable speed increase if server and client run on the same machine.If you use a C compiler which doesn't understand ANSI-C function prototypesadd -DNON_ANSI_COMPILER to CFLAGS.Note that decoding speed depends on the compiler. Here are some results ona SPARCstation 10 (single CPU) for a particular MPEG-2 sequence:  compiler        user time  ---------------------------  cc  -O3         98.1 sec  gcc -O2 (2.5.8) 90.4 sec  acc -fast       83.2 secStep 2: make------------Type 'make'.Usage=====mpeg2play {options} input.m2v {upper.m2v}Options:-vn  verbose output (n: level)Instructs mpeg2play to generate informative output about the sequenceto stdout. Increasing level (-v1, -v2, etc.) results in more detailedoutput.-on  output format (0: X11, 1: none)-o1 is sometimes useful for benchmarking.X11: display decoded video on an X Window System server. The current version     supports only 8 bit color display. You can use the DISPLAY environment     variable to select a (non-default) display. The output routines perform     8 bit dithering and interlaced to progressive scan conversion.-l  loop sequenceSetting this flag results in repeated display of the sequence.-s infile  spatial scalable sequenceSpatial scalable video is decoded in two passes. The -s option specifiesthe names of the output files from the first (lower layer) pass to thesecond (enhancement layer) pass. 'infile' describes the name format of thelower layer pictures for spatial scalable sequences as a printf formatstring. It has to contain exactly one integer format descriptor (e.g. %d,%02d) and, a %c descriptor. The %d descriptor has to be before the %c.-qSet this switch to suppress output of warnings to stderr. Usually a bad idea.-fnSet frame rate to n frames / sec. Otherwise the sequence is played at maximumspeed.input.m2vname of the file containing the MPEG stream. '-' denotes reading the streamfrom stdin.upper.m2vis the name of the upper layer bitstream of an SNR scalable stream or adata partioning scalable bitstream (input.m2v is the lower layer).Examples========non-scalable stream (one layer, one pass):	mpeg2play base.m2vSNR-scalable stream (two layers, one pass):	mpeg2play base.m2v snr.m2vspatial-scalable stream (two layers, two passes):	mpeg2decode base.m2v l%d%c	mpeg2play -s l%d%c spatial.m2vhybrid spatial/SNR-scalable stream (three layers, two passes):	mpeg2decode base.m2v l%d%c	mpeg2play -s l%d%c spatial.m2v snr.m2vhybrid SNR/spatial-scalable stream (three layers, two passes):	mpeg2decode base.m2v snr.m2v l%d%c	mpeg2play -s l%d%c spatial.m2vetc.Use with Mosaic===============mpeg2play can be used as an 'external viewer' in conjunction with theWWW (World Wide Web) browser NCSA Mosaic:- add the directory containing mpeg2play to your PATH environment variable- make sure you have a file .mailcap in your home directory containing the  line:video/mpeg; mpeg2play %s  (or rename mpeg2play to mpeg_play)It is usually not required to add the MPEG-2 file suffix .m2v to themime-types file (if the HTTP server supplies the correct Content-Type: header).If you want to set up a HTTP daemon to serve MPEG-2 files, you have to add'AddType .m2v video/mpeg binary 1.0' to the server configuration file (atleast for CERN httpd 3.0).Acknowledgements================Thanks to Dave Wecker for providing the frame rate control routines. Ihave made some modifications, so it's me to blame if it doesn't work asexpected.--Stefan EckartFraunhofer-Institut fuer Festkoerpertechnologie (IFT-ST)Hansastr. 27DD-80686 Muenchen, Germany.E-mail: stefan@lis.e-technik.tu-muenchen.de

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -