OBS녹화한 파1068;1012; 편1665;1012; 위해 FFMPEG/196; ǥ16;해를 Ȣ16;lj16; 1089;업1012; 1652;행1473;1077;니다
mkdir DONE160;폴더를 만들고
for %%A in (*.mkv) do (160;폴더안1032; mkv파1068;1012; 대상1004;/196;
ffmpeg -y -i "%%A" -map 0:0 -c copy "%%A_VIDEO.mp4"
ffmpeg -y -i "%%A" -map 0:1 -c copy "%%A_ALL.wav"
ffmpeg -y -i "%%A" -map 0:2 -c copy "%%A_DRUM.wav"
ffmpeg -y -i "%%A" -map 0:3 -c copy "%%A_PC.wav"
ffmpeg -y -i "%%A" -map 0:4 -c copy "%%A_MIC.wav"
move "%%A" DONE\160;변환1060; -149;DŽ12; 파1068;1008; DONE폴더/196; 보낸다
)
pause
exit
1060;/111;,172; 1089;업1012; 해보니 출/141;파1068;에 ~~~.mkv_video.mp4 160;~~~~~
1060;런식1004;/196; 확1109;1088;뒤에 글1088;가 덧붙여 나오다보니 1200;,172; 보기싫Ǻ12;
아래처/100; 1089;성해보았습니다
mkdir DONE 폴더를 만들고
for %%A in (*.mkv) do set Name=%%A( 폴더안1032; mkv파1068;1012; 변수/196; Ȣ16;여 name에 1200;1109;Ȣ16;고
set Name=%Name:~0,-5% 변수에서 확1109;1088;를 1096;라내고 (왜 5글1088;1064;1648;lj16; 모르,192;습니다...)
ffmpeg -y -i "%Name%.mkv" -map 0:0 -c copy "%Name%_VIDEO.mp4"
ffmpeg -y -i "%Name%.mkv" -map 0:1 -c copy "%Name%_ALL.wav"
ffmpeg -y -i "%Name%.mkv" -map 0:2 -c copy "%Name%_DRUM.wav"
ffmpeg -y -i "%Name%.mkv" -map 0:3 -c copy "%Name%_PC.wav"
ffmpeg -y -i "%Name%.mkv" -map 0:4 -c copy "%Name%_MIC.wav"
move "%Name%.mkv" DONE\160;변환1060; -149;DŽ12; 파1068;1008; DONE폴더/196; 보낸다
)
pause
exit
1060;/111;,172; 해보니 확1109;1088;lj16; 없Ǻ12;1665;니다만
문1228;가160;
파1068;1060; 여러개1068;ᅆ1;우 특1221;1개만 1089;업1060; .108;다lj16;,163;1060; 1032;문1077;니다
위1032;,163;1008; Ǻ12;찌 1200;찌 혼1088;서 파1068;1012; 다 1900;갰lj16;데
아래lj16; 파1068;1060; 1개만 1900;개1665;니다
1593; 파1068;1060; 100개라면 100번 1900;개야한다lj16;.....
아1649; 연구1473;1060;1648;만 아리까리Ȣ16;네요
ᕬ1;시 차도가 1080;1012;까요....?
¸®´ª¿¡¼ Á÷Á¢ ÀÛ¼º »ç¿ëÇÏ´ø
½© ½ºÅ©¸³Æ®µéÀ»
À©µµ¿ì bat ÆÄÀÏ·Î ÀçÀÛ¼ºÇÏ¿© »ç¿ëÇÑÀûÀÌ ÀÖ¾ú´Âµ¥¿ä...
¸î¸î ÆÄÀÏ¿¡
For ¹®ÀÌ µé¾î°¡ ÀÖ±º¿ä
Âü°í µÇ½ÇÁö ¸ð¸£°Ú½À´Ï´Ù.
Àú´Â ¼Õ¶ÚÁö À̽ʿ©³â µÇ¾î¼...
À߸𸨴ϴÙ.
¶ó´Â ÆÄÀÏ¿¡ For ¹®ÀÌ µé¾îÀÖ´Â
ºÎºÐµé ¹ßÃéÀÔ´Ï´Ù.
if %delay_time_self_control_flag% equ 0 (
rem ÃÑ µô·¹ÀÌ Å¸ÀÓÀ» 5µîºÐÇؼ 3¹è, 2¹è¾¿ ºÐ¹èÇÑ´Ù.
for /f %%g in ('expr %auto_delay_time% * 3 / %delay_num%') do set main_delay=%gg
for /f %%g in ('expr %auto_delay_time% * 2 / %delay_num%') do set mior_delay=%%g
)
else (
rem ############################
rem ¿©±â¼ ¼öµ¿ Á¶Á¾ÇÑ´Ù.
set main_delay=0
set mior_delay=0
rem ############################
)
echo ======== %counter_sh% ==========
echo %last_delay_sec% Sec Delay
for /l %%g in (1,1,%last_delay_sec%) do (
sleep 1
(set /p a=%%g.) < nul
)
:cong
echo ======== %counter_sh% ==========
echo no > confirm.txt & echo no > index.txt
echo Files Initialized
echo %last_delay_sec% Sec Delay
for /l %%g in (1,1,%last_delay_sec%) do (
sleep 1
(set /p a=%%g.) < nul
)
:calc_elapsed_time
for /f "tokens=1-4 delims=:." %%g in ('echo %1') do (
set fir_time_hor=%%g
set fir_time_min=%%h
set fir_time_sec=%%i
set fir_time_mil=%%j
)
for /f "tokens=1-4 delims=:." %%g in ('echo %2') do (
set now_time_hor=%%g
set now_time_min=%%h
set now_time_sec=%%i
set now_time_mil=%%j
)
¶ó´Â ÆÄÀÏ¿¡ For ¹®ÀÌ µé¾îÀÖ´Â
ºÎºÐµé ¹ßÃéÀÔ´Ï´Ù.
rem echo ======== %counter_sh% ==========
rem echo %last_delay_sec% Sec Delay
for /l %%g in (1,1,%last_delay_sec%) do (
sleep 1
(set /p a=%%g.) < nul
)
echo.
:calc_elapsed_time
for /f "tokens=1-4 delims=:." %%g in ('echo %1') do (
set fir_time_hor=%%g
set fir_time_min=%%h
set fir_time_sec=%%i
set fir_time_mil=%%j
)
for /f "tokens=1-4 delims=:." %%g in ('echo %2') do (
set now_time_hor=%%g
set now_time_min=%%h
set now_time_sec=%%i
set now_time_mil=%%j
)
µµ¿òÀÌ µÇ´Â ³»¿ëÀÌ ÀÖ¾úÀ¸¸é
ÁÁ°Ú±º¿ä.
%~1 - %1À» È®ÀåÇÏ¿© ÁÖº¯ µû¿ÈÇ¥(")¸¦ Á¦°ÅÇÕ´Ï´Ù.
%~f1 - %1À» ¿ÏÀüÇÑ °æ·Î À̸§À¸·ÎÈ®ÀåÇÕ´Ï´Ù.
%~d1 - %1À» µå¶óÀÌºê ¹®Àڷθ¸ È®ÀåÇÕ´Ï´Ù.
%~p1 - %1À» °æ·Î·Î¸¸ È®ÀåÇÕ´Ï´Ù.
%~n1 - %1À» ÆÄÀÏ À̸§À¸·Î¸¸È®ÀåÇÕ´Ï´Ù.
%~x1 - %1À» ÆÄÀÏ È®ÀåÀڷθ¸ È®ÀåÇÕ´Ï´Ù.
%~s1 - È®ÀåµÈ °æ·Î¿¡´Â ªÀº À̸§¸¸ Æ÷ÇԵ˴ϴÙ.
%~a1 - %1À» ÆÄÀÏ ¼Ó¼ºÀ¸·Î È®ÀåÇÕ´Ï´Ù.
%~t1 - %¸¦ È®ÀåÇÕ´Ï´Ù. 1¿¡¼ ÆÄÀÏ
%~z1 ÀÇ ³¯Â¥/½Ã°£ - %1À»(¸¦) ÆÄÀÏ Å©±â·Î È®ÀåÇÕ´Ï´Ù.
%~1 - expands %1 removing any surrounding quotes (")
%~f1 - expands %1 to a fully qualified path name
%~d1 - expands %1 to a drive letter only
%~p1 - expands %1 to a path only
%~n1 - expands %1 to a file name only
%~x1 - expands %1 to a file extension only
%~s1 - expanded path contains short names only
%~a1 - expands %1 to file attributes
%~t1 - expands %1 to date/time of file
%~z1 - expands %1 to size of file
for±¸¹®¿¡¼ ÃßÃâ°¡´ÉÇÑ ¿É¼ÇµéÀÌ ´õ Àֳ׿ä...
Àú´Â °è¼Ó º¯¼ö¸¦ ÀÚ¸£°í ó¸®ÇÒ »ý°¢À» Çߴµ¥ forÀÚü¿¡ È®Àå¸í·É¾î·Î Á¸À縦 Çϴ±º¿ä,,,,,,
°¨»çÇÕ´Ï´Ù
set filename=%%A
set Name=%filename:~0,-5%
ffmpeg -y -i "%Name%.mkv" -map 0:0 -c copy "%Name%_VIDEO.mp4"
ffmpeg -y -i "%Name%.mkv" -map 0:1 -c copy "%Name%_ALL.wav"
ffmpeg -y -i "%Name%.mkv" -map 0:2 -c copy "%Name%_DRUM.wav"
ffmpeg -y -i "%Name%.mkv" -map 0:3 -c copy "%Name%_PC.wav"
ffmpeg -y -i "%Name%.mkv" -map 0:4 -c copy "%Name%_MIC.wav"
move "%Name%.mkv" DONE\
)
pause
exit
ÀÌ°Ô µÉÁö¸¦ ¸ð¸§ ±×³É °ýÈ£À§Ä¡°¡ °Å½½¸®°í º¯¼ö¸íÀÌ °Å½½·Á¼ ^^
±×¸®°í Æú´õ °æ·Î°¡ À©µµ¿ì ¹öÀü¶Ç´Â °èÁ¤¿¡ µû¶ó ¹èÄ¡ÆÄÀÏ ½ÃÀÛÀ§Ä¡¿¡¼ ½ÃÀÛÇϴ°æ¿ì°¡ ÀÖ°í Àý´ë°æ·Î(?)¿¡¼ ½ÃÀÛÇϴ°æ¿ì°¡ ÀÖ¾î¼ Èì~~
Dos´Â ¹è¿îÀûÀ̾øÀ¸´Ï ±×Àú ±î¸·´«....¤¾¤¾....
for %%A in (*.mkv) do for /f "tokens=1 delims=." %%F in ("%%A") do (
ffmpeg -y -i "%%A" -map 0:0 -c copy "%%F_VIDEO.mp4"
.....
.....
)
´ëÃæ ÀÌ·¸°Ô ÇÏ¸é µÉ °Í °°½À´Ï´Ù.