生成iphone所需m3u8 和ts 文件方案

生成iphone所需m3u8 和ts 文件方案,iphone m3u8 ts,iphone m3u8 ts,iphone m3u8 ts

--------iphone 视频转码----m3u8---
D:\encoding_tools\iphone\newffmpeg\bin\ffmpeg.exe -i D:\cnliveWorkSpace\addLogoWmv/00/21/21/58/00212158_1106141905_0client_iphonelxm.mpg -f mpegts -acodec libmp3lame -ab 64k -s 320x240 -vcodec libx264 -b 220K -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16  -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 200K -maxrate 240K -bufsize 240K -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect 320:240 -g 30 -async 2 - | D:\encoding_tools\iphone\segmenter-r7-with-audio-only\segmenter.exe - 11 D:/0cfwyae2imt054bv0tsmv9na1kg3t7myw0/0cfwyae2imt054bv0tsmv9na1kg3t7myw0 D:/0cfwyae2imt054bv0tsmv9na1kg3t7myw0/0cfwyae2imt054bv0tsmv9na1kg3t7myw0.m3u8 0cfwyae2imt054bv0tsmv9na1kg3t7myw0
-----------------------

 

 

 


-------iphone音频处理-------
第一步:(从视频中分离出音频文件)
mencoder -oac lavc -lavcopts acodec=ac3:abitrate=64 -srate 32000 -ovc copy -of rawaudio E:/01-03.mpg -o  E:/01-03.aac


第二步:(把音频文件转码m3u8文件)
ffmpeg -i E:/video1.aac -f mpegts -acodec libmp3lame -ab 64k - | "D:\encoding_tools\iphone\segmenter-r7-with-audio-only\segmenter.exe" - 11  E:/39-40/video1/m/video1  E:/39-40/video1/m/video1.m3u8 video1

 


-------android mp4转码-----------
第一步:转码视频mp4文件
D:\encoding_tools\iphone\MPlayer\mencoder.exe -sws 9 -vf scale=320:240,harddup,unsharp=l3x3:0.7 -oac faac -faacopts br=32:mpeg=4:object=2:raw -ovc x264 -x264encopts bitrate=224:no8x8dct:nocabac:global_header:partitions=all:trellis=1:vbv_maxrate=768:vbv_bufsize=2000:level_idc=12:threads=2 -of lavf -lavfopts format=mp4 -ofps 24000/1001 D:\input.mpg -o D:\0cfwyae2imt054bv0tsmv9na1kg3t7myw0_mp4\0cfwyae2imt054bv0tsmv9na1kg3t7myw0.mp4

 

第二步:

D:\encoding_tools\MP4Box\MP4Box.exe -hint D:\0cfwyae2imt054bv0tsmv9na1kg3t7myw0_mp4\0cfwyae2imt054bv0tsmv9na1kg3t7myw0.mp4
----------------------------------

你可能感兴趣的:(m3u8)