AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1839805
Accepted
Shawn Eary
Shawn Eary
Asked: 2024-04-21 02:12:57 +0800 CST2024-04-21 02:12:57 +0800 CST 2024-04-21 02:12:57 +0800 CST

GoPro 仪表板叠加 - 总距离

  • 772

有没有一种简单的方法可以让 James Richardson 的GoPro 仪表板覆盖工具显示总距离或平均速度?我不明白。文档中显示的默认渲染似乎没有显示如何显示总距离小部件。

我的第一个渲染是这样的:

venv/bin/gopro-dashboard.py GX010027.MP4 test.MP4

生成的渲染看起来像这样: 在此输入图像描述

我可能可以弄清楚如何摆脱温度、RPM 和 BPM 仪表,因为我没有使用此处发布的 Jack Henschel 的 XML 布局文件来获取它们的数据,但我在文档中没有看到有关如何使用的任何地方命令行参数或修改 XML 配置文件,以便我可以获得总距离小部件。

有什么方法可以将命令行参数传递给 gopro-dashboard.py 或修改 XML 布局文件以获取总距离小部件?

笔记:

  1. 这里提到了理查森工具的距离单位,但我没有看到提到总距离小部件
  2. 您可以在 YouTube 上找到 Richardson 工具的演示,标题为GoPro Overlay Promo 2024 01
video
  • 1 1 个回答
  • 33 Views

1 个回答

  • Voted
  1. Best Answer
    Shawn Eary
    2024-04-21T04:37:44+08:002024-04-21T04:37:44+08:00

    我最终使用了本例中所示的里程表小部件。

    我的 XML 文件本质上是默认布局,添加了这一行

    <component type="metric" x="900" y="600"
    metric="speed" units="mph" format=".1f" size="32"/>
    

    当我发现问题是我需要使用里程表小部件时,我从理查森的两个示例中逐字复制了该代码。

    我的渲染命令最终是

    venv/bin/gopro-dashboard.py --generate overlay \
       --profile overlay --layout-xml layout.xml \
       GX020027.MP4 test200.mov
    

    上面渲染命令的重要部分是

    --layout-xml layout.xml
    

    转变。我从上面引用的亨舍尔和理查森的参考文献中得到了这个信息。我当前的 XML 文件仍然需要一些工作来纠正里程表小部件的大小和标签,但它正在工作,如下所示:

    <layout>
        <composite x="260" y="30" name="date_and_time">
            <component type="datetime" x="0" y="0" format="%Y/%m/%d" size="16" align="right"/>
            <component type="datetime" x="0" y="24" format="%H:%M:%S.%f" truncate="5" size="32" align="right"/>
        </composite>
    
        <composite x="1644" y="0" name="gps_info">
            <frame name="gps-lock" x="226" y="24" width="32" height="32" bg="0,0,0,128" cr="5" opacity="0.4">
                <component type="gps-lock-icon" size="32"/>
             </frame>
    
            <composite y="36">
                <component type="text" x="0" y="0" size="16" align="left">GPS INFO</component>
                <component type="text" x="0" y="24" size="16" align="left">Lat: </component>
                <component type="text" x="128" y="24" size="16" align="left">Lon: </component>
                <component type="metric" x="118" y="24" metric="lat" dp="6" size="16" align="right" cache="False"/>
                <component type="metric" x="256"    y="24" metric="lon" dp="6" size="16" align="right" cache="False"/>
            </composite>
        </composite>
    
        <composite x="16" y="800" name="big_mph">
            <component type="metric_unit" metric="speed" units="speed" size="16">{:~c}</component>
            <component type="metric" x="0" y="0" metric="speed" units="speed" dp="0" size="160" />
        </composite>
    
        <component type="chart" name="gradient_chart" x="400" y="980"/>
    
        <composite x="220" y="980" name="gradient">
            <component type="text" x="70" y="0" size="16">SLOPE(%)</component>
            <component type="icon" x="0" y="0" file="slope-triangle.png" size="64"/>
            <component type="metric" x="70" y="18" metric="gradient" dp="0" size="32" />
        </composite>
    
        <composite x="16" y="980" name="altitude">
            <component type="metric_unit" x="70" y="0" metric="alt" units="alt" size="16">ALT({:~C})</component>
            <component type="icon" x="0" y="0" file="mountain.png" size="64"/>
            <component type="metric" x="70" y="18" metric="alt" units="alt" dp="0" size="32" />
        </composite>
    
        <component type="metric" x="850" y="750" metric="odo" units="miles" dp="2" size="32" rgb="255,255,0"/>
    
        <component type="moving_map" name="moving_map" x="1644" y="100" size="256" zoom="16" corner_radius="35"/>
        <component type="journey_map" name="journey_map" x="1644" y="376" size="256" corner_radius="35"/>
    </layout>
    
    It's heavily based on the work from Henschel and Richardson.
    
    • 0

相关问题

  • 如何使用 Audacity 拉伸较短的音轨以适合较长的视频

  • HTTP 上的视频 - 您能判断视频是正在下载还是正在观看吗?

  • OBS Studio—'无法打开 NVENC 编解码器:功能未实现'

  • 如何用ffmpeg 2.0.2保存TS视频流?

  • 压缩视频可以解码回未压缩的原始格式吗?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve