【问题标题】:How to get media info when playing with VLC player使用 VLC 播放器播放时如何获取媒体信息
【发布时间】:2015-02-23 10:38:11
【问题描述】:

我在我的应用程序中使用 vlc 播放器,我想获取使用 vlc 播放的文件信息,我使用了 vlc SDK。我进行了很多搜索,但找不到任何适合 iOS 中 vlc 播放器集成的文档。我想得到如下信息:

General
ID                                       : 2 (0x2)
Format                                   : MPEG-TS
File size                                : 915 MiB
Duration                                 : 8mn 31s
Start time                               : UTC 2009-06-09 14:15:57
End time                                 : UTC 2009-06-09 14:24:12
Overall bit rate                         : 15.0 Mbps

Video #1
ID                                       : 256 (0x100)
Menu ID                                  : 1 (0x1)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L3.0
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : 27
Duration                                 : 8mn 31s
Width                                    : 720 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 4:3
Frame rate                               : 25.000 fps
Standard                                 : PAL
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : MBAFF
Scan order                               : Top Field First
Color primaries                          : BT.470-6 System B, BT.470-6 System G, BT.601-6 625, BT.1358 625, BT.1700 625 PAL, BT.1700 625 SECAM
Transfer characteristics                 : BT.470-6 System B, BT.470-6 System G
Matrix coefficients                      : BT.470-6 System B, BT.470-6 System G, BT.601-6 625, BT.1358 625, BT.1700 625 PAL, BT.1700 625 SECAM, IEC 61966-2-4 601

有没有办法获取这类信息?

任何帮助将不胜感激。 提前致谢。

【问题讨论】:

    标签: ios ios8 vlc


    【解决方案1】:

    完全披露:我是 VLC 的主要开发人员之一,也是 Mac 和 iOS SDK 的当前维护者。

    iOS 上的 VLC SDK 称为 MobileVLCKit 或简称 VLCKit。我们在wiki 上提供基本文档。另外,我blogged about metadata in VLCKit recently,应该会提供您需要的所有答案。

    注意:您上面的输出取自 mediainfo,它更详细。在 VLCKit 中,您只能在我们的桌面变体中已知的信息面板中获得尽可能多的信息。

    【讨论】:

    • 感谢您的回复,但我想获取正在播放到 vlc 的视频的候选(位/秒)。我可以使用 VLCKit 播放/暂停视频,但找不到媒体信息。
    • 抱歉,您是否阅读了我的博客文章,其中包含了对此的确切 API 调用? :) 或者你想要关于数据传输的统计数据?
    • 很抱歉,我想我错过了一些东西,您提供了用于获取元数据的 api。但我不知道如何使用它。我只是简单地使用 dropIn-Player 示例。 vlc 对象。 trackInformation 不允许我获取元数据。请让我知道我在这里做错了什么?
    • 你好。从 rstp/rtmp 链接获取缩略图时,我总是遇到超时异常。你能帮忙吗?
    • 请创建一个新帖子或在 forum.videolan.org 上提问 - 请不要用全新的问题恢复旧帖子。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-04-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多