我想.ts从服务器下载流并将它们本地存储在 android 手机中。我能够检索.m3u8文件,但不知道如何实际下载这些块。为什么我要问这个问题,因为这些 .ts 块是1950数字,不知道如何一次下载它们并转换为单个文件。这是它的.m3u8样子:#EXTM3U#EXT-X-VERSION:3#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subtitles",NAME="English",AUTOSELECT=YES,DEFAULT=YES,LANGUAGE="en",URI="master_subtitle.m3u8"#EXT-X-INDEPENDENT-SEGMENTS#EXT-X-STREAM-INF:BANDWIDTH=96632,AVERAGE-BANDWIDTH=82657,CODECS="avc1.42c015,mp4a.40.5",RESOLUTION=250x140,SUBTITLES="subtitles",FRAME-RATE=10.000master_Layer1.m3u8#EXT-X-STREAM-INF:BANDWIDTH=167696,AVERAGE-BANDWIDTH=141886,CODECS="avc1.42c015,mp4a.40.5",RESOLUTION=320x180,SUBTITLES="subtitles",FRAME-RATE=15.000master_Layer2.m3u8#EXT-X-STREAM-INF:BANDWIDTH=329376,AVERAGE-BANDWIDTH=280906,CODECS="avc1.42c015,mp4a.40.2",RESOLUTION=320x180,SUBTITLES="subtitles",FRAME-RATE=25.000master_Layer3.m3u8#EXT-X-STREAM-INF:BANDWIDTH=598968,AVERAGE-BANDWIDTH=505629,CODECS="avc1.42c01e,mp4a.40.2",RESOLUTION=416x234,SUBTITLES="subtitles",FRAME-RATE=25.000master_Layer4.m3u8#EXT-X-STREAM-INF:BANDWIDTH=1102432,AVERAGE-BANDWIDTH=914396,CODECS="avc1.42c01e,mp4a.40.2",RESOLUTION=640x360,SUBTITLES="subtitles",FRAME-RATE=25.000master_Layer5.m3u8 这就是说明块故事的文件的样子:#EXTM3U#EXT-X-VERSION:3#EXT-X-TARGETDURATION:4#EXT-X-MEDIA-SEQUENCE:1#EXT-X-PLAYLIST-TYPE:VOD#EXTINF:4.000,master_Layer1_00001.ts#EXTINF:4.000,master_Layer1_00002.ts#EXTINF:4.000,master_Layer1_00003.ts#EXTINF:4.000,master_Layer1_00004.ts#EXTINF:4.000,master_Layer1_00005.ts#EXTINF:4.000,master_Layer1_00006.ts#EXTINF:4.000,master_Layer1_00007.ts#EXTINF:4.000,master_Layer1_00008.ts#EXTINF:4.000,master_Layer1_00009.ts#EXTINF:4.000,master_Layer1_00010.ts...#EXTINF:0.600,master_Layer1_02150.ts#EXT-X-ENDLIST 下载网址类似于 https://abcd.com/path1/path2/master_Layer*.ts现在我需要知道如何一次下载这些块并将它们转换为单个文件包,例如.mp4?
添加回答
举报
0/150
提交
取消