Open wnpllrzodiac opened 5 years ago
sample clip as follows:
http://iloveyaya.ga:9108/test/tmp/cut_good.mp4
BTW, stream index base on 0 or 1, and based on whole stream index or a/v seperate. e.g. one clip has v0, a0, a1, a2 selection v0+a0 should be v1-a1 ? selection v0+a1+a2 should be v1-a2-a3 ?
Works fine for me -
# curl localhost:8001/local/hls/content/cut_good.mp4/master.m3u8
#EXTM3U
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio0",NAME="English",LANGUAGE="en",AUTOSELECT=YES,DEFAULT=YES,CHANNELS="2",URI="http://localhost:8001/local/hls/content/cut_good.mp4/index-a1.m3u8"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio0",NAME="中文; 汉语; 华语",LANGUAGE="zh",AUTOSELECT=NO,DEFAULT=NO,CHANNELS="2",URI="http://localhost:8001/local/hls/content/cut_good.mp4/index-a2.m3u8"
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2170204,RESOLUTION=1280x720,FRAME-RATE=24.390,CODECS="avc1.640029,mp4a.40.2",AUDIO="audio0"
http://localhost:8001/local/hls/content/cut_good.mp4/index-v1-a1.m3u8
#EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=84772,RESOLUTION=1280x720,CODECS="avc1.640029",URI="http://localhost:8001/local/hls/content/cut_good.mp4/iframes-v1-a1.m3u8"
Also verified with a player that selecting each audio track gives the expected language. The master returns only the first Chinese track since it can't output more than one per language.
Regarding the indexes, they are 1-based, and they are counted separately for video/audio.
Maybe duplicated problem as #1041
one more question, does nginx-vod-module support multi track selection? e.g. tracks/v1-a1-a2-a3 for 1 video and 3 audio tracks tracks/v1-v2-a1-a2 for 2 video and 2 audio tracks
In requests such as master.m3u8/manifest.mpd - yes, this will limit the set of tracks used in the manifest (the default is to take all). However, the module does not generate TS/fMP4 with more than one audio/video track. If you try to call index-a1-a2.m3u8 you will get an error.
The master returns only the first Chinese track since it can't output more than one per language.
What is the reason for such a limitation, one track per language? It is very necessary to output several more tracks for one language, is it impossible? Is there any way to customize this?
http://1.2.3.4:9880/hls/cut_good.mp4/tracks/v1-a2/index.m3u8 no audio track found
But source clip has 1 video track and 4 audio track ffprobe cut_good.mp4