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