摘要:
List commend = new java.util.ArrayList();
commend.add(ffmpeg硬盘路径);
commend.add("-i");
commend.add(转码文件硬盘路径);
commend.add("-y");
commend.add("-ar");
commend.add("22050");
commend.add("-s");
commend.add("480*360");
commend.add("-b");
commend.add("1000");
commend.add("-qscale");
commend.add("4");
commend.add(输入文件路径); 阅读全文
摘要:
BufferedImage bufferedImage = ImageIO.read(inFile);
BufferedImage bufferedChange=new BufferedImage(width, heigth, BufferedImage.TYPE_INT_BGR);
Graphics2D g = (Graphics2D) bufferedChange.getGraphics();
g.drawImage(bufferedImage, 0, 0, 256, 256, null);
g.dispose();
bufferedChange.flush();
ImageIO.write(bufferedChange, "JPEG", outFile); 阅读全文