澳门银河网上官方赌场_老品牌值得信赖

ITKeyword,专注技术干货聚合推荐

注册 | 登录

video - FFmpeg hls from multiple files

itPublisher 分享于

2020腾讯云双十一活动,全年最低!!!(领取3500元代金券),
地址https://cloud.tencent.com/act/cps/redirect?redirect=1073

2020阿里云最低价产品入口,含代金券(新老用户有优惠),
地址https://www.aliyun.com/minisite/goods

up vote 0 down vote favorite 1 I am trying to create an HLS playlist with multiple audio streams. I have the following files: - videoHD.mp4

- videoSD.mp4

- audioEN.mp4

- audioFR.mp4

- audioIT.mp4

How would I transmux these all together in an ffmpeg command to create an HLS playlist? video ffmpeg hls
  |
  this question asked Jun 26 '15 at 5:22 David542 22.8k 63 174 335



 |  1 Answers

up vote 1 down vote ---Accepted---Accepted---Accepted---

According to the Apple docs you don't mux them all together and you can't use a single HLS playlist. You need playlists for each video and each audio track (eg: hd/playlist.m3u8, sd/playlist.m3u8, en/playlist.m3u8 etc.) and a master playlist to link them all together. The master playlist controls the playback. Here's an example with two video qualities and three audio tracks from the docs: #EXTM3U

#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",LANGUAGE="eng",NAME="English",AUTOSELECT=YES, \

DEFAULT=YES,URI="eng/prog_index.m3u8"

#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",LANGUAGE="fre",NAME="Français",AUTOSELECT=YES, \

DEFAULT=NO,URI="fre/prog_index.m3u8"

#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",LANGUAGE="sp",NAME="Espanol",AUTOSELECT=YES, \

DEFAULT=NO,URI="sp/prog_index.m3u8"

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=195023,CODECS="avc1.42e00a,mp4a.40.2",AUDIO="audio"

lo/prog_index.m3u8

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=591680,CODECS="avc1.42e01e,mp4a.40.2",AUDIO="audio"

hi/prog_index.m3u8

ffmpeg didn't support variant playlists the last time I checked so you need to create each alternate playlist individually and manually create the master playlist. Of course for all this to work the individual streams must be aligned or you'll have a lot of synchronization issues. You can try using ffmpeg with multiple I/O: ffmpeg -i input1 -i input2 \

-map … -acodec … -vcodec … output1 \

-map … -acodec … -vcodec … output2 \

-map … -acodec … -vcodec … output3

each output being of type HLS. Sources: About HTTP Live Streaming Technical Note TN2288 FFmpeg - Creating Multiple Outputs
  |
  this answer answered Jul 6 '15 at 9:48 aergistal 14.1k 3 17 41



 | 

up vote 0 down vote favorite 1 I am trying to create an HLS playlist with multiple audio streams. I have the following files: - videoHD.mp4

- videoSD.mp4

- audioEN.mp4<


相关阅读排行


相关内容推荐

最新文章

×

×

请激活账号

为了能正常使用评论、编辑功能及以后陆续为用户提供的其他产品,请激活账号。

您的注册邮箱: 修改

重新发送激活邮件 进入我的邮箱

如果您没有收到激活邮件,请注意检查垃圾箱。

澳门银河网上官方赌场 <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <文本链> <文本链> <文本链> <文本链> <文本链> <文本链>