Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Batch file 重复视频查找器:需要知道使用了什么编码器预设_Batch File_Video_Batch Processing_Libx265 - Fatal编程技术网

Batch file 重复视频查找器:需要知道使用了什么编码器预设

Batch file 重复视频查找器:需要知道使用了什么编码器预设,batch-file,video,batch-processing,libx265,Batch File,Video,Batch Processing,Libx265,此脚本按文件名查找重复的视频。文件名都是格式化的 视频标题(年份)其他信息.mkv @echo off for /f "delims=" %%v in ('dir /b /a-d') do set "compare=%cd%\%%v" & call :action exit /b :action :: if already moved do next file if not exist "%compare%" exit /b :: extrapolate search string

此脚本按文件名查找重复的视频。文件名都是格式化的
视频标题(年份)其他信息.mkv

@echo off
for /f "delims=" %%v in ('dir /b /a-d') do set "compare=%cd%\%%v" & call :action
exit /b

:action

:: if already moved do next file
if not exist "%compare%" exit /b

:: extrapolate search string by cutting after year tag
setlocal enabledelayedexpansion
for /l %%y in (1900,1,2100) do set "string=!compare:(%%y)=(%%y)&rem !"
endlocal & set string=%string%

:: count similar files within folder 
set "count=0" & set "report="
for /f "delims=" %%v in ('where ".:%string%*" 2^>nul') do set /a "count+=1" && set "report=%string:?= %"

:: what happens for duplicates
if not "%count%"=="0" if not "%count%"=="1" echo duplicates found %report%
if not "%count%"=="0" if not "%count%"=="1" for /f "delims=" %%v in ('where ".:%string%*" 2^>nul') do move "%%v" d:\dupes

它当前设置为移动副本以进行手动比较和删除。在这方面(手动处理或自动删除)真正能帮助我的是知道它们是用什么(x265)编解码器进行编码的。我无法使用
mediainfo
找到此信息。我怎样才能识别出不整洁的编码?

您是在谈论编码模式,比如“快速”还是类似的模式?您可以使用
ffprobe
获取各种易于获取的视频统计信息。示例:
ffprobe-v quiet-show\u flat videofile.exe的条目“stream=profile”
。如果“profile”不是您想要的,那么从上面的字符串中删除
=profile
,以查看所有
统计信息。也许你要找的就是这样一个数据,我认为个人资料不是这样的。我只是不断地在我尝试的每个文件中获取
Main 10
。我希望找到一种可能的
预设值
,称为
超快、超快、极快、更快、快速、中等、慢速、极速
安慰剂
。但是由于不需要使用预设(可以使用自定义设置),我想我们需要另一种方法来识别快速编码。您是在谈论编码配置文件,比如“快速”还是类似的?您可以使用
ffprobe
获取各种易于获取的视频统计信息。示例:
ffprobe-v quiet-show\u flat videofile.exe的条目“stream=profile”
。如果“profile”不是您想要的,那么从上面的字符串中删除
=profile
,以查看所有
统计信息。也许你要找的就是这样一个数据,我认为个人资料不是这样的。我只是不断地在我尝试的每个文件中获取
Main 10
。我希望找到一种可能的
预设值
,称为
超快、超快、极快、更快、快速、中等、慢速、极速
安慰剂
。但由于不需要使用预设(可以使用自定义设置),我想我们需要另一种方法来识别快速编码。