Rigaya 的 NVEnc 编码没有视频或音频轨道的文件

问题描述

我的源视频文件(时长 1 小时 30 分钟的电影)可以在 PotPlayer 和 VLC 中播放:h264、8 位颜色和 7755kb/s 比特率。

我使用的 NVEnc 命令是这样的:

char eat_comma;

//...

stream >> student.quiz1 >> eat_comma;
stream >> student.quiz2 >> eat_comma;
stream >> student.quiz3 >> eat_comma;
stream >> student.quiz4 >> eat_comma;
stream >> student.quiz5 >> eat_comma;
stream >> student.quiz6 >> eat_comma;
stream >> student.test1 >> eat_comma;
stream >> student.test2 >> eat_comma;
stream >> student.final; // no comma after the last value

编码工作正常(我相信):

import threading
from tkinter import *
import time

clicks = 0
cps = 0
start = True

wn = Tk()
wn.title("Cps Counter")
wn.geometry("400x300")
clicks = 0
def cps5():
    global start
    global cps
    global clicks
    global t1
    start = False

    CpsButton.config(text=clicks)
    start = True




def AddClicks():
    global clicks
    global start
    clicks += 1
    CpsButton.config(text=clicks)
    if start == True:
        cps5()

CpsButton = Button(wn,text=clicks,command=AddClicks,pady=15,padx=15)
CpsAmount = Label(wn,text=cps,padx=15)

CpsAmount.pack()
CpsButton.pack()


def Timer():
    global CpsAmount,cps,clicks
    for i in range(0,5):
        time.sleep(1)
    cps = (clicks / 5)
    CpsAmount.config(text=cps)
    clicks = 0
    Timer()

t1 = threading.Thread(target=cps5)
t1.start()
t2 = threading.Thread(target=Timer)
t2.start()
wn.mainloop()

但是当我尝试在 PotPlayer 或 VLC 中播放它时,它说没有视频轨道或根本不播放。 MediaInfo 也不显示任何视频、音频或字幕轨道,只显示文件名和文件大小。我错过了什么吗?

解决方法

--avhw 切换为 --avsw 解决了问题。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...