分享

LibVLC: marquee and full screen issues

 实验田 2013-12-13

就在今天早上我想在 videolan 论坛上给与在家人的帮助下它的底部。我应该提及我工作在 linux 系统上,我不知道你正在使用什么操作系统,但我知道有一些差异。这里是自己做了什么:

首先,我们发现它很有用先拿工作在命令行上的选框。这里是关于本主题的讨论的链接:

http://forum./viewtopic.php?f=13&t=110743

为我工作过的命令行选项:

 cvlc --extraintf=http:logger --verbose=2 --file-logging --logfile=vlc-log.txt --sub-source="marq{marquee=marquee text here}" test.mpg

我有哪里甚至与上面的命令不可以选取框以显示一路上的一个问题。我需要我的 gentoo 系统上重建与字型靠后 vlc 和 truetype 启用。

现在用上一段视频显示字幕的 cvlc,我搬回 libvlc。我缺了什么东西,所以我就开始在这里的另一个讨论:

http://forum./viewtopic.php?f=32&t=110783

代码段 C libvlc 代码最终使我能够在没有文件名选框的需求上显示字幕所提供的下面。

在主要:

const char * const vlc_args[] = {
"--extraintf=http:logger",
"--verbose=1",
"--file-logging",
"--logfile=/home/user/data/logs/vlc",
"--no-video-title-show",                // <- this option disables the filename marquee
"--sub-filter=marq"};                   // <- this option allows the on demand marquee to display properly

vlc_inst = libvlc_new (sizeof(vlc_args) / sizeof(vlc_args[0]), vlc_args);

在 keypress 回调:

        libvlc_video_set_marquee_int(media_player, 0, 1);       /* enable marquee */
        libvlc_video_set_marquee_int(media_player, 6, 32);      /* set marquee font size */
        libvlc_video_set_marquee_int(media_player, 7, 2000);    /* set marquee timeout (ms) */
        libvlc_video_set_marquee_string(media_player, 1, "on demand marquee string here");

希望这将帮助您得到一个可行的解决方案。

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多