不用ffmpeg实现获取视频缩略图,该如何处理

不用ffmpeg实现获取视频缩略图
网上的都是使用ffmpeg来实现的。

求不用ffmpeg实现获取视频缩略图的纯java代码

------解决方案--------------------
opencv for java?

c++,.net 都可以的 java 的还没上过

------解决方案--------------------
视频封装类:
public class Video {
private String flash;
private String pic;
private String time;
public String getFlash() {
return flash;
}
public void setFlash(String flash) {
this.flash = flash;
}
public String getPic() {
return pic;
}
public void setPic(String pic) {
this.pic = pic;
}
public String getTime() {
return time;
}
public void setTime(String time) {
this.time = time;
}
}

获取视频地址 缩略图 及 时长

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

public class VideoUtil {

/**
* 获取视频信息
* @param url
* @return
*/
public static Video getVideoInfo(String url){
Video video = new Video();

if(url.indexOf("v.youku.com")!=-1){
try {
video = getYouKuVideo(url);
} catch (Exception e) {
video = null;
}
}else if(url.indexOf("tudou.com")!=-1){
try {
video = getTudouVideo(url);
} catch (Exception e) {
video = null;
}
}else if(url.indexOf("v.ku6.com")!=-1){
try {
video = getKu6Video(url);
} catch (Exception e) {
video = null;
}
}else if(url.indexOf("6.cn")!=-1){
try {
video = get6Video(url);
} catch (Exception e) {
video = null;
}
}else if(url.indexOf("56.com")!=-1){
try {
video = get56Video(url);
} catch (Exception e) {
video = null;
}
}

return video;
}


/**
* 获取优酷视频
* @param url 视频URL
*/
public static Video getYouKuVideo(String url) throws Exception{
Document doc = getURLContent(url);

/**
*获取视频缩略图 
*/
String pic = getElementAttrById(doc, "s_sina", "href");
int local = pic.indexOf("pic=");
pic = pic.substring(local+4);

/**
* 获取视频地址
*/
String flash = getElementAttrById(doc, "link2", "value");

/**
* 获取视频时间
*/
String time = getElementAttrById(doc, "download", "href");
String []arrays = time.split("\\|");
time = arrays[4];

Video video = new Video();
video.setPic(pic);
video.setFlash(flash);
video.setTime(time);

return video;
}


/**
* 获取土豆视频
* @param url 视频URL
*/
public static Video getTudouVideo(String url) throws Exception{
Document doc = getURLContent(url);
String content = doc.html();
int beginLocal = content.indexOf("<script>document.domain");
int endLocal = content.indexOf("</script>");
content = content.substring(beginLocal, endLocal);

/**
* 获取视频地址
*/