找过了官方的文档,也google过很多文章,找不到很好的命令大全,自己看源码,了解到了xuggle 支持的命令
--containerFormat
--cpreset
--ano
--apreset
--acodec
--asamplerate
--achannels
--abitrate
--astream
--aquality
--vno
--vpreset
--vcodec
--vscaleFactor
--vbitrate
--vbitratetolerance
--vstream
--vquality
--icontainerFormat
--iacodec
--iachannels
--iasamplerate
--realtime
以下是一些从 test中拷贝出来零碎的例子,未经整理
String[] args = new String[]{
"--containerformat",
"mov",
"--acodec",
"libmp3lame",
"--asamplerate",
"22050",
"--achannels",
"2",
"--abitrate",
"64000",
"--aquality",
"0",
"--vcodec",
"mpeg4",
"--vscalefactor",
"1.0",
"--vbitrate",
"300000",
"--vbitratetolerance",
"12000000",
"--vquality",
"0",
"--realtime",
"fixtures/testfile_videoonly_20sec.flv",
this.getClass().getName() + "_" + this.getName() + ".mov"
"--vcodec",
"libtheora",
"--acodec",
"libvorbis",
"fixtures/testfile.flv",
"--containerformat",
"mov",
"--acodec",
"libmp3lame",
"--asamplerate",
"22050",
"--achannels",
"2",
"--abitrate",
"64000",
"--aquality",
"0",
"--vcodec",
"libx264",
"--vscalefactor",
"2.0",
"--vpreset",
"fixtures/"+this.getClass().getName()+".vpresets.txt",
"--vbitrate",
"300000",
"--vbitratetolerance",
"12000000",
"--vquality",
"0",
"fixtures/testfile_videoonly_20sec.flv",
"--containerformat",
"mov",
"--acodec",
"libvo_aacenc",
"--asamplerate",
"22050",
"--achannels",
"2",
"--abitrate",
"64000",
"--aquality",
"0",
"--vcodec",
"mpeg4",
"--vscalefactor",
testResampling ? "2.0" : "1.0",
"--vbitrate",
"300000",
"--vbitratetolerance",
"12000000",
"--vquality",
"0",
"fixtures/testfile_videoonly_20sec.flv",
"--containerformat",
"flv",
"--acodec",
"libmp3lame",
"--asamplerate",
"22050",
"--achannels",
"1",
"--abitrate",
"64000",
"--aquality",
"0",
"--vcodec",
"flv",
"--vscalefactor",
"1.0",
"--vbitrate",
"300000",
"--vbitratetolerance",
"12000000",
"--vquality",
"0",
"--realtime", // this will stream out to an RTMP server
url,
"com.xuggle.xuggler.RTMPPublishingExhaustiveTest#testRTSPRead.flv"
"--acodec",
"libmp3lame",
"--asamplerate",
"22050",
"fixtures/testfile_mpeg1video_mp2audio.mpg",
"--vno",
"--acodec",
"flac",
"--asamplerate",
"22050",
"fixtures/testfile_videoonly_20sec.flv",
"--vno",
"--acodec",
"libmp3lame",
"--asamplerate",
"22050",
"fixtures/testfile_wmv3_wmav2_bad_audio_timestamps.wmv",
"--icontainerformat",
"s16le",
"--iasamplerate",
"16000",
"--iachannels",
"1",
"fixtures/test.raw",
"--containerformat",
"flv",
"--acodec",
"nellymoser",
"--asamplerate",
"22050",
"--achannels",
"1",
"--abitrate",
"64000",
"--aquality",
"0",
"--vcodec",
"flv",
"--vscalefactor",
!testResampling ? "1.0" : "2.0",
"--vbitrate",
"300000",
"--vquality",
"0",
"fixtures/testfile.flv",