我想写像Coconut这样的soap webservice
Coconut::Job.create(
"api_key" => "k-api-key",
"vars" => {"cdn" => "s3://accesskey:secretkey@mybucket", "vid" => 1234},
"source" => "mysite.com/media/video.mp4",
"outputs" => {
"mp4" => "$cdn/videos/$vid/video.mp4",
"webm" => "$cdn/videos/$vid/video.webm",
"hls" => "$cdn/hls/$vid/video.m3u8",
"dash" => "$cdn/dash/$vid/video.mpd",
"jpg:300x" => "$cdn/previews/$vid/thumbs_%1d.jpg, number=3",
"gif:150x" => "$cdn/previews/$vid/animated.gif"
}
)
现在我想写一些这样的东西,但我有两个想法选择 java 或 PHP 之类的东西,因为我的原始代码是在 PHP 中,似乎最常用的库是 ffmpeg。对于 php 我找到了这个库https://github.com/PHP-FFMpeg/PHP-FFMpeg 对于 java 我找到了这个库:JAVE、JMF、SMF。
如果有人告诉我哪种语言和哪个库以及为什么使用该库(速度或功能或...),我将不胜感激