错误:无法创建输出文件已处理 0 帧

问题描述

我正在运行 onevpl 示例之一 - hello-vpp。 我已经从 oneAPI 示例存储库下载了示例源代码-

https://github.com/oneapi-src/oneAPI-samples.git

我的操作系统是 Ubuntu 18.04。 构建后,我尝试了以下命令来获取输出
./hello-vpp ../content/input.i420 640 480 我得到了以下错误

Could not create output file
Processed 0 frames

我的命令有任何更正吗?预期的输出是什么?

解决方法

VPP 样本仅适用于 i420 视频格式,其大小必须为 128x96。所以运行 hello-vpp 示例的正确命令是:

button_list = []

def button():
    button_col = 0
    button_row = 0
    for i in range(len(img_list)):
        tile_button = button.Button(SCREEN_WIDTH + (75 * button_col) + 50,75 * button_row + 50,img_list[i],1)
        button_list.append(tile_button)
        button_col += 1
        if button_col == 3:
            button_row += 1
            button_col = 0

预期的输出是

./hello-vpp ../content/input.i420 128x96 

输出文件即 out.i420 将在构建目录(路径:“\Libraries\oneVPL\hello-vpp\build”)中找到,默认大小为 640x480。