From e4a85c96d5e2517f07cc7367e7fec5efe511507b Mon Sep 17 00:00:00 2001 From: lwy Date: Mon, 8 May 2023 16:13:06 +0800 Subject: [PATCH] =?UTF-8?q?bug=20fix=2020230508=20=E5=9F=BA=E6=9C=AC?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=BC=80=E5=8F=91=EF=BC=8C=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E5=88=9B=E5=BB=BA=EF=BC=8C=E8=BD=AC=E7=A0=81?= =?UTF-8?q?=E6=97=B6=E4=BD=BF=E7=94=A8GPU=E5=8A=A0=E9=80=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 38 ++++++ .idea/artifacts/createWorkFolder.xml | 10 -- .idea/artifacts/createWorkFolder_jar.xml | 10 ++ .idea/artifacts/create_folder_jar.xml | 8 ++ .idea/encodings.xml | 7 + .idea/inspectionProfiles/Project_Default.xml | 3 + .idea/misc.xml | 8 ++ .idea/uiDesigner.xml | 124 ++++++++++++++++++ META-INF/MANIFEST.MF | 2 +- .../create_workfolder.jar | Bin 0 -> 13044 bytes .../create_folder_jar/create_folder.jar | Bin 0 -> 2901 bytes .../create_workfolder.jar | Bin 0 -> 8281 bytes .../create_workfolder/.idea/.gitignore | 8 ++ .../.idea/artifacts/createWorkFolder_jar.xml | 10 ++ .../inspectionProfiles/Project_Default.xml | 5 + .../.idea/libraries/create_workfolder.xml | 11 ++ .../create_workfolder/.idea/misc.xml | 6 + .../create_workfolder/.idea}/modules.xml | 0 .../create_workfolder/.idea/vcs.xml | 6 + .../create_workfolder/META-INF/MANIFEST.MF | 3 + .../create_workfolder/fastConvertMPG2mp4.bat | 0 pom.xml | 32 +++++ .../CreateWorkFolder.java | 12 +- .../create_workfolder.iml | 0 src/main/java/org/example/Main.java | 78 +++++++++++ src/main/resources/META-INF/MANIFEST.MF | 3 + src/main/resources/fastConvertMPG2mp4.bat | 10 ++ 27 files changed, 377 insertions(+), 17 deletions(-) create mode 100644 .gitignore delete mode 100644 .idea/artifacts/createWorkFolder.xml create mode 100644 .idea/artifacts/createWorkFolder_jar.xml create mode 100644 .idea/artifacts/create_folder_jar.xml create mode 100644 .idea/encodings.xml create mode 100644 .idea/uiDesigner.xml create mode 100644 out/artifacts/createWorkFolder_jar/create_workfolder.jar create mode 100644 out/artifacts/create_folder_jar/create_folder.jar create mode 100644 out/artifacts/create_workfolder_jar/create_workfolder.jar create mode 100644 out/production/create_workfolder/.idea/.gitignore create mode 100644 out/production/create_workfolder/.idea/artifacts/createWorkFolder_jar.xml create mode 100644 out/production/create_workfolder/.idea/inspectionProfiles/Project_Default.xml create mode 100644 out/production/create_workfolder/.idea/libraries/create_workfolder.xml create mode 100644 out/production/create_workfolder/.idea/misc.xml rename {.idea => out/production/create_workfolder/.idea}/modules.xml (100%) create mode 100644 out/production/create_workfolder/.idea/vcs.xml create mode 100644 out/production/create_workfolder/META-INF/MANIFEST.MF rename fastConvertMPG2mp4.bat => out/production/create_workfolder/fastConvertMPG2mp4.bat (100%) create mode 100644 pom.xml rename CreateWorkFolder.java => src/CreateWorkFolder.java (91%) rename create_workfolder.iml => src/create_workfolder.iml (100%) create mode 100644 src/main/java/org/example/Main.java create mode 100644 src/main/resources/META-INF/MANIFEST.MF create mode 100644 src/main/resources/fastConvertMPG2mp4.bat diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ff6309 --- /dev/null +++ b/.gitignore @@ -0,0 +1,38 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### IntelliJ IDEA ### +.idea/modules.xml +.idea/jarRepositories.xml +.idea/compiler.xml +.idea/libraries/ +*.iws +*.iml +*.ipr + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/.idea/artifacts/createWorkFolder.xml b/.idea/artifacts/createWorkFolder.xml deleted file mode 100644 index c11467c..0000000 --- a/.idea/artifacts/createWorkFolder.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - $PROJECT_DIR$/out/artifacts/createWorkFolder - - - - - - - \ No newline at end of file diff --git a/.idea/artifacts/createWorkFolder_jar.xml b/.idea/artifacts/createWorkFolder_jar.xml new file mode 100644 index 0000000..f4fc215 --- /dev/null +++ b/.idea/artifacts/createWorkFolder_jar.xml @@ -0,0 +1,10 @@ + + + $PROJECT_DIR$/out/artifacts/createWorkFolder_jar + + + + + + + \ No newline at end of file diff --git a/.idea/artifacts/create_folder_jar.xml b/.idea/artifacts/create_folder_jar.xml new file mode 100644 index 0000000..4bf4fa4 --- /dev/null +++ b/.idea/artifacts/create_folder_jar.xml @@ -0,0 +1,8 @@ + + + $PROJECT_DIR$/out/artifacts/create_folder_jar + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..aa00ffa --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 8d66637..c733ec1 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -1,5 +1,8 @@ \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 07115cd..82dbec8 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,5 +1,13 @@ + + + + diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml new file mode 100644 index 0000000..2b63946 --- /dev/null +++ b/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/META-INF/MANIFEST.MF b/META-INF/MANIFEST.MF index 8178fcc..ca706df 100644 --- a/META-INF/MANIFEST.MF +++ b/META-INF/MANIFEST.MF @@ -1,3 +1,3 @@ Manifest-Version: 1.0 -Main-Class: CreateWorkFolder +Main-Class: src.CreateWorkFolder diff --git a/out/artifacts/createWorkFolder_jar/create_workfolder.jar b/out/artifacts/createWorkFolder_jar/create_workfolder.jar new file mode 100644 index 0000000000000000000000000000000000000000..ed887f4a2df4f2308ef5f6a5c119516dee24c84d GIT binary patch literal 13044 zcmd^FbyU>bw+HDEkS+-U>245dq`Mo2mS!lGZV3^P?o_&^k!}!%MnpvfX{7tj=)E#{ zz5agh-}m-f-?e6~IeVXT_St9G`6$c5!Q;XpBO}8o`n=SHfg)TOco+pqbx~#+MJZMV zQAHUkNi}sA1*waE7?@p!!2x+WW|q;La?A|FgCkX{Y~!3CmcA(r4uV{VWtdoMRq0q{ zCtX-%6_{jhj8VdgMol6ncko+#XYRMX%a@?q;2vR3IqR-Q z+^Vi(UnE9(9tHPEUc@SJ9K$(EgqBiR)aCu5ZYS>WOPSsXiAl^P4SA+?tTTOOZ!7K< zoKm7P>F}yRx`hPKE>0ZUS4sN>Yv_!CV*yS&v6GhD*n~ZHdCM1X+>hKA{1a~8Z&>9| z{5C-UaI(u2)}Yz7sA41P_9eE@cRj}4t5d{+g@IWGe-J%_HHHlHkE29{=+WBD+=TT? z*V4b}8tdnnD~+pZdelGe4tJGH-&{C-vO2b0rJJts(5Lb-32TD4la!5O^8IL)bfY)} z{piHhLapa19RqpA+rW!b+QyUgt)v6fh0X#_Ef{WkkHA29x_bt%S9E#~mW!rZwOh|; zy6~kk+(5INQ?9M&)puxSSv+Qx) zpz6WYansCU+{||4ag*Z!aQL?ol%-)CBqnbzeYmO^^>$J`n z{$|a&QoH5e!i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yU-_|NX4}w!awY#~lm``dUq2I{qe|Z*4ND=-VK_w>kH(&aaGQi3GASHn8nK L0sAWIpWgllLfN|% literal 0 HcmV?d00001 diff --git a/out/artifacts/create_workfolder_jar/create_workfolder.jar b/out/artifacts/create_workfolder_jar/create_workfolder.jar new file mode 100644 index 0000000000000000000000000000000000000000..fc14ab09e2ea22fac5855ea01b2af44256d56b1a GIT binary patch literal 8281 zcmaJ`1yoeq_XYuJBnFTULAnG9L8X!IMjE7Rh5-bmL%Q1mL8MhcTDoCikOqa37C}0s z|1-Y-6MVkk+q3RkGi&ZScYpitbM`*pr>2O84nV=e!a`AyDbzu^VgM9$6lEDL2`+gR zSsrBx6?s`1O)YL^+4DXWlwDf`pjxrQF;yx(P$z84C z!mXgpDUT21=>zw}gRx14H$LP2A06g5RmtoJ|>Z%c$vPKZkl;VBLZ3Kq&Ao?b`%%WZ3EWyXWN=Pxud zc?G|rA^dd@_Y+%??Gqb5+we-I0Yur}ufm&(C-s@Dter~6 zgE)1FNz!AZxU{Td-T2J*{`}G{(D@sdhGWQP`hhvTqkvx*Kak7?gX!UM&aQ%!#*1=QCLIj4U|BS>XN;5Z*t+km2 z2zVtXKcs(u!)(7|a(TCfo0S>J%EZIj&EDGC!P3gj#Lmo(+tbk@I$qhnO`I@vGw{Mp z|3g<}|82F>FtP}l4`HtSg5{aeJ10s@m4dd!Gg{`t$Xm?*9hveT2 zOuS+91y}#cZn_59@tXwua77l=nN3kyLMTrMTy6(rracJr>Ddr z!@1Ok`G~cn#o_Cl>`(86v*!9Vh!f2y z9*SsfgP=(ye|@he5(IpoUDg6DASnHt(&0k3=Iw})$WIqc#=Of z@&3Rq$R^tJ2$7NtP)Q_!Y~UhSzwO%K*c${CivI+Q{|hYG;wMmWY<>v8N)gv(sgwCf;U@XzIdT^Vx|ms5AzxI!-ec!aS~r`r zJN$UZxy5q_yN9{U5>!$$Uk5O~F|P?JOLRAHww*bSTv$l5o2K)}b-EqgK}sC{*fm7F z^fb#o#IMzR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i3>u@SpRHULPcOc^_ow;nfvf_CGw0imI?`$J zjx_JccV{Q79IJMQpY{9Y-ROKQWJEJ`kw`#Y^iuQQyP0q=A6J?wYiXf)1wLobAyLT` zvVtQo*t@6YWX;b9!>@CWP<}PZlqn$+Zm{@(*?fUmv6xs-SgKL=&`?l15wez=BI-2& z%B2!_Rrx|HalhNI75xug4mk@B%Kui$E@vr5eEnN9yL>W|@x7`vA=&>+8$^8lYs{sF z_Fqr@ee`?8_WalAOSS1LYNR@KRhU7lQR&aU z%g7*Ao~w!pQsucc;s2cGPtE7Q9Q-|M*AcJ&F9$Cbm8(%hHV{{(3#0;bX#)Q;`j4m~ z$>D!ac~uZVY95zHit)EYe=8tY$08HxD!-1D3@(irK`Z`>_~-DeBsY?TzqE^A z!~dU>zd97jf?uUBkSzG6)gd~szn=UXCw_GTB*SsFNkcXamqv?-!XE|lC*N^(4&>Xo z+KwR0>ZQ3Oe*PJKM00m_3S{4MwY2~41`P4@-@6#(9RF+SBb$Ir>mvWHCAiFSWK(c; iPx{^a?}%Z4L;%?$s3~F~6?hb4#HRs~aN$(QU;hXG@`dOC literal 0 HcmV?d00001 diff --git a/out/production/create_workfolder/.idea/.gitignore b/out/production/create_workfolder/.idea/.gitignore new file mode 100644 index 0000000..35410ca --- /dev/null +++ b/out/production/create_workfolder/.idea/.gitignore @@ -0,0 +1,8 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/out/production/create_workfolder/.idea/artifacts/createWorkFolder_jar.xml b/out/production/create_workfolder/.idea/artifacts/createWorkFolder_jar.xml new file mode 100644 index 0000000..7863538 --- /dev/null +++ b/out/production/create_workfolder/.idea/artifacts/createWorkFolder_jar.xml @@ -0,0 +1,10 @@ + + + $PROJECT_DIR$/out/artifacts/createWorkFolder_jar + + + + + + + \ No newline at end of file diff --git a/out/production/create_workfolder/.idea/inspectionProfiles/Project_Default.xml b/out/production/create_workfolder/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..8d66637 --- /dev/null +++ b/out/production/create_workfolder/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/out/production/create_workfolder/.idea/libraries/create_workfolder.xml b/out/production/create_workfolder/.idea/libraries/create_workfolder.xml new file mode 100644 index 0000000..c90c6ad --- /dev/null +++ b/out/production/create_workfolder/.idea/libraries/create_workfolder.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/out/production/create_workfolder/.idea/misc.xml b/out/production/create_workfolder/.idea/misc.xml new file mode 100644 index 0000000..07115cd --- /dev/null +++ b/out/production/create_workfolder/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/out/production/create_workfolder/.idea/modules.xml similarity index 100% rename from .idea/modules.xml rename to out/production/create_workfolder/.idea/modules.xml diff --git a/out/production/create_workfolder/.idea/vcs.xml b/out/production/create_workfolder/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/out/production/create_workfolder/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/out/production/create_workfolder/META-INF/MANIFEST.MF b/out/production/create_workfolder/META-INF/MANIFEST.MF new file mode 100644 index 0000000..8178fcc --- /dev/null +++ b/out/production/create_workfolder/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Main-Class: CreateWorkFolder + diff --git a/fastConvertMPG2mp4.bat b/out/production/create_workfolder/fastConvertMPG2mp4.bat similarity index 100% rename from fastConvertMPG2mp4.bat rename to out/production/create_workfolder/fastConvertMPG2mp4.bat diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..66d62ec --- /dev/null +++ b/pom.xml @@ -0,0 +1,32 @@ + + + 4.0.0 + + org.example + create_folder + 1.0 + + + 17 + 17 + UTF-8 + + + + + maven-jar-plugin + 3.3.0 + + + + true + org.example.Main + + + + + + + \ No newline at end of file diff --git a/CreateWorkFolder.java b/src/CreateWorkFolder.java similarity index 91% rename from CreateWorkFolder.java rename to src/CreateWorkFolder.java index 0f7cc7b..84a9c5e 100644 --- a/CreateWorkFolder.java +++ b/src/CreateWorkFolder.java @@ -1,10 +1,10 @@ -import java.io.File; +package src; + import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.time.LocalDate; -import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; /** @@ -14,10 +14,10 @@ public class CreateWorkFolder { public static void main(String[] args) { // 获取今天的日期,并将其格式化为 "yyyy-MM-dd" 的字符串 LocalDate today = LocalDate.now(); - String dateStr = today.format(DateTimeFormatter.ofPattern("M-d")); + String dateStr = today.format(DateTimeFormatter.ofPattern("M.d")); // 创建今天日期的目录 - Path dirPath = Paths.get("X:\\" + dateStr); + Path dirPath = Paths.get("D:\\" + dateStr); createFolder(dirPath); // 在目录下创建三个子目录 @@ -41,8 +41,8 @@ public class CreateWorkFolder { } // 在video目录下创建一个转换视频文件 - Path sourcePath = Paths.get("fastConvertMPG2mp4.bat"); - Path videoConvertFile = Paths.get(dirPath.toString()+"\\video").resolve("fastConvertMPG2mp4.bat"); + Path sourcePath = Paths.get("src/fastConvertMPG2mp4.bat"); + Path videoConvertFile = Paths.get(dirPath.toString()+"\\video").resolve("src/fastConvertMPG2mp4.bat"); if (Files.exists(videoConvertFile)) { System.out.println("File already exists2: " + videoConvertFile); diff --git a/create_workfolder.iml b/src/create_workfolder.iml similarity index 100% rename from create_workfolder.iml rename to src/create_workfolder.iml diff --git a/src/main/java/org/example/Main.java b/src/main/java/org/example/Main.java new file mode 100644 index 0000000..50a2670 --- /dev/null +++ b/src/main/java/org/example/Main.java @@ -0,0 +1,78 @@ +package org.example; + +import java.io.IOException; +import java.io.InputStream; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.nio.file.StandardCopyOption; +import java.time.LocalDate; +import java.time.format.DateTimeFormatter; + +/** + * @author lwy + */ +public class Main { + public static void main(String[] args) { + // 获取今天的日期,并将其格式化为 "yyyy-MM-dd" 的字符串 + LocalDate today = LocalDate.now(); + String dateStr = today.format(DateTimeFormatter.ofPattern("M.d")); + + // 创建今天日期的目录 + Path dirPath = Paths.get("X:\\" + dateStr); + createFolder(dirPath); + + // 在目录下创建三个子目录 + String[] dirs = {"pic", "pic - 副本", "video", "修改后"}; + for (String subdir : dirs) { + Path subdirPath = Paths.get(dirPath.toString(), subdir); + createFolder(subdirPath); + } + + // 在目录下创建一个以今天日期命名的txt文件 + Path filePath = Paths.get(dirPath.toString(), dateStr + ".txt"); + if (Files.exists(filePath)) { + System.out.println("File already exists: " + filePath); + } else { + try { + Files.createFile(filePath); + System.out.println("File created: " + filePath); + } catch (IOException e) { + System.out.println("Failed to create file: " + e.getMessage()); + } + } + + // 在video目录下创建一个转换视频文件 + InputStream inputStream = Main.class.getClassLoader().getResourceAsStream("fastConvertMPG2mp4.bat"); + Path videoConvertFile = Paths.get(dirPath + "\\video").resolve("fastConvertMPG2mp4.bat"); + + if (Files.exists(videoConvertFile)) { + System.out.println("File already exists: " + videoConvertFile); + } else { + try { + if (inputStream != null) { + Files.copy(inputStream, videoConvertFile, StandardCopyOption.REPLACE_EXISTING); + } +// Files.copy(sourcePath, videoConvertFile); + System.out.println("File created: " + videoConvertFile); + } catch (IOException e) { + System.out.println("Failed to create file: " + e.getMessage()); + } + } + + System.out.println("文件夹和文件创建结束!!!"); + } + + static void createFolder(Path subdirPath) { + if (Files.exists(subdirPath)) { + System.out.println("Directory already exists: " + subdirPath); + } else { + try { + Files.createDirectory(subdirPath); + System.out.println("Directory created: " + subdirPath); + } catch (IOException e) { + System.out.println("Failed to create directory: " + e.getMessage()); + } + } + } +} \ No newline at end of file diff --git a/src/main/resources/META-INF/MANIFEST.MF b/src/main/resources/META-INF/MANIFEST.MF new file mode 100644 index 0000000..53851ab --- /dev/null +++ b/src/main/resources/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Main-Class: org.example.Main + diff --git a/src/main/resources/fastConvertMPG2mp4.bat b/src/main/resources/fastConvertMPG2mp4.bat new file mode 100644 index 0000000..bc6c97c --- /dev/null +++ b/src/main/resources/fastConvertMPG2mp4.bat @@ -0,0 +1,10 @@ +@echo off +chcp 65001 + +for %%a in (*.mpg) do ffmpeg -hwaccel cuvid -i "%%~a" -c:v h264_nvenc -preset fast -threads 0 "%%~na.mp4" + +echo. +echo 转码已完成 convert success!!! +echo. + +pause \ No newline at end of file