Home | 簡體中文 | 繁體中文 | 雜文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品與服務 | Email

第 6 章 Multimedia Miscellaneous

目錄

6.1. Multimedia format
6.1.1. To convert multimedia format
6.1.1.1. To convert .rm files to .mp3
6.1.1.2. wav to mp3
6.1.1.3. encode to Macromedia Flash format
6.1.1.4. rm to wav
6.2. Light (光)
6.2.1.
6.2.2. 光單位
6.2.3. 色溫
6.2.4. 波長
6.3. 照片尺寸

6.1. Multimedia format

6.1.1. To convert multimedia format

6.1.1.1. To convert .rm files to .mp3

Command line utility mencoder can convert .rm files to .mp3

mencoder input_file.rm -ovc frameno -oac mp3lame -of rawaudio -lameopts cbr:br=128 -o output_file.mp3
			

6.1.1.2. wav to mp3

lame -h -b 128 audiodump.wav myconvertedfile.mp3
			

6.1.1.3. encode to Macromedia Flash format

mencoder input.avi -o output.flv -of lavf \
    -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc \
    -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3
			

6.1.1.4. rm to wav

$ mplayer -cache 10 -ao pcm -aofile stream.wav  rtsp://XXXX/stream.rm
$ lame stream.wav

$ mplayer test.rm -ao pcm:file=audiofile.wav -vc dummy -vo null
$ lame -h -b 128 audiofile.wav audiofile.mp3
$ rm audiofile.wav
			
comments powered by Disqus