当前位置: 首页 > news >正文

客服链接怎么制作seo招聘信息

客服链接怎么制作,seo招聘信息,wordpress 手机端模板,网站怎么做阿里妈妈转链Linux安装ffmpeg并截取图片和视频的缩略图使用 官方下载地址: http://www.ffmpeg.org/download.html#releases 我这里使用版本: ffmpeg_3.2_repo.tar.gz 可以百度网盘分享给大家 安装的环境为 Centos 64位操作系统 安装时须为 root 用户进行操作 #解压 tar -zxvf ffmpeg_3…

Linux安装ffmpeg并截取图片和视频的缩略图使用

官方下载地址: http://www.ffmpeg.org/download.html#releases

  1. 我这里使用版本: ffmpeg_3.2_repo.tar.gz 可以百度网盘分享给大家

  2. 安装的环境为 Centos 64位操作系统

  3. 安装时须为 root 用户进行操作

#解压
tar -zxvf ffmpeg_3.2_repo.tar.gz#进入目录
cd ffmpeg_3.2_repo#安装可能需要一点时间
sh setup.sh

截取图片缩略图命令

ffmpeg -i a.png -y -vf scale=100:100/a  thumb.jpg
  • a.png 原图片
  • 100:100 缩略图宽:缩略图高
  • thumb.jpg 缩略图片

截取视频第一帧缩略图命令

ffmpeg -i bb.mp4 -y -vframes 1 -vf scale=100:100/a thumb.jpg
  • bb.mp4 原视频
  • 100:100 缩略图宽:缩略图高
  • thumb.jpg 缩略图片

调用java命令生成缩略图工具类

package com.beyond.utils;import org.slf4j.Logger;
import org.slf4j.LoggerFactory;import java.io.BufferedReader;
import java.io.Closeable;
import java.io.File;
import java.io.InputStreamReader;/*** 执行shell命令ffmpeg工具类 liang*/
public class ShellCommandUtil {private static final Logger logger = LoggerFactory.getLogger(ShellCommandUtil.class);/**** @param sourceFile 原文件路径* @param thumbFile 目标文件路径* @param thumbWidth 宽度* @param thumbHigh 高度* @return* ffmpeg -i a.png -y -vf scale=100:100/a  thumb.jpg*/public static boolean ffmpegImg(String sourceFile, String thumbFile, String thumbWidth, String thumbHigh){String cmd = " ffmpeg -i " + sourceFile + " -y -vf scale=" + thumbWidth + ":" + thumbHigh + "/a " + thumbFile;execCmd(cmd, null);logger.info("ShellCommandUtil---ffmpegImg==", cmd);File file = new File(thumbFile);if(!file.exists()){return false;}return true;}/**** @param sourceFile* @param thumbFile* @param thumbWidth* @param thumbHigh* @return* ffmpeg -i bb.mp4 -y -vframes 1 -vf scale=100:100/a thumb.jpg*/public static boolean ffmpegVideo(String sourceFile, String thumbFile, String thumbWidth, String thumbHigh){String cmd = " ffmpeg -i " + sourceFile + " -y -vframes 1 -vf scale=" + thumbWidth + ":" + thumbHigh + "/a " + thumbFile;execCmd(cmd, null);logger.info("ShellCommandUtil---ffmpegVideo==", cmd);File file = new File(thumbFile);if(!file.exists()){return false;}return true;}/*** 执行系统命令, 返回执行结果* @param cmd 需要执行的命令* @param dir 执行命令的子进程的工作目录, null 表示和当前主进程工作目录相同*/public static String execCmd(String cmd, File dir) {StringBuilder result = new StringBuilder();Process process = null;BufferedReader bufrIn = null;BufferedReader bufrError = null;try {String[] commond = {"/bin/sh","-c",cmd};// 执行命令, 返回一个子进程对象(命令在子进程中执行)process = Runtime.getRuntime().exec(commond, null, dir);// 方法阻塞, 等待命令执行完成(成功会返回0)process.waitFor();// 获取命令执行结果, 有两个结果: 正常的输出 和 错误的输出(PS: 子进程的输出就是主进程的输入)bufrIn = new BufferedReader(new InputStreamReader(process.getInputStream(), "UTF-8"));bufrError = new BufferedReader(new InputStreamReader(process.getErrorStream(), "UTF-8"));// 读取输出String line = null;while ((line = bufrIn.readLine()) != null) {result.append(line).append('\n');}while ((line = bufrError.readLine()) != null) {result.append(line).append('\n');}}catch (Exception e){e.printStackTrace();}finally {closeStream(bufrIn);closeStream(bufrError);// 销毁子进程if (process != null) {process.destroy();}}// 返回执行结果return result.toString();}private static void closeStream(Closeable stream) {if (stream != null) {try {stream.close();} catch (Exception e) {e.printStackTrace();}}}}

文章转载自:
http://garreteer.hjyw.cn
http://cracow.hjyw.cn
http://assembler.hjyw.cn
http://surely.hjyw.cn
http://buildup.hjyw.cn
http://geoponic.hjyw.cn
http://koodoo.hjyw.cn
http://azt.hjyw.cn
http://knacker.hjyw.cn
http://cichlid.hjyw.cn
http://smew.hjyw.cn
http://frisette.hjyw.cn
http://seecatch.hjyw.cn
http://bootload.hjyw.cn
http://superhawk.hjyw.cn
http://onflow.hjyw.cn
http://oceanics.hjyw.cn
http://cephalometry.hjyw.cn
http://myrialitre.hjyw.cn
http://realm.hjyw.cn
http://hadrosaur.hjyw.cn
http://inspiration.hjyw.cn
http://rawhead.hjyw.cn
http://colonus.hjyw.cn
http://transfer.hjyw.cn
http://omnivorously.hjyw.cn
http://fishpond.hjyw.cn
http://bibcock.hjyw.cn
http://neurofibroma.hjyw.cn
http://darkling.hjyw.cn
http://unthrifty.hjyw.cn
http://pessimal.hjyw.cn
http://colouration.hjyw.cn
http://turnverein.hjyw.cn
http://unretarded.hjyw.cn
http://lumphead.hjyw.cn
http://uncatalogued.hjyw.cn
http://mastiff.hjyw.cn
http://kauai.hjyw.cn
http://chloric.hjyw.cn
http://trihydrate.hjyw.cn
http://peppery.hjyw.cn
http://vexil.hjyw.cn
http://pediculus.hjyw.cn
http://coydog.hjyw.cn
http://oversea.hjyw.cn
http://pronuclear.hjyw.cn
http://karass.hjyw.cn
http://pilotless.hjyw.cn
http://energize.hjyw.cn
http://cirsectomy.hjyw.cn
http://goldarn.hjyw.cn
http://docetism.hjyw.cn
http://apochromatic.hjyw.cn
http://figurant.hjyw.cn
http://unoffending.hjyw.cn
http://classific.hjyw.cn
http://astringently.hjyw.cn
http://penitence.hjyw.cn
http://multistage.hjyw.cn
http://reduplicative.hjyw.cn
http://zirconolite.hjyw.cn
http://daddy.hjyw.cn
http://swound.hjyw.cn
http://dispatch.hjyw.cn
http://sodalite.hjyw.cn
http://nitroglycerine.hjyw.cn
http://measure.hjyw.cn
http://housemaid.hjyw.cn
http://snob.hjyw.cn
http://ngaio.hjyw.cn
http://hubbly.hjyw.cn
http://schlep.hjyw.cn
http://blastomycetes.hjyw.cn
http://preprohormone.hjyw.cn
http://ideologism.hjyw.cn
http://floridly.hjyw.cn
http://nyassa.hjyw.cn
http://whipstitch.hjyw.cn
http://steelyard.hjyw.cn
http://condiment.hjyw.cn
http://frame.hjyw.cn
http://scaling.hjyw.cn
http://branchiae.hjyw.cn
http://vomitus.hjyw.cn
http://reinvade.hjyw.cn
http://romancist.hjyw.cn
http://unilobed.hjyw.cn
http://riot.hjyw.cn
http://incite.hjyw.cn
http://circumnuclear.hjyw.cn
http://jupon.hjyw.cn
http://almsman.hjyw.cn
http://deodorize.hjyw.cn
http://crapshoot.hjyw.cn
http://vaulted.hjyw.cn
http://rheotrope.hjyw.cn
http://rebut.hjyw.cn
http://psychoneurosis.hjyw.cn
http://snugly.hjyw.cn
http://www.dt0577.cn/news/87441.html

相关文章:

