上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 58 下一页
  2019年11月12日
摘要: import com.google.common.collect.ImmutableList; import net.bramp.ffmpeg.builder.FFmpegBuilder; import java.util.ArrayList; import java.util.List; /*** * 适用于hls协议的构造器,hls协议相关参数 * @author dqk */ ... 阅读全文
posted @ 2019-11-12 16:48 你不知道的浪漫 阅读(452) 评论(0) 推荐(0) 编辑
摘要: /*** * 转换请求hash,根据转换模式计算hash,防止重复发送请求,浪费服务器资源(内存、cpu、文件系统等) * @param mode * @param data * @return */ @PerformanceMonitor default String computeHash(ConversionMode mode,byte[]data) { byte[] prefix = mo 阅读全文
posted @ 2019-11-12 16:24 你不知道的浪漫 阅读(302) 评论(0) 推荐(0) 编辑
摘要: @Configuration public interface IAbstractConvertStrategy { CacheService getCacheService(); default boolean existedMedia(String uuid) { //重复的解析请求,丢弃 return getCacheS... 阅读全文
posted @ 2019-11-12 16:22 你不知道的浪漫 阅读(277) 评论(0) 推荐(0) 编辑
摘要: package com.demo.uitls; import java.util.Random; /** * 按一定的概率生成一个随机的N位(N>=3)密码,必须由字母数字特殊符号组成,三者缺一不可 * <ul> * <li>数字: 0-9</li> * <li>字母: A-Za-z</li> * 阅读全文
posted @ 2019-11-12 15:31 你不知道的浪漫 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-11-12 15:17 你不知道的浪漫 阅读(683) 评论(0) 推荐(0) 编辑
摘要: 最终生成结果 前端代码: 2020-1-7日更新 方法补充:getCacheService().setCacheMap(mediaId, mapping); saveSegments方法 savePlayList方法 阅读全文
posted @ 2019-11-12 13:22 你不知道的浪漫 阅读(5113) 评论(13) 推荐(1) 编辑
摘要: 保存到文件: 其他方法: 代码来源:https://stackoverflow.com/questions/37281430/how-to-convert-pcm-file-to-wav-or-mp3 阅读全文
posted @ 2019-11-12 10:38 你不知道的浪漫 阅读(873) 评论(0) 推荐(0) 编辑
摘要: 转换成16KHz采样率(含文件头) 使用方法: 重采样,不保留文件头(通常用于语音识别): 重采样2(不含文件头): 参考来源: https://stackoverflow.com/questions/15410725/java-resample-wav-soundfile-without-thir 阅读全文
posted @ 2019-11-12 09:24 你不知道的浪漫 阅读(3540) 评论(0) 推荐(0) 编辑
  2019年11月11日
摘要: java sound resource SampleRateconverter.java(接近于官方源码) 输入目标采样率,输入文件,输出文件。食用方便;p 比如 SampleRateConverter源码: 笔者在JDK1.8下面测试发现,目标编码还支持PCM_FLOAT(即pcm_f32le) 阅读全文
posted @ 2019-11-11 16:52 你不知道的浪漫 阅读(1870) 评论(0) 推荐(0) 编辑
摘要: 使用信息 StdAudio.java 阅读全文
posted @ 2019-11-11 09:01 你不知道的浪漫 阅读(2622) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 58 下一页