【问题标题】:Libvlcsharp will get stuck playing specific videos on any platformLibvlcsharp 将在任何平台上播放特定视频时卡住
【发布时间】:2021-09-16 15:03:49
【问题描述】:

播放以下视频会卡住。在任何平台上,我都尝试过 WinForm、WPF、xamarin.android、xamarin.ios 对于以下两个视频,我卡在xamarin.forms,Android和IOS,播放不流畅,但是用浏览器播放没有问题。不知道为什么?

https://bj.bcebos.com/kpy-organizations/U3017318/videos/2021091617080192065864213581.mp4 https://bj.bcebos.com/kpy-organizations/U12760068/videos/2021083110332897820349837654.mp4

【问题讨论】:

  • 他们玩 VLC 本身吗?一个好的起点是转到 Messages 并将其打开为 Debug,然后保存该日志。它将帮助解决问题的人。如果它很难在 VLC 本身中发挥作用,那么它可能不是 LibVLCSharp 问题。
  • c#无法播放,使用VLC客户端可以正常播放。我认为虽然这可能是一个编码问题,但有一些方法可以解决它。还是 libvlcsharp 有 bug?
  • 查看the code,您似乎是直接从网络加载的。当您表示 VLC 客户端能够正常播放时,您是否在 a) 同一平台上和 b) 通过加载网络流作为您的代码而不是作为本地文件进行了测试? (我在过去看到流与文件播放的一些差异)

标签: c# vlc libvlc libvlcsharp vlc-android


【解决方案1】:
main error: Timestamp conversion failed (delay 4929000, buffering 100000, bound 3000000)
main error: Could not convert timestamp 64957762948 for faad
main error: ES_OUT_SET_(GROUP_)PCR is called too late (jitter of 19946 ms ignored)
main error: Timestamp conversion failed for 10733334: no reference clock
main error: Could not get display date for timestamp 0

很多。我不知道您是如何对视频进行编码的,但您可能做错了什么。

【讨论】:

  • 我刚刚阅读了这条评论。我想知道你是否不能播放这样的视频?但是,您可以使用 xamarin 社区工具包中的 MediaElement 正常播放视频。
猜你喜欢
  • 2016-08-31
  • 1970-01-01
  • 1970-01-01
  • 2023-01-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多