gpt4 book ai didi

batch-file - FFMPEG 转换没有原始文件扩展名的文件输出

转载 作者:行者123 更新时间:2023-12-04 23:35:29 24 4
gpt4 key购买 nike

关闭。这个问题需要debugging details .它目前不接受答案。












编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将帮助其他人回答问题。


2年前关闭。







Improve this question



@echo off

rem echo %~F0
rem echo %~F1

Set filename=%~F0
For %%A in ("%filename%") do (
Set Folder=%%~dpA
Set Name=%%~nxA
)

Set filename1=%~F1
For %%B in ("%filename1%") do (
Set Folder1=%%~dpB
Set Name1=%%~nxB
)

rem echo "%Folder1%"
rem echo "%Name1%"
rem pause

cd "%Folder1%"

TITLE Mp4 Video 1 Click - FFMPEG v.4.2.2 32-bit - Encode to HLS (software libx264)

set PATH=%Folder%;%SYSTEMROOT%\SysWOW64;%SYSTEMROOT%\System32


ffmpeg.exe -i "%Name1%" -profile:v baseline -level 3.0 -start_number 0 -hls_time 10 -hls_list_size 0 -f hls "%Name1%.m3u8"

最佳答案

此任务只需要一个单行批处理文件:

@Start "Mp4 Video 1 Click - FFMPEG v.4.2.2 32-bit - Encode to HLS (software libx264)" /D "%~dp1" "%~dp0ffmpeg.exe" -i "%~nx1" -profile:v baseline -level 3.0 -start_number 0 -hls_time 10 -hls_list_size 0 -f hls "%~n1.m3u8"
您可以简单地拖放您的 .mp4文件到它上面,或者将它作为第一个参数输入 cmd.exe .

关于batch-file - FFMPEG 转换没有原始文件扩展名的文件输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62592946/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com