版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
--PAGE1 yerEditor:Crealseversionnumber:1.1 安裝與移植 在PC機(jī)的LINUX環(huán)境下安裝M 在S3C2410上移植M YER 結(jié) 附錄 YER命 附錄 --PAGE16Myer器是Linux下最優(yōu)秀的多器之一,它的速度最X86PC機(jī)上運(yùn)行很穩(wěn)定,也可以把它移植到非X86CPU上的嵌入式系統(tǒng)中去。Myer能使用眾多本地的Xanim,Realyer和Win32DLL編器,可MPEG、VOB、AVI、OGG、VIVO、ASF/WMV、QT/MOV、FLI、RMNuppelyuv4mpegFILMRoQ文件。借助于M yer你能CD、SVCD、DVD、3ivx、RealMedia和DivX格式的。M yer的另一個(gè)大的fbdev、Aalib、DirectFB下工作,而且你也能使用GGI和SDL(由此使用它們支持的各種驅(qū)動(dòng)模式)和一些低級(jí)的硬件相關(guān)的驅(qū)動(dòng)模式。這個(gè)器能很穩(wěn)定地被破壞的MPEG文件,并且它能Windowsmediayer都打不開的有損壞的AVI文件,甚至,沒有索引部分的AVI文件也可以。 yer: yer采用的編器包是libavcodec,在M yer0.91版本中此編器包可以在多種平臺(tái)上對(duì)H263/MPES/RV10/DivX4/DivX5/MP41/MP42/WMV1編碼格式的流進(jìn)行,它同時(shí)也是已知完成這些任務(wù)最快的器。它們只能用于libavcodec的mpeg1編器,因?yàn)橐话闫鳎ǔ?yer)為MPEG文件中包含的是MPEG1流和MPEG1layer2(MP2)音頻流。要改變MEncoder的輸出文件格式,可以使用-ofmpeg選項(xiàng)。例如:mencoder-ofmpeg-ovclavc-lavcoptsvcodec-mpeg1-oaccopymedia.avi-o:MEncoder音頻流(-oaccopy選項(xiàng):可以把一個(gè)外部音頻文件(MP3,Vorbis)傳到輸出流中。使用-audiofile選擇來實(shí)現(xiàn)這個(gè)功能。-ooutput.avi在PC機(jī)的Linux環(huán)境下安裝 選擇的 yer的版本與系統(tǒng)的編譯器的版本有關(guān)系,我的Gcc版本3.2.2,編譯版的M 要注意選擇的source版本和與之相對(duì)應(yīng)的codecs版本。 source,codecs,skins以及font文件: #source Ater-1.2.tar.bz2#skins skin font 因?yàn)檫@里是MyerCodecs的默認(rèn)路徑之一。在編譯之前,Codecs就需要放在最好兩者同時(shí)使用。有的建議說Codecs使用all文件(allcodecsforLinuxx86(Win32.dllandLinux.so)),但我尚未嘗試過。 $tarjxvf $cdMyer- --enable-largefiles-- --prefix=/usr/local/myer //選擇安 --with-codecsdir=/usr/lib/codecs/ //器路 //器路$make 安裝完成后,執(zhí)行文件在/usr/local/myer/bin中。每次在終端中啟動(dòng)myer的話,得進(jìn)入該中。好象若設(shè)置--prefix=/usr,在終端啟動(dòng)直接myer而不用先進(jìn)入安裝。注意:Myer默認(rèn)的skin是在../default下的 Ater- Ater- /usr/local/myer/share/m /usr/local/myer/share/m運(yùn)行myer/gm使用Myer時(shí),在終端輸入myer是文本界面器,gmyer打開在S3C2410上移植 在交叉編譯Myer的時(shí)候,出現(xiàn)程序出錯(cuò)的地方以及程序出錯(cuò)的概率與所選擇的交叉編譯工具版本有關(guān)。如使用arm-linux-gcc-2.95.3或者arm-linux-gcc-3.4.3編譯時(shí),libavcodec下面的huffyuv.c、dsputil.c、snow.c可能會(huì)編譯不通過。若出現(xiàn)錯(cuò)誤,可能需要修改的文件主要有:config.mak中改相應(yīng)的已配置選項(xiàng);頭文件的匹配;Makefile中的代碼優(yōu)化選項(xiàng);以及l(fā)ibcodecs中的一些.c文件等。arm-linux-gcc-3.3.2,經(jīng)過檢驗(yàn),此版本在編譯時(shí)出現(xiàn)的(1).source文Myer-:解將 yer解壓到某 下面,如/home/myer中 配利用./configure–help或者打開文件configure查看。 --host- --target=arm-armv41- --enable-linux- --disable- --disable- --enable- --disable- --enable- --enable- --enable- --enable- --disable- (或者--disable-live2>&1|tee--disable- --disable- --disable- -- 相)加入到$PATH中的話(即設(shè)定環(huán)境變量,在這個(gè)指定絕對(duì)路徑好了;--host-cc=gcc是用來編譯一些需要在host上執(zhí)行的中間文件的,如植》一文介紹說遇到提示codec-cfg不能被執(zhí)行出錯(cuò)時(shí)的解決方法是先將codec-cfgi386i386的codec-cfg替代從而使pileMyer-1.0rc版本才有,在Myer-1.0pre版本沒有此選項(xiàng);--target=arm-armv41-linux這個(gè)參數(shù)要注意的是一個(gè)分三部分,第一部分的注意了,一定要跟libavcodec下的平臺(tái)名一致,否則為這個(gè)平臺(tái)的優(yōu)化代碼沒辦法編譯進(jìn)去;第三部分是系統(tǒng)平臺(tái)。這個(gè)主要是用在libavcodec的編譯中,libavcodec下面支持很多平臺(tái),比如i386,armv4l,ppc,sh……進(jìn)入libavcodec的下就可看到這些子,里面分別存放著跟這些平臺(tái)相關(guān)的優(yōu)--enable-fbdev在configure中的解buildwithFBDevrendersupport,選項(xiàng)支持輸出顯示(不加將只能解不能自動(dòng)播);--enable-mp3lib是對(duì)mp3的庫文件,由于是用浮點(diǎn)運(yùn)算,在ARM平臺(tái)上利用此器解mp3相當(dāng)占用CPU資源;--enable-static是設(shè)定靜態(tài)連接,不需要一堆動(dòng)態(tài)庫,這樣就省了很多的麻--disable-live2>&1|teelogfile--disable-armv5te是使Myer編譯成不支持ARMV5TE的,配置輸出信息CheckingforARMv5TE(EnhancedDSPExtensions)...no;--disable-rtc在configuredisableRTC(/dev/rtc)onLinux,因?yàn)椴患哟隧?xiàng),時(shí)出現(xiàn)Failedtoopen/dev/rtc:Nosuchfileordirectory提示信息,這可能是板子上沒有RTC驅(qū)動(dòng),還有辦法就是修改Myer頂層下的config.h文件,將文件中的#defineHAVE_RTC1這一行給注釋掉;--disable-iconv與--charset=noconv這兩項(xiàng)加上的原因是配置時(shí)輸出信息Installprefix:/tmp/mDatadirectory:/tmp/myer/share/myer;Configdirect.:/tmp/myer/etc/myer。編codec給去 yer研利用上面交叉編譯出來的M 了比較常見的.mpg和.avi格式。在開發(fā)板上.mpg文件: 在開發(fā)板上.avi文件: 可以看到正常,畫面很流暢。選項(xiàng)“-noound”是不音頻,所以面就是僅。出信如下: s]#./myer yer1.0rc1-3.3.2(C)2000-2006M yerTeamCPU:yingMPEG-PSfileformat: (aspect 24.000 0.0kbps(0.0Openingdecoder:[mpegpes]MPEG1/2passthroughVDec:voconfigrequest-320x176(preferredcolorspace:MpegPES)Couldnotfindmatchingcolorspace-retryingwith-vfscale...Openingfilter:Theselected_outdeviceis patiblewiththiscodec.Tryaddingthescalefilter,e.g.-vfspp,scaleinsteadof-vfspp.VDecoderinitfailed:(Openingdecoder:[libmpeg2]MPEG1/2decoderlibmpeg2-v0.4.0bSelectedcodec:[mpeg12]vfm:libmpeg2(MPEG-1or2(libmpeg2))Audio:nosoundStartingyback...VDec:voconfigrequest-320x176(preferredcolorspace:narYV12)Couldnotfindmatchingcolorspace-retryingwith-vfscale...Openingfilter:VDec:using narYV12asoutputcsp(no0) 30.4718/71824%23% 0.0%00M 可以支持的具體編解參考以下由于Myer主要是針對(duì)PC機(jī)開發(fā)的,所以它的音頻一般是利用浮點(diǎn)數(shù)運(yùn)算,那么在開發(fā)板上音頻文件就相當(dāng)占用CPU資源(一般CPU占用率在200%~2000%,根本無法正常。Myer可支持的具體音頻編器參考:。所以,在目前情況下浮點(diǎn)轉(zhuǎn)定點(diǎn)是改善Myer在開發(fā)板上音頻文件由于Myer中默認(rèn)的mp3器是mp3lib,使用的是浮點(diǎn)數(shù)運(yùn)算,相當(dāng)CPUlibmad進(jìn)行音頻輸出,使用之前需要自己手動(dòng)編譯libmad,保證交叉編譯器能夠找到libmad庫以及頭文件,編譯時(shí)增加--enable-mad就可以了。利用madmp3文件,可以看到CPU占用率降低到了20%左右。交叉編譯: --host=arm- --disable- \(這個(gè)選項(xiàng)就是說明要靜態(tài)編譯--disable- cc=arm-linux-對(duì)于--cc=arm-linux-gccarm-linux-gcc 下多了include和lib 這些就是libmad相關(guān)的庫文件。配置M在Myer的configure選項(xiàng)中,有以下改變--disable- --enable- //Enablelibmad(MPEGaudio) //這個(gè)指明mad.h這個(gè)文 //(這個(gè)指libmad相關(guān)鏈 所以,Myer的完整的configure選項(xiàng)為: --host- --target=arm-armv4l- --enable-linux- --disable- --disable- --enable- --disable- --enable- --disable- --disable- --enable- --disable- --disable- --disable- -- --enable- --enable- --with-extralibdir=/usr/local/arm/3.3.2/arm- yer放到開發(fā)板上, -acmad是告訴M yer使用mad。Openingaudiodecoder:[libmad]libmadmpegaudioSelectedaudiocodec:[mad]afm:libmad(libMADMPEGlayer1-2-Openingaudiodecoder:[mp3lib]MPEGlayer-2,layer-Selectedaudiocodec:[mp3]afm:mp3lib(mp3libMPEGlayer-2,layer-具體的Myer使用mad器時(shí)輸出信息: s]#./myer yer1.0rc1-3.3.2(C)2000-2006M yerTeamCPU:yingAudiofilefileformatdetected.Clipinfo:Title::Album:..o?.納?.a.?...?. Year:2002Track:2daudiocodec:Openingaudiodecoder:[libmad]libmadmpegaudioAUDIO:44100Hz,2ch,s16le,128.0kbit/9.07%(ratio:16000-Selectedaudiocodec:[mad]afm:libmad(libMADMPEGlayer1-2-[AOOSS]audio_setup:Can'topenaudiodevice/dev/sound/dsp:DeviceorresourcyAO:[null]44100Hz2chs16le(2bytespersample):noStartingyback... 4.2(04.1)of195.0(03:15.0)而使用libmp3時(shí)具體的輸出信息為:[root@lyts]#./myer Myer1.0rc1-3.3.2(C)2000-2006MyerTeamCPU:ARMyingAudiofilefileformatdetected.Clipinfo:Title::Album:..o?.納?.a.?...?. Year:2002Track:2Openingaudiodecoder:[mp3lib]MPEGlayer-2,layer-AUDIO:44100Hz,2ch,s16le,128.0kbit/9.07%(ratio:16000-Selectedaudiocodec:[mp3]afm:mp3lib(mp3libMPEGlayer-2,layer-[AOOSS]audio_setup:Can'topenaudiodevice/dev/sound/dsp:DeviceorresourcyAO:[null]44100Hz2chs16le(2bytespersample):noStartingyback... 1.5(01.4)of195.0(03:15.0)由于使用PC機(jī)上的Myer.mpg和.avi格式的時(shí),使用的音頻 #./myer-acmad信息顯示音頻和都可以正常,輸出信息如下: s]#./myer-acmadmatrix.mpgMyer1.0rc1-3.3.2(C)2000-2006MyerTeamCPU:yingMPEG-PSfileformat:MPEG1320x176(aspect1)24.000fps0.0kbps(0.0kbyte/s)Openingdecoder:[mpegpes]MPEG1/2passthroughVDec:voconfigrequest-320x176(preferredcolorspace:MpegPES)Couldnotfindmatchingcolorspace-retryingwith-vfscale...Openingfilter:Theselected_outdeviceis patiblewiththiscodec.Tryaddingthescalefilter,e.g.-vfspp,scaleinsteadof-vfspp.VDecoderinitfailed:(Openingdecoder:[libmpeg2]MPEG1/2decoderlibmpeg2-v0.4.0bSelectedcodec:[mpeg12]vfm:libmpeg2(MPEG-1or2(libmpeg2))daudiocodec:Openingaudiodecoder:[libmad]libmadmpegaudioAUDIO:44100Hz,2ch,s16le,96.0kbit/6.80%(ratio:12000-Selectedaudiocodec:[mad]afm:libmad(libMADMPEGlayer1-2-[AOOSS]audio_setup:Can'topenaudiodevice/dev/sound/dsp:CannotallocatemyAO:[null]44100Hz2chs16le(2bytespersample)StartingVDec:voconfigrequest-320x176(preferredcolorspace: Couldnotfindmatchingcolorspace-retryingwith-vfscale...Openingfilter:VDec:usingnarYV12asoutputcsp(noA:11.3V:11.3A-V:0.011ct:0.053258/25815%23%13.8%0A:以秒計(jì)算的音V:以秒計(jì)算的位A-V:以秒計(jì)算的音頻位置差(延遲的幀數(shù)(從最后一次搜索開始計(jì)算的幀數(shù)(從最后一次搜索開始計(jì)算為保持A-V同步而丟棄的幀Openingaudiodecoder:[ffmpeg]FFmpeg/libavcodecaudiodecodersSelectedaudiocodec:[ffwmav2]afm:ffmpeg(DivXaudiov2(FFmpeg))所以.asf和.wma格式音頻文件應(yīng)該使用的是同一個(gè)音頻器,ffmpegffwmav2在開發(fā)板上直接.asf和.wma格式音頻文件時(shí),同樣是CPU占用率過高而導(dǎo)致不能正常。從以上分析看來,解決在開發(fā)板上.asf音頻文件的方案有參考解決mp3音頻的方法,找到代替ffmpeg,而使用定點(diǎn)運(yùn)算的其它庫文件,將該庫編譯到M yer中,在.asf音頻文件時(shí)指定使用該器。由于.asf和.wma格式音頻文件使用的是同一個(gè)音頻器,所以對(duì)Myer上的wma進(jìn)行優(yōu)化,即將myer/libavcodec/wmadec.c浮點(diǎn)轉(zhuǎn)定Myer可以使用XMMS的輸入插件來各種格式,那么就需要找到或者制作.asf和.wma格式音頻文件的插件。在開發(fā)板上radio.asf時(shí)輸出的信息為 s]#./m yer1.0rc1-3.3.2(C)2000-2006M CPU:ARMyingASFfileformatdetected.Clipinfo:name:W琒Openingaudiodecoder:[ffmpeg]FFmpeg/libavcodecaudiodecodersAUDIO:22050Hz,2ch,s16le,32.0kbit/4.54%(ratio:4003-Selectedaudiocodec:[ffwmav2]afm:ffmpeg(DivXaudiov2-17--PAGE19[AOOSS]audio_setup:Can'topenaudiodevice/dev/sound/dsp:DeviceorresourcyAO:[null]22050Hz2chs16le(2bytespersample):noStartingyback... .8(760:36:31.8)of0.0(unknown)在開發(fā)板上music.wma時(shí)輸出的信息為 s]#./m yer1.0rc1-3.3.2(C)2000-2006M CPU:ARMyingASFfileformatdetected.InvalidlengthinASFheader!libavformatfileformatdetected.Openingaudiodecoder:[ffmpeg]FFmpeg/libavcodecaudiodecodersAUDIO:44100Hz,2ch,s16le,64.0kbit/4.54%(ratio:8003->176400)Selectedaudiocodec:[ffwmav2]afm:ffmpeg(DivXaudiov2[AOOSS]audio_setup:Can'topenaudiodevice/dev/sound/dsp:DeviceorresourcebusyAO:[null]44100Hz2chs16le(2bytesper:no 2.3(02.2)of255.0(04:14.9)《myer在ARM9(s3c2410)上的移植》中提到聲音這塊不解決,當(dāng)然是不能說移植成功的,因?yàn)閙yer還支持那么多格式的音頻。但是問題究竟出在哪里呢?用排除法吧!找一個(gè)任何音部分,極有可能出現(xiàn)在音頻流的部分?,F(xiàn)在市面上大多數(shù)的嵌入式開發(fā)板的音頻驅(qū)動(dòng)oss規(guī)范的驅(qū)動(dòng),以前自己oss的編程,對(duì)這塊還是比較熟悉。于是開始查看mpalyer,c源文件,看看它是如何實(shí)現(xiàn)音頻流的??碼o_oss.c源代碼進(jìn)一步獲知myer是如何與音頻的linux驅(qū)動(dòng)工作的。這一步弄清楚后,重新編譯myer,打開debug選項(xiàng),打開調(diào)試字符串輸出,并在音頻處設(shè)置多處斷點(diǎn),并加上printf語句輸出一些變量內(nèi)容,最終發(fā)現(xiàn)在調(diào)用ao_oss.c的y()函數(shù)時(shí)出現(xiàn)除零出錯(cuò)。子都使用uda1341音頻因而也都使用了相同一個(gè)音頻驅(qū)動(dòng),即MIZI公司擁有的linuxuda1341音頻驅(qū)動(dòng),這個(gè)驅(qū)動(dòng)基本上符合了oss的規(guī)范,但DMADMA緩沖的建立發(fā)生在第一次調(diào)用write()函數(shù)將音頻數(shù)據(jù)傳送到設(shè)備描述符的時(shí)候,然而oss驅(qū)動(dòng)的調(diào)用者通常要在打開音頻設(shè)備描就期DMA緩沖的信息,然而因?yàn)榫彌_尚未建立,因而返回緩沖大小為0這個(gè)結(jié)果。解決的辦法是在音頻驅(qū)動(dòng)源碼 smdk2410_audio_open()函數(shù)體,加 staticintsmdk2410_audio_open(structinode*inode,structfile{intcold=!audio_active;if((file->f_flags&O_ACCMODE)=={if(audio_rd_refcount||return-EBUSY;}elseif((file->f_flags&O_ACCMODE)=={if(audio_wr_refcount)return-EBUSY;}elseif((file->f_flags&O_ACCMODE)=={if(audio_rd_refcount||audio_wr_refcount)return-EBUSY;}if(cold){audio_rate=AUDIO_RATE_DEFAULT;audio_fragsize=AUDIO_FRAGSIZE_DEFAULT;audio_nbfrags=AUDIO_NBFRAGS_DEFAULT;if((file->f_mode&// }if((file->f_mode}}return}--21在《移植Myer通過》一文中提到0的情況導(dǎo)致程序異常),就按照以下的方法修改libao2/ao_oss.c文件:第一步:找到static 行加入ao_data.outburst 第二步:找到static 第三步:找到 if(ioctl(audio_fd,SNDCTL_DSP_GETOSPACE,1){intr=0;if(ioctl(audio_fd,SNDCTL_DSP_GETBLKSIZE,&r)==-1){mp_msg(MSGT_AO,MSGL_V,"audio_setup:%dbytes/frag(config} }}elsemp_msg(MSGT_AO,MSGL_V,"audio_setup:frags:%3d/%d (%dbytes/frag) :%6d\n",zz.fragments,zzfragstotal,zzfragsize,zz.bytes);if(ao_data.buffersize==-1)ao_data.buffersize=zz.bytes;ao_data.outburst=zzfragsize;}在之后加入以下兩行到此大功告成,在命令行下輸入make,最終將會(huì)在當(dāng)前 下生成myer文件,到板子上就可以音頻或者文件了。注意:如果你沒有使用RTC,就需要用軟件同步的方法,也就是在同時(shí)有音頻與的文件時(shí),--PAGE25 yer要直接把URL地址加到命令行中就可以進(jìn)行。Myer也支持http_myerhttp_://p Myer能從stdin(不稱為管道)輸入。例如這樣能從FTP上:wget /something.avi-O-|myerwget /something.avi-O-|myer-cache8192在PC機(jī)上radio是非常的容易的 myer[選項(xiàng)][URL|路徑/]文件名在PC機(jī)上利用Myer中 [root@wwwbin]#./myer yer1.0rc1-3.2.2(C)2000-2006M yerTeamCPU: (R)Celeron(R)CPU2.40GHz(Family:15,Model:2,Step: MMX:1MMX2:13DNow:03DNow2:0SSE:1SSE2:x86CPU的擴(kuò)展指令集MMXMMX2SSE正在正在連接到服務(wù)器1[1]:80...正在連接到服務(wù)器1[1]:80...1[1]:90K緩存填充17.7816384字節(jié))檢測(cè)到ASF文件格式。剪輯信息name:RixFMcopyright:MTGRadio打開音頻器:[ffmpeg]FFmpeg/libavcodecaudiodecodersAUDIO44100Hz2chs16le48.0kbit/3.40ratio:6003->176400)已選音頻編器:[ffwmav2]afm:ffmpeg(DivXaudiov2AO:[oss]44100Hz2chs16le(2bytesper:沒開始 .5(606:04:56.4)of0.0 1.1%所以,由此推論,如果在開發(fā)板中使用Myer.asf音頻文件的問題Myerradio將是非常容易的。 yer控帶的GUI,即前面提到的gmyer,還有的就是利用Myer為核開發(fā)的其它一些前端控制界面,如KMyer、SMyer等,關(guān)于SMyer的信息可參考以關(guān)于利用Myer開發(fā)的一些前端控制界面器信息可參考以下一種是把myer解剖,直接修改它里面的代碼,這樣我們做得界面就可具體支持哪些命令行,可以通過myer-inputcmdlist這條命令來得到。linux簡單的講A可以從命令行調(diào)用程B,如果程B可以在運(yùn)行過程中支持參數(shù)A就可以在程序B運(yùn)行過程B通過管道發(fā)送新的指令。myer恰好就屬于程序B這種類型的軟件。有了這個(gè)特性,可以為開發(fā)控制Myer方面節(jié)省很多時(shí)間。Myerslave模式令大全參見附錄2:slave模式另外,Myer有一個(gè)完全可配置的,命令驅(qū)動(dòng)的控制層使得可以使用鍵盤,鼠標(biāo),游戲桿或(使用LIRC)來控制Myer,具體內(nèi)容可以參考以下:附錄 yer命用法 myer[選項(xiàng)][URL|路徑/]文件-vo 選擇輸出驅(qū)動(dòng)(查看驅(qū)動(dòng)列表用“-vo-ao<drv> aohelp”)vcd://<trackno>(S)VCD軌跡號(hào)(原始設(shè)備,無需安掛)dvd://<titleno>從設(shè)備而不是普通文件上DVD標(biāo)題號(hào)-alang/- -ss hh:mm:ss- 不聲- 全屏(或者用-vm,-zoom,詳見于手冊(cè)頁-x<x>-y vmzoom-sub subfps,--ylist<file>指定列表文-vidx-aid 選擇用于的x流和y音頻流通道-fpsx-srate 改變率為x幀秒(fps)和音頻率為y-pp - <-or 后退/快進(jìn)10downor 1pgdownor 10<or 跳到列表中的前一個(gè)/后一or 暫停(按任意鍵繼續(xù)or 停止并退出程+or 調(diào)整音頻延遲增加/減少0.1 循環(huán)OSD模式 無/搜索條/搜索條加定*or PCMxor 調(diào)整字幕延遲增加/減少0.1or vf** 詳細(xì)內(nèi)容 的(高級(jí))選項(xiàng)和控制鍵,請(qǐng)參見手冊(cè) **附錄2:Myersalve模SLAVEMODEPROTOCOL——mpalyer-The-slaveoptionswitchesonslavemode,inwhichMyerworksasabackendforotherprograms.Insteadofinterceptingkeyboardevents,Myerwillreadcommandsseparatedbyanewline(\n)fromstdin.Totryslavemodeoutbyhand,runmyer-slave-quiet<movie>andtypeslavecommandsintotheconsoleMostslavemodecommandsareequivalenttocommandlineoptions,thoughnotnecessarilyunderthesamename.Detaileddescriptionscanbefoundinthemanpage.Allcommandscanbeprefixedwithoneof"pausing","pausing_keep",or"pausing_toggle"."pausing"lsMyertopauseassoonaspossibleafterprocessingthecommand."pausing_keep"lsMyertodosoonlyifitwasalreadyinpausedmode."pausing_toggle" lsMyertodosoonlyifitwasnotalreadyinpausedmode.Pleasenotethat"assoonaspossible"canbebeforethecommandisfullyexecuted.Availablecommands('myer-inputcmdlist'willprintaalt_src_step<value>(ASXylistWhenmorethanonesourceisavailableitselectsthenext/previousaudio_delay<value>[abs]Set/adjusttheaudiodelay.If[abs]isnotgivenoriszero,adjustthedelayby<value>seconds.If[abs]isnonzero,setthedelayto<value>seconds.[brightness|contrast|g|hue|saturation]<value>[abs]Set/adjustparameters.If[abs]isnotgivenoriszero,modifiesparameterby<value>.If[abs]isnon-zero,parameterissetto<value>.<value>isintherange[-100,change_rectangle<val1>ChangethepositionoftherectanglefilterMustbeoneofthe0=1=2=x3=yIf<val1>is0orIntegeramounttoadd/subtractfromthewidth/height.Positivevaluesaddtowidth/heightandnegativevaluessubtractfromit.If<val1>is2orRelativeintegeramountbywhichtomovetheupperleftrectanglecorner.Positivevaluesmovetherectangleright/downandnegativevaluesmovetherectangleleft/up.dvb_set_channel<channel_number><card_number>SetDVBchannel.dvdnavPressthegivendvdnav123456WritethecurrentpositionintotheEDLframe_dropToggle/setframedropPrintouttheaudiobitrateofthecurrentPrintouttheaudiocodecnameofthecurrentPrintouttheaudiofrequencyandnumberofchannelsofthecurrentPrintoutthenameofthecurrentPrintoutthe'Album'metadataofthecurrentPrintoutthe''metadataofthecurrentPrintoutthe'Comment'metadataofthecurrentPrintoutthe'Genre'metadataofthecurrentPrintoutthe'Title'metadataofthecurrentPrintoutthe'TrackNumber'metadataofthecurrentPrintoutthe'Year'metadataofthecurrentPrintoutthecurrentpositioninthefile,asintegerpercentage[0-get_propertyPrintoutthecurrentvalueofaPrintoutsubtitlevisibility(1==on,0==PrintoutthelengthofthecurrentfileinPrintoutthecurrentpositioninthefileinseconds,asPrintoutfullscreenstatus(1==fullscreened,0==PrintoutthebitrateofthecurrentPrintoutthecodecnameofthecurrentPrintouttheresolutionofthecurrentscreenshotTakeascreenshot.Requiresthescreenshotfiltertobe0Takeasingle1Start/stoptakingscreenshotofeachGUIkey_down_eventInject<value>keycodeeventintoMloadfile<file|url>Loadthegivenfile/URL,stopybackofthecurrentfile/URL.If<append>isnonzeroybackcontinuesandthefile/URLisappendedtothecurrentylistinstead.loadlist<file>Loadthegivenylistfile,stopybackofthecurrentfile.If<append>isnonzeroybackcontinuesandtheylistfileisappendedtothecurrentylistinstead.loop<value>Adjust/sethowmanytimesthemovieshouldbelooped.-1meansnoloop,and0forever.ExecuteanOSD Movecursorup. Movecursordown. Acceptselection.cancelCancelselection. Hidethe Disythe named< mute[value]Togglesoundoutputmutingorsetitto[value]when[value]>=0(1==on,0==off).osdToggleOSDmodeorsetitto[level]when[level]>=osd_show_property_text<string>[duration]ShowanexpandedpropertystringontheOSD,see-ying-msgforadescriptionoftheavailableexpansions.If[duration]is>=0thetextisshownfor[duration]ms.[level]setstheminimumOSDlevelneededforthemessagetobevisible(default:0-alwaysshow).osd_show_text<string>[duration][level]Show<string>ontheOSD.panscan<-1.0-1.0>|<0.0-1.0>Increaseordecreasethepan-and-scanrangeby<value>,1.0istheum.Negativevaluesdecreasethepan-and-scanrange.If<abs>is!=0,thenthepan-andscanrangeisinterpretedasanabsoluterange.Pause/unpausetheyoneframe,thenpausept_step<value>[Gotothenext/previousentryintheytree.Thesignof<value>lsthedirection.Ifnoentryisavailableinthegivendirectionitwilldonothingunless[]isnon-zero.pt_up_step<value>[Similartopt_stepbutjumpstothenext/previousentryintheparentlist.Usefultobreakoutoftheinnerloopintheytree.quitQuitMyer.Theoptionalinteger[value]isusedasthereturncodeforthemyerprocess(default:0).radio_set_channelSwitchto<channel>.The'channels'radioparameterneedstobeset.radio_set_freq<frequencyinMHz>SettheradiotunerStepforwards(1)orbackwards(-1)inchannellist.Worksonlywhenthe'channels'radioparameterwasset.radio_step_freqTunefrequencybythe<value>(positive-up,negative-seek<value>Seektosomeceinthe0isarelativeseekof+/-<value>seconds1isaseekto<value>%inthe2isaseektoanabsolutepositionof<value>seek_chapter<value>Seektothestartofa0isarelativeseekof+/-<value>chapters1isaseektochapterset_mouse_pos<x>lsMyerthecoordinatesofthemouseinthewindow.Thiscommanddoesn'tmovethemouse!set_property<property><value>Setaproperty.speed_incrAdd<value>tothecurrentybackspeed_multMultiplythecurrentspeedbyspeed_setSetthespeedtostep_property<property>[value]Changeapropertybyvalue,orincreasebyadefaultifvalueisnotgivenorzero.Thedirectionisreversedifdirectionislessthanzero.sub_alignmentToggle/setsubtitle0top1center2bottomsub_delay<value>Adjustthesubtitledelayby+/-<value>secondsorsetitto<value>secondswhen[abs]isnonzero.sub_loadLoadssubtitlesfromLogsthecurrentorlastdisyedsubtitletogetherwithfilenameandtimeinformationto~/.myer/subtitle_log.Intendedpurposeistoallowconvenientmarkingofbogussubtitleswhichneedtobefixedwhilewatchingthemovie.sub_pos<value>Adjust/setsubtitlesub_removeIfthe[value]argumentispresentandnon-negative,removesthesubtitlefilewithindex[value].Iftheargumentisomittedornegative,removesallsubtitlefiles.sub_selectDisysubtitlewithindex[value].Turnsubtitledisyoffif[value]is-1orgreaterthanthehighestavailablesubtitleindex.Cyclethroughtheavailablesubtitlesif[value]isomittedorlessthan-1.Supportedsubtitlesourcesare-suboptionsonthecommandline,VOBsubs,DVDsubtitles,andOggandMatroskatextstreams.sub_scale<value>Adjustthesubtitlesizeby+/-<value>orsetitto<value>when[abs]isnonzero.Thisisastublinkedtosub_selectforbackwardssub_stepStepforwardinthesubtitlelistby<value>stepsorbackwardsif<value>isnegative.sub_visibilityToggle/setsubtitled_subs_only dsubtitlesswitch_audio[value](MPEGandMatroskaSwitchtotheaudiotrackwiththeid[value].Cyclethroughtheavailabletracksif[value]isomittedornegative.switch_ratioChangeaspectratioatruntime.[value]isthenewaspectratioexpressedasafloat(e.g.1.77778for16/9).Theremightbeproblemswithsomeswitch_vsyncTogglevsync(1==on,0==off).If[value]isnotprovided,vsyncstatusisinverted.etext_add_digitEnter/leaveetextpagenumbereditingmodeandappendgivendigittopreviouslyenteredone.0..9-Appendapropriatedigit.(Enableseditingmodeifcalledfromnormalmode,andswitchestonormalmodewhenthirddigitisentered.) -Deletelastdigitfrompagenumber.(Backspaceemulation,worksonlyinpagenumbereditingmode.)Startautomatictvchannelstv_step_channelSelectnext/previousTVChangeTVChangechanneltv_set_channelSetthecurrentTVSetthecurrentTVchanneltothelastone.tv_set_freq<frequencyinMHz>SettheTVtunertv_step_freq<frequencyoffsetinSettheTVtunerfrequencyrelativetocurrenttv_set_normSettheTVtunernorm(PAL,SECAM,NTSC,tv_set_brightness<-100-100>SetTVtunerbrightnessoradjustitif[abs]issettotv_set_contrast<-100-100>SetTVtunercontrastoradjustitif[abs]issettotv_set_hue<-100-100>SetTVtunerhueoradjustitif[abs]issettotv_set_saturation<-100-100>SetTVtunersaturationoradjustitif[abs]issettoSwitchvolumecontrolbetweenmasterandvo_borderToggle/setborderlessdisvo_fullscreen[value]Toggle/setfullscreenmode.vo_ontop[value]vo_rootwinToggle/setybackontherootvolume<value>Increase/decreasevolumeorsetitto<value>if[abs]isThefollowingcommandsarereallyonlyusefulfor consoleDisyshelptext,currentlyExitsfrom console.Unlike'quit',doesnotquitM
HidestheOSD console.Clickinga commandunhidesit.Otherkeybindingsactasusual.runRun<value>asscommand.InOSD consolemodestdoutandstdinarethroughtheoutputdriver.Available getsetstep03XXXas-XXXas--XXXas-XfileyingwoXfileXdemuxer0XXpositionin0Xstartposin0Xendposin0X(end-Xlengthoffilein0XXXpositionin0XXXpositioninXXmetadata0XXXchange-1XXXchangeaudio01XXX-XXXXXXXX-XXXselectaudio01XXX01XXX01XXX01XXX01XXX02XXX1=soft,2=g-XXX-XXX-XXX-XXX-XXX01XXX01XXXXXXX"disy"X"disy"XX-XXXselect-XXX(seeTABdefault-XXXselectsubtitleXXX0XXXsubtitle02XXXsubtitle01XXXshow/hide01XXX0XXXsubtitlesfont-XXX-XXX-XXX-XXX0XXX0XXX01XX 0-off,1-03XX 0-1-2-opaque3-transp.02XXX0-off,1-top
bottom-37--PAGE39附錄3:Myer的配置選 Installation-- usethisprefixforinstallingmyer-- usethisprefixforinstallingmyer-- usethisprefixforinstallingmachinedatafiles(fonts,skins)[PREFIX/share/m-- usethisprefixforinstallingmanpages-- usethisprefixforinstallingconfiguration-- usethisprefixforobjectcodelibrariesOptional disablemencoder(a/vencoder)compilation enablegmyercompilation(GTK+GUI) usingGTK1.2forGUI[disable] enablesupportforfiles>2GBytes setdefaultdevicestodevfsones usetermcapdatabaseforkeycodes usetermiosdatabaseforkeycodes donotuseiconv(3)function donotuselanginfo enableLIRC(remotecontrol)support enableLIRCCD(LIRCdaemon)input enablejoysticksupport disablesupportXmodeextensions disablesupportfor'multimedia'keys enableRadioInterface--enable-radio-captureenableCaptureforRadioInterface(throughpci/line-in) disable4Linux2RadioInterfacesupport disableTVInterface(tv/dvbgrabbers) disable4LinuxTVInterfacesupport disable4Linux2TVInterfacesupport--disable-tv-bsdbt848disableBSDBT848Interfacesupport disable4Linux2MPEGPVRsupport disableRTC(/dev/rtc)onLinux disablenetworksupport(for:http/mms/rtp) enablewinsock2usage enableSamba(SMB)inputsupport enableLIVE555StreamingMediasupport disablelibdvdnavsupport Disablelibdvdreadsupport Disablempdvdkit2support Disablecdparanoiasupport--disable-bitmap-fontDisablebitmapfontsupport type2fontrenderingsupport Disablefontconfigfontlookupsupport DisableUniqueRARFileLibrary Enable support(NOTDVD) Disablesubtitlessorting EnableusingtheFriBiDilibs DisableusingENCAcharsetoraclelibrary DisableMacOSXspecificfeatures Disablemaemospecificfeatures--enable-macosx-finder-supportEnableMacOSXFinderinvocationparameter--enable-macosx-bundleEnableMacOSXbundlefilelocations DisableIPv6support--disable-gethostbyname2gethostbyname()functionisnotprovidedbythelibrary Disableftpsupport Disabletivovstreamsupport DisablePosixthreadssupport DisableinternalSSA/ASSsubtitlessupport Enableruntimelinkerpathforextralibs enablegifsupport enablepnginput/outputsupport enablejpeginput/outputsupport enableexternallibcdiosupport enableexternalliblzosupport disableWin32DLLsupport disableQuicktimecodecs disableXAnimDLLsupport disableRealyerDLLsupport disableXviDcodec disableH.264encoder disablelibnutdemuxer disablelibavutil disablelibavcodec--disable-libavformatdisablelibavformat--disable-libpostprocdisablelibpostproc disablesharedlibavutil--disable-libavcodec_sodisablesharedlibavcodec--disable-libavformat_sodisablesharedlibavformat--disable-libpostproc_sodisablesharedlibpostproc--disable-libavcodec_mpegaudio_hpdisablehighprecisionaudioinlibavcodec enablelibfamerealtimeencoder--disable-tremor-internaldonotbuildinternalTremorsupport buildwithloweraccuracyinternalTremor--enable-tremor-externalbuildwithexternalTremor disablelibvorbissupport disableSpeexsupport buildwithOggTheorasupport--enable-faad-externalbuildwithexternalFAAD2(AAC)support--disable-faad-internaldisableinternalFAAD2(AAC)support enablefixed-pointmodeininternalFAAD2 disablesupportforFAAC(AACencoder) disableLADSPApluginsupport disablelibdv0.9.5en/decodingsupport disablelibmad(MPEGaudio)support disableToolame(MPEGlayer2audio)supportinmencoder disableTwolame(MPEGlayer2audio)supportinmencoder buildwithXMMSinputpluginsupport disablebuiltinmp3lib disablebuiltinliba52 enablelibdtssupport disablebuiltinlibmpeg2 disablemusepacksupport disableamrnarrowband,floatingpoint--disable-amr_nb-fixeddisableamrnarrowband,fixedpoint disableamrwideband,floatingpoint--disable-decoder=DECODERdisablespecifiedFFmpeg--enable-decoder=DECODERenablespecifiedFFmpeg--disable-encoder=ENCODERdisablespecifiedFFmpeg--enable-encoder=ENCODERenablespecifiedFFmpeg disablespecifiedFFmpeg enablespecifiedFFmpeg--disable-demuxer=DEMUXERdisablespecifiedFFmpeg--enable-demuxer=DEMUXERenablespecifiedFFmpeg disablespecifiedFFmpeg enablespecifiedFFmpegoutput:--disable-vidix-internaldisableinternalVIDIX[forx86--disable-vidix-externaldisableexternalVIDIX[forx86OpenGLrendersupportDGA[nin{1,2}]supportVESAsupportSVGAlibsupportSDLrendersupportAAlibrendersupportCACArendersupportGGIrendersupportGGIlibggiwmhextensionDirectXsupportDXR2rendersupportDXR3/H+rendersupportIVTVTV-OutrendersupportsupportforoutputviaDVB-Card buildwithDVBsupport(HEADversion) buildwithmga_vid(forMatroxG200/G4x0/G550)(checkfor/dev/mga_vid) buildwithmga_vidXWindow(checkforX&/dev/mga_vid) buildwithXvrendersupportforX4.x buildwithXvMCaccelerationforX4.x buildwithXF86VidModesupportforX11 buildwithXineramasupportforX11 buildwithX11rendersupport buildwithXShapesupport buildwithFBDevrendersupport buildwithmediaLibsupport(Solarisonly) buildwithobsolete/dev/3dfxsupport buildwithtdfxfb(Voodoo3/banshee)support buildwiths3fb(S3ViRGE)support buildwithDirectFBsupport buildwithZR360[56]7/ZR36060support buildwithBlinkenlightssupport buildwithtdfx_vidsupport disabletargaoutputsupport disablepnmoutputsupport disablemd5sumoutputsupportAudio disableALSAsoundsupport disableOSSsoundsupport disableaRtssoundsupport disableesdsoundsupport disablePolypaudiosoundsupport disableJACKsoundsupport disableOpenALsoundsupport disableNASsoundsupport disableSGIsoundsupport disableSunsoundsupport--disable-win32waveoutdisableWindowswaveoutsoundsupport disableusingselect()onaudiodeviceMiscellaneous EnableruntimeCPUdetection[disable]pile
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- GB/T 44845-2024承壓設(shè)備低頻電磁檢測(cè)方法
- 2024年度年福建省高校教師資格證之高等教育學(xué)通關(guān)提分題庫(考點(diǎn)梳理)
- 2024年度山西省高校教師資格證之高等教育心理學(xué)題庫附答案(基礎(chǔ)題)
- 江蘇開放大學(xué)形考任務(wù)2024年秋包裝設(shè)計(jì)060712形成性考核作業(yè)答案
- 2024年商品信用銷售協(xié)議
- 合同法總作業(yè)及參考答案
- 大理石原料買賣化協(xié)議文檔
- 2024年規(guī)范轉(zhuǎn)供電服務(wù)協(xié)議模板
- 2024年施工協(xié)議監(jiān)管要點(diǎn)明細(xì)
- 2024年木模板工程承包協(xié)議樣本
- 柴油發(fā)電機(jī)組應(yīng)急預(yù)案
- 語文《猜猜他是誰》教案
- 繪本:讓誰先吃好呢
- 寬容待人正確交往中小學(xué)生教育主題班會(huì)
- 移動(dòng)通信網(wǎng)絡(luò)運(yùn)行維護(hù)管理規(guī)程
- 龍頭股戰(zhàn)法優(yōu)質(zhì)獲獎(jiǎng)?wù)n件
- 小班幼兒語言活動(dòng)教案100篇
- 中國青瓷藝術(shù)鑒賞智慧樹知到答案章節(jié)測(cè)試2023年麗水學(xué)院
- 中廣國際總公司-CR2010衛(wèi)星接收解碼器
- 2023年小學(xué)數(shù)學(xué)手抄報(bào)比賽活動(dòng)總結(jié)(3篇)
- 社會(huì)保險(xiǎn)業(yè)務(wù)申報(bào)表(填表說明)
評(píng)論
0/150
提交評(píng)論