Video transcoding: ffmpeg implementation of video transcoding under Linux

Source: Internet
Author: User
Using the shell to quickly install a video transcoding device

#!/bin/bash#1、保证系统可以连到外网,需要下载安装包和依赖包#2、依赖gcc编译器#3、测试命令:ffmpeg -i test.avi out.mp4set -effmDir="/usr/myapp"ffmVer="ffmpeg-3.4.1"yasmVer="yasm-1.3.0"mkdir $ffmDir -pv yum install wget gcc -ycd /usr/local/srcwget http://ffmpeg.org/releases/ffmpeg-3.4.1.tar.bz2wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gztar xf ffmpeg-3.4.1.tar.bz2 tar xf yasm-1.3.0.tar.gz cd $yasmVer./configure && make && make installcd ../$ffmVer./configure --enable-shared --prefix=$ffmDir/ffmpeg && make && make installecho "$ffmDir/ffmpeg/lib" > /etc/ld.so.conf.d/ffmpeg.confldconfigcd $ffmDir/ffmpeg/bin && lsecho -e "\033[31m Usage:\n\t./ffmpeg -i test.avi out.mp4 \033[0m"

Video transcoding: ffmpeg implementation of video transcoding under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.