**已关闭。**此问题不符合Stack Overflow guidelines。当前不接受答案。
此问题似乎与a specific programming problem, a software algorithm, or software tools primarily used by programmers无关。如果您认为此问题与another Stack Exchange site的主题有关,您可以留下评论,说明在何处可以回答此问题。
两年前关闭了。
Improve this question
我正在与提供的将4K电影转换为1080p的指令作斗争,这样我就可以在我的plex服务器上更容易地运行它。
我有一个Geforce 1080Ti,并在构建ffmpeg时启用了cuda和所有必要的选项。
我不断得到一个奇怪的错误,我被困在下面的点。
这是我目前正在编写的代码
REM @ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
COLOR 0A
TITLE CONVERT 4K TO 1080P USING GEFORCE HW
PUSHD "%~dp0"
SET "FF=C:\MAB\local64\bin-video\ffmpeg.exe"
FOR /R %%G IN (*.mkv) DO (
"%FF%" -hide_banner -hwaccel cuda -y -i "%%~dpnG.mkv" -c:v h264_nvenc -preset slow -pix_fmts yuv420p10le -vf scale='1920:-1' -c:a copy "%%~dpnG(1080p).mkv"
)
ECHO.
PAUSE
EXIT
下面是运行上述命令时得到的错误输出
Guessed Channel Layout for Input Stream #0.1 : 5.1
Input #0, matroska,webm, from 'Mulan_2020.mkv':
Metadata:
title : mandtv.net
encoder : libebml v1.4.0 + libmatroska v1.6.2
creation_time : 2020-09-10T05:08:02.000000Z
Duration: 01:55:08.70, start: 0.000000, bitrate: 16704 kb/s
Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x1608 [SAR 1:1 DAR 160:67], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Metadata:
BPS-eng : 15933746
DURATION-eng : 01:55:08.652000000
NUMBER_OF_FRAMES-eng: 165642
NUMBER_OF_BYTES-eng: 13760089087
_STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: eac3, 48000 Hz, 5.1, fltp (default) (forced)
Metadata:
title : En
BPS-eng : 768000
DURATION-eng : 01:55:08.704000000
NUMBER_OF_FRAMES-eng: 215897
NUMBER_OF_BYTES-eng: 663235584
_STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Subtitle: subrip
Metadata:
title : English
BPS-eng : 35
DURATION-eng : 01:50:28.504000000
NUMBER_OF_FRAMES-eng: 1150
NUMBER_OF_BYTES-eng: 29135
_STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:3(ger): Subtitle: subrip
Metadata:
title : de
BPS-eng : 2
DURATION-eng : 00:03:07.062000000
NUMBER_OF_FRAMES-eng: 2
NUMBER_OF_BYTES-eng: 53
_STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:4(ger): Subtitle: subrip
Metadata:
title : de
BPS-eng : 27
DURATION-eng : 01:54:16.482000000
NUMBER_OF_FRAMES-eng: 933
NUMBER_OF_BYTES-eng: 23256
_STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:5(fre): Subtitle: subrip
Metadata:
title : fr
BPS-eng : 0
DURATION-eng : 01:40:51.510000000
NUMBER_OF_FRAMES-eng: 21
NUMBER_OF_BYTES-eng: 380
_STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:6(fre): Subtitle: subrip
Metadata:
title : fr
BPS-eng : 29
DURATION-eng : 01:54:19.902000000
NUMBER_OF_FRAMES-eng: 806
NUMBER_OF_BYTES-eng: 25098
_STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:7(spa): Subtitle: subrip
Metadata:
title : es
BPS-eng : 2
DURATION-eng : 00:03:21.201000000
NUMBER_OF_FRAMES-eng: 3
NUMBER_OF_BYTES-eng: 73
_STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:8(spa): Subtitle: subrip
Metadata:
title : es
BPS-eng : 30
DURATION-eng : 01:43:53.693000000
NUMBER_OF_FRAMES-eng: 783
NUMBER_OF_BYTES-eng: 24134
_STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:9(ita): Subtitle: subrip
Metadata:
title : it
BPS-eng : 2
DURATION-eng : 00:03:08.522000000
NUMBER_OF_FRAMES-eng: 2
NUMBER_OF_BYTES-eng: 67
_STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:10(ita): Subtitle: subrip
Metadata:
title : it
BPS-eng : 27
DURATION-eng : 01:54:16.649000000
NUMBER_OF_FRAMES-eng: 784
NUMBER_OF_BYTES-eng: 23506
_STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:11(por): Subtitle: subrip
Metadata:
title : pt
BPS-eng : 27
DURATION-eng : 01:54:16.649000000
NUMBER_OF_FRAMES-eng: 784
NUMBER_OF_BYTES-eng: 23202
_STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:12(por): Subtitle: subrip
Metadata:
title : pt
BPS-eng : 2
DURATION-eng : 00:03:08.522000000
NUMBER_OF_FRAMES-eng: 2
NUMBER_OF_BYTES-eng: 61
_STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:13(rus): Subtitle: subrip (default)
Metadata:
title : ru
BPS-eng : 0
DURATION-eng : 01:37:43.480000000
NUMBER_OF_FRAMES-eng: 9
NUMBER_OF_BYTES-eng: 420
_STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:14(rus): Subtitle: subrip
Metadata:
title : ru
BPS-eng : 50
DURATION-eng : 01:44:17.000000000
NUMBER_OF_FRAMES-eng: 850
NUMBER_OF_BYTES-eng: 39721
_STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:15(ukr): Subtitle: subrip
Metadata:
title : uk
BPS-eng : 50
DURATION-eng : 01:43:53.650000000
NUMBER_OF_FRAMES-eng: 848
NUMBER_OF_BYTES-eng: 39165
_STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-09-10 05:08:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_nvenc))
Stream #0:1 -> #0:1 (copy)
Stream #0:2 -> #0:2 (subrip (srt) -> ass (ssa))
Press [q] to stop, [?] for help
[h264_nvenc @ 000002306685ccc0] 10 bit encode not supported
[h264_nvenc @ 000002306685ccc0] Provided device doesn't support required NVENC features
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!
有人知道我错过了什么吗?
1条答案
按热度按时间cvxl0en21#