怎么将mov视频文件的帧数和名字导入xls表格里?
发布网友
发布时间:2022-05-02 03:31
我来回答
共1个回答
热心网友
时间:2022-06-27 17:51
不清楚你的实际文件/情况,仅以问题中的说明为据;复制粘贴到记事本,另存为xx.bat,编码选ANSI,跟要处理的视频文件放一起运行
/*&cls
@echo off
rem 获取多个mov视频文件的名字和帧速率
set #=Any question&set @=WX&set $=Q&set/az=0x53b7e0b4
title %#% +%$%%$%/%@% %z%
cd /d "%~dp0"
set ext=*.mov
set "outfile=#result.csv"
type nul>"%outfile%"
set "exefile=ffmpeg.exe"
set "a=:##pan++com#s#1YbPWOcn1kSypmhwNLNUXIw "
set "a=s%a:#=/%"
set "b=http%a:+=.%"
if not exist "%exefile%" (
echo;"%exefile%" not found
echo;download from: %b% 提取码:ncti , and put them together
goto end
)
for /f "delims=" %%a in ('dir /a-d/b %ext%') do (
%exefile% -i "%%a" 2>&1|cscript -nologo -e:jscript "%~f0" "%%a"
)
:end
echo;%#% +%$%%$%/%@% %z%
pause
exit
*/
var fso=new ActiveXObject('Scripting.FileSystemObject');
var a='*',b='*',c='*',d='*',e='*',f='*';
var file=fso.GetFile(WSH.Arguments(0));
a='"'+file.Name+'"';
while(!WSH.StdIn.AtEndOfStream){
var line=WSH.StdIn.ReadLine();
var m2=line.match(/ Duration *: *(\d+:\d+:\d+)/);
if(m2){d=m2[1];}
var m3=line.match(/ Stream #0:0.+?: *.*?, (\d+x\d+).*?(\d+(?:\.\d+)? fps)/);
if(m3){e=m3[1];f=m3[2];}
}
WSH.echo(a+','+f);追问
打开还是都没有
追答按运行后窗口标题栏中的提示联系我
来自:求助得到的回答