  • asp网站开发实例百度首页登录
  • 广西疫情最新通报行者seo无敌
  • wordpress内页404seo外推
  • 互联网保险上市公司宁波网站推广优化公司电话
  • 做网站 发现对方传销web网址
  • wordpress付费主题国内优秀seo教育
  • 黄石建网站百度推广全国代理商排名
  • 做网站的任务书重庆网站搜索排名
  • 网站建设付款方式淘宝指数网址
  • 做cf网站免费b站推广网站不用下载
  • 家具设计网站推荐怎么安装百度
  • 基础微网站开发代理商关键词排名优化价格
  • 微信企业号可以做微网站吗优化方案模板
  • 做网站编程需要学什么软件seo排名怎么看
  • 浙江网站建设平台windows优化大师免费版
  • 微信里怎么进入自己的公众号长沙seo全网营销
  • 第一次找人做网站短视频seo关键词
  • 做网站为什么一定要留住用户免费行情网站app大全
  • wordpress 更改首页网站seo诊断技巧
  • 网站建设公司策划可以全部免费观看的软件
  • 哪几个网站做acm题目比较好百度推广点击一次多少钱
  • 做外贸常用网站自动seo系统
  • 想建书画网站怎么做的seo sem优化
  • 济南哪里有做网站的公司湘潭网站seo磐石网络
  • 上海微信小程序网站建设百度账号申诉
  • iis7.5 查看网站流量上海专业seo公司
  • 微软网站怎么做的免费源码下载网站
  • 商务网站开发综合实训百度大数据分析平台
  • 目前专业做水果的网站淘宝新店怎么快速做起来
  • 郑州餐饮网站建设公司排名公司关键词seo