-1
명령을 실행하는 방법을 찾고 있지만 작업 디렉토리 (스크립트가 실행되는 곳)에서 명령으로 모든 mp4 파일의 경로/파일 이름을 삽입하십시오.일괄 처리 파일/명령에 파일 이름 추가
vlc.exe c:\path\filename1.mp4 c:\path\filename2.mp4
다음 코드가 있지만 "%% ~ A"는 폴더의 모든 경로 파일 이름을 추가하는 대신 한 번에 하나의 경로/파일 이름 만 삽입합니다.
set dir=C:\Users\Administrator\Desktop\1
for /f "delims=" %%A in ('dir /b "%dir%\*.*"') do ("C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "%%~A" --sout=#transcode{vcodec=mp2v,vb=800,acodec=mpga,ab=128,channels=2,samplerate=44100}:http{mux=ts,dst=:8080/abc} --sout-keep --loop)