2011-09-16 95 views
0

如果我期待通過右擊並選擇屬性Flash視頻的屬性,它告訴我,這段視頻是:如何知道與xuggle一個視頻是一個Flash視頻?

類型:Flash視頻(視頻/ X-FLV)

我真的想在我使用的java庫中有相同的結果叫做xuggle。

如何識別所有帶有xuggle的flv視頻?

回答

0

首先我們創建一個Xuggler容器對象:

IContainer container = IContainer.make(); 

// open the video 
container.open("myvideo.flv", IContainer.Type.READ, null); 

這將返回短名稱,比如 「FLV」:

String myvideoFormat = container.getContainerFormat().getInputFormatShortName(); 

這將返回長的名字:

String myvideoFormat = container.getContainerFormat().getInputFormatLongName(); 
相關問題