Skip to content

Instantly share code, notes, and snippets.

@xyuanmu
Last active August 18, 2022 14:35
Show Gist options
  • Save xyuanmu/4249fc4f5bce8571383417f1639cb299 to your computer and use it in GitHub Desktop.
Save xyuanmu/4249fc4f5bce8571383417f1639cb299 to your computer and use it in GitHub Desktop.
利用优酷自带的ffmpeg转码kux加密文件为mp4,将此批处理放入kux所在目录双击运行即可。
@echo off & title 批量转码优酷KUX为MP4 & cd /d %~dp0
setlocal enabledelayedexpansion
rem 优酷客户端 ffmpeg.exe 所在目录,若路径不对,请自行修改
set ffmpeg="C:\Program Files (x86)\YouKu\YoukuClient\nplayer\ffmpeg.exe"
if not exist %ffmpeg% (
echo.请修改优酷客户端 ffmpeg.exe 所在目录!
)
if exist *.kux (
for /r . %%i in (*.kux) do (
%ffmpeg% -i "%%i" -c copy "%%~dpni.mp4"
rem 请自行删除文件
rem del "%%i"
)
) else (
echo.请将此批处理放到 kux 文件所在目录!
)
pause
@Freestyleyang
Copy link

Thank you very much for the code!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment