Edge无法解析AMS v3生成的VTT文件 [英] Edge is not able to parse VTT file generated by AMS v3

查看:94
本文介绍了Edge无法解析AMS v3生成的VTT文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


AMS v3生成的VTT在vtt文件的顶部有一些"NOTE"。 Edge和IE11浏览器正在抱怨它。它抛出解析错误。相同的VTT文件在Chrome和Firefox中运行良好。


MEDIA12608:WebVTT文本跟踪:时间戳签名应为' - >'。 hr = 80004004. 




如果我们删除从顶部开始,下面的"注意",相同的vtt在Edge和IE11上工作正常。




注意


持续时间:" 00:10:07.0110000"


语言:en-US


注意信心:0.911574065685272

解决方案

 


这是一个已知的错误Edge和IE11的旧VTT解析器。   这些版本中的VTT解析器不支持WebVTT规范中的多行注释格式。 (可能在以后的版本中添加)




注释的注释类型是WebVTT规范第1.5节中允许的注释类型 - 并且视频索引器输出正确使用它 - 但Edge和IE上的内置解析器不处理
多行注释。 


VTT文件似乎在其他浏览器和播放器框架中正常工作。  例如,Azure Media Player拥有自己的解析器,并且不依赖于Edge或IE中的解析器并且可以处理评论。 


我们将通过修改我们的管道来修复此问题,以便在没有多行的情况下输出注释,并对这些部分使用单行注释。 


例如,当我们在管道中修复问题时,更新的输出将如下所示。修复此问题后,我们可以在论坛上更新此主题。 现在,您必须自己进行编辑,或者从输出中删除多行注释中的
。 

 WEBVTT 

注意持续时间:"00:10:07.0110000"

注语言:en-US

注意信心:0.911574065685272


不幸的是,bug栏在Edge和IE上,我们可以直接在浏览器中修复,但您可以直接在Edge浏览器团队中提交问题。 由于他们正在迁移到Edge中的Chromium,因此不应该关注此问题,并且
与Chrome行为相符。 虽然,我们将通过修改上述评论来解决此问题。 


规范参考 在这里是为了其他人的信息:  :// w3c.github.io/webvtt/#introduction-comments


             

"
注释只是前面有空行的块,以单词开头" NOTE "
(后跟空格或换行符),并在第一个空白行结束。"




请参阅示例10以获取规范中的参考。  


WEBVTT


  ;


注意


此文件由Jill编写。我希望


您喜欢阅读它。一些事情


请记住:


< p style =""> - 我是唇读,因此提示可能


不是100%准确


- 我也没付钱当提示开始或结束时,请密切关注



 


00:01.000 - > 00:04.000


切勿饮用液氮。


 


注意检查下一个提示


 


00:05.000 - > 00:09.000





The VTT generated by AMS v3 has some "NOTE" in the top of the vtt file. Edge and IE11 Browsers are complaining about it. It throws below parsing error. Same VTT files works fine in Chrome and firefox.

MEDIA12608: WebVTT Text Track: Timestamp signature should be '-->'. hr=80004004. 

If we remove the following "NOTE" from top, the same vtt works fine on Edge and IE11.


NOTE

duration:"00:10:07.0110000"

language:en-US

NOTE Confidence: 0.911574065685272

解决方案

Hi, 

This is a known bug in the older VTT parsers for Edge and IE11.   The VTT parser in those versions did not support the multiline comment format in the WebVTT specification. (It may have been added in a later revision)

The comment type of NOTE  is an allowed comment type in section 1.5 of the WebVTT spec – and the Video Indexer output is using it correctly - but the built in parser on Edge and IE do not handle the multiline comment. 

The VTT file appears to work fine in other browsers and Player frameworks.  For example the Azure Media Player has it's own parser and does not rely on the one in Edge or IE and can handle the comment. 

We are going to fix this issue by modifying our pipeline to output the comment without the multiline and use single line comments for those sections. 

For example, the updated output will look like the following when we fix the issue in our pipeline. Once this is fixed we can update this thread on the forum.  For now, you would have to make this edit on your own, or just strip out the multiline comments from the output. 

WEBVTT

NOTE duration:"00:10:07.0110000"

NOTE language:en-US

NOTE Confidence: 0.911574065685272

Unfortunately, the bug bar on Edge and IE is far to high for us to get a fix directly in the Browser, but you can always submit an issue on the Edge browser team directly.  Since they are moving to Chromium in Edge, this issue should not be a concern and match the Chrome behavior.  Although, we will solve it by fixing the comments as noted above. 

Spec reference is here for others information : ://w3c.github.io/webvtt/#introduction-comments

              "Comments are just blocks that are preceded by a blank line, start with the word "NOTE" (followed by a space or newline), and end at the first blank line."

See Example 10 for a reference in the spec.  

WEBVTT

 

NOTE

This file was written by Jill. I hope

you enjoy reading it. Some things to

bear in mind:

- I was lip-reading, so the cues may

not be 100% accurate

- I didn’t pay too close attention to

when the cues should start or end.

 

00:01.000 --> 00:04.000

Never drink liquid nitrogen.

 

NOTE check next cue

 

00:05.000 --> 00:09.000


这篇关于Edge无法解析AMS v3生成的VTT文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