我遇到了一个问题,我的.m38u清单文件中最后一个 TS 段的#EXTINF值不正确。我正在编码的视频文件最后通常有毫秒的余数(IE 1:00.245)。我的段大小是 10 秒,但是当我对文件进行编码时,它基本上是将持续时间除以 10,而 lsat 段是一个微小的毫秒段,但它的#EXTINF值显示 10 秒,而它应该是 0.255。这会导致问题,因为阅读此清单的玩家认为剪辑的长度是 70 秒而不是 60 秒。我的清单如下所示:
#EXTM3U
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-TARGETDURATION:10
#EXTINF:10,
outdoor_activities_hls_layer0_2000000_0.ts
#EXTINF:10,
outdoor_activities_hls_layer0_1000000_1.ts
#EXTINF:10,
outdoor_activities_hls_layer0_1000000_2.ts
#EXTINF:10,
outdoor_activities_hls_layer0_1000000_3.ts
#EXTINF:10,
outdoor_activities_hls_layer0_1000000_4.ts
#EXTINF:10,
outdoor_activities_hls_layer0_1000000_5.ts
#EXTINF:10,
outdoor_activities_hls_layer0_1000000_6.ts
#EXTINF:10,
outdoor_activities_hls_layer0_1000000_7.ts
#EXTINF:10,
outdoor_activities_hls_layer0_1000000_8.ts
#EXTINF:10,
outdoor_activities_hls_layer0_1000000_9.ts
#EXT-X-ENDLIST
关于如何解决这个问题的任何想法?