Skip to content
Snippets Groups Projects
Commit d6d27f91 authored by Anduin Xue's avatar Anduin Xue
Browse files

Upgrade parser.

parent 28719dd6
No related branches found
No related tags found
No related merge requests found
...@@ -45,9 +45,10 @@ namespace Aiursoft.Parser.FFmpeg ...@@ -45,9 +45,10 @@ namespace Aiursoft.Parser.FFmpeg
var fileInfo = new FileInfo(filePath); var fileInfo = new FileInfo(filePath);
var shouldParse = var shouldParse =
fileInfo.Length > 20 * 1024 * 1024 && // 20MB fileInfo.Length > 20 * 1024 * 1024 && // 20MB
!baseFileInfo.Contains("Video: hevc") || // Not HEVC
baseFileInfo.Contains("creation_time") || // Or contains privacy info (
!filePath.EndsWith(".mp4"); // Or not MP4 !baseFileInfo.Contains("Video: hevc") || // Not HEVC
);
var bareName = Path.GetFileNameWithoutExtension(filePath); var bareName = Path.GetFileNameWithoutExtension(filePath);
var newFileName = $"{fileInfo.Directory}{Path.DirectorySeparatorChar}{bareName}_265.mp4"; var newFileName = $"{fileInfo.Directory}{Path.DirectorySeparatorChar}{bareName}_265.mp4";
if (shouldParse) if (shouldParse)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<PropertyGroup> <PropertyGroup>
<!--Build and code--> <!--Build and code-->
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<Version>0.0.1</Version> <Version>0.0.2</Version>
<TargetFramework>net6.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
<AssemblyName>parser</AssemblyName> <AssemblyName>parser</AssemblyName>
<RootNamespace>Aiursoft.Parser</RootNamespace> <RootNamespace>Aiursoft.Parser</RootNamespace>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment