Install ffmpeg, convert the video format to m3u8, compress the video, and ffmpegm3u8

Source: Internet
Author: User

Install ffmpeg, convert the video format to m3u8, compress the video, and ffmpegm3u8

# Ffmpeg
Install ffmpeg, convert the video format to m3u8, and compress the video

# Ffmpeg Installation
Direct installation:

Apt-get install ffmpeg

Run 'ffmpeg 'to check whether the version number is displayed to determine whether the installation is successful.

If the full-ffmpeg.sh fails to run

/Full-ffmpeg.sh

# Convert ffmpeg to video format m3u8

Ffmpeg-I test.mp4-codec: v libx264-codec: a mp3-map 0-f ssegment-segment_format mpegts-segment_list playlist. m3u8-segment_time 10 out % 03d. ts

-I: Introduce the video source.
-Codec: v: Video Format
-Codec: a: audio format
Segment_format: to specify the output format as mpegts
Segment_list: Specifies the name of the output list file.
Segment_time: Slice Length
See:

# Ffmpeg compressed video

Ffmpeg-I test.mp4-vcodec libx264-preset fast-crf 24-y-vf "scale = 1920:-1"-acodec libmp 3lame-AB 128 k 12.min.mp4

See:


#### Reference:
<Http://elkpi.com/topics/ffmpeg-f-hls.html/> <br>
<Http://www.cnblogs.com/top5/archive/2009/12/30/1636352.html/>

 

Github address: https://github.com/saysmy/ffmpeg

 

Related Article

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.