wmv to flv

[url]http://www.coderanch.com/t/329229/java/java/Convert-Video-SWF-FLV-format[/url]

I've also been told that ffmpeg (encoding) and flvtool2 (metadata) work well together. Again, I've no first hand experience with them, but maybe they're something to get you started.



[url]http://forum.semiologic.com/discussion/484/[/url]

[b][color=red]What's the above is useless , begin Java Audio Vedio Encode , A java wrapper called JAV, great job.[/color][/b]

[url]http://www.sauronsoftware.it/projects/jave/index.php[/url]

[color=orange][b]Demo programme:[/b][/color]

package com.test;

import it.sauronsoftware.jave.AudioAttributes;
import it.sauronsoftware.jave.Encoder;
import it.sauronsoftware.jave.EncoderException;
import it.sauronsoftware.jave.EncodingAttributes;
import it.sauronsoftware.jave.InputFormatException;
import it.sauronsoftware.jave.VideoAttributes;
import it.sauronsoftware.jave.VideoSize;

import java.io.File;

public class Test {

public static void main(String[] args) {
File source = new File("C:\\jav-movie\\test.avi");
File target = new File("C:\\jav-movie\\test.flv");
AudioAttributes audio = new AudioAttributes();
audio.setCodec("libmp3lame");
audio.setBitRate(new Integer(64000));
audio.setChannels(new Integer(1));
audio.setSamplingRate(new Integer(22050));
VideoAttributes video = new VideoAttributes();
video.setCodec("flv");
video.setBitRate(new Integer(160000));
video.setFrameRate(new Integer(15));
video.setSize(new VideoSize(400, 300));
EncodingAttributes attrs = new EncodingAttributes();
attrs.setFormat("flv");
attrs.setAudioAttributes(audio);
attrs.setVideoAttributes(video);
Encoder encoder = new Encoder();
try {
encoder.encode(source, target, attrs);
} catch (Exception e) {
// TODO Auto-generated catch block
System.out.println("Exception:" + e);
e.printStackTrace();
}
}
}



[color=orange][b]broadcast tool:[/b][/color]

Riva FLV Encoder
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值