摘要:
import com.google.common.collect.ImmutableList; import net.bramp.ffmpeg.builder.FFmpegBuilder; import java.util.ArrayList; import java.util.List; /*** * 适用于hls协议的构造器,hls协议相关参数 * @author dqk */ ... 阅读全文
摘要:
/*** * 转换请求hash,根据转换模式计算hash,防止重复发送请求,浪费服务器资源(内存、cpu、文件系统等) * @param mode * @param data * @return */ @PerformanceMonitor default String computeHash(ConversionMode mode,byte[]data) { byte[] prefix = mo 阅读全文
摘要:
@Configuration public interface IAbstractConvertStrategy { CacheService getCacheService(); default boolean existedMedia(String uuid) { //重复的解析请求,丢弃 return getCacheS... 阅读全文
摘要:
package com.demo.uitls; import java.util.Random; /** * 按一定的概率生成一个随机的N位(N>=3)密码,必须由字母数字特殊符号组成,三者缺一不可 * <ul> * <li>数字: 0-9</li> * <li>字母: A-Za-z</li> * 阅读全文
摘要:
With the release of Spring 4.2 version, Three new classes have been introduced to handle Requests Asynchronously of the Servlet Thread. Which are; Res 阅读全文
摘要:
最终生成结果 前端代码: 2020-1-7日更新 方法补充:getCacheService().setCacheMap(mediaId, mapping); saveSegments方法 savePlayList方法 阅读全文
摘要:
保存到文件: 其他方法: 代码来源:https://stackoverflow.com/questions/37281430/how-to-convert-pcm-file-to-wav-or-mp3 阅读全文
摘要:
转换成16KHz采样率(含文件头) 使用方法: 重采样,不保留文件头(通常用于语音识别): 重采样2(不含文件头): 参考来源: https://stackoverflow.com/questions/15410725/java-resample-wav-soundfile-without-thir 阅读全文