|
@@ -13,9 +13,71 @@ internal static class PocFfMpegReader
|
|
|
//Mp4Poc();
|
|
|
//JpgPoc();
|
|
|
//WebPPoc();
|
|
|
+ //LogPoc();
|
|
|
+ //IsoPoc();
|
|
|
//SUCCESS
|
|
|
}
|
|
|
|
|
|
+ private static void IsoPoc()
|
|
|
+ {
|
|
|
+ //choose a file to open
|
|
|
+ var fse = new FileSystemEnumerable<FSE>(
|
|
|
+ "library-fs",
|
|
|
+ (ref FileSystemEntry p) => new(
|
|
|
+ p.IsDirectory,
|
|
|
+ p.ToFullPath(),
|
|
|
+ p.Length,
|
|
|
+ p.LastWriteTimeUtc
|
|
|
+ ),
|
|
|
+ new()
|
|
|
+ {
|
|
|
+ RecurseSubdirectories = true,
|
|
|
+ })
|
|
|
+ {
|
|
|
+ ShouldIncludePredicate = (ref FileSystemEntry p) => p.ToFullPath().EndsWith(".iso", true, null)
|
|
|
+ };
|
|
|
+
|
|
|
+ var file = fse.First();
|
|
|
+ var filePath = file.path;
|
|
|
+
|
|
|
+ var meta = FfMpegReader.Read(filePath, 0, out var err);
|
|
|
+ if (meta == null && err != null)
|
|
|
+ {
|
|
|
+ int bp1 = 0;
|
|
|
+ }
|
|
|
+ int bp = 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ private static void LogPoc()
|
|
|
+ {
|
|
|
+ //choose a file to open
|
|
|
+ var fse = new FileSystemEnumerable<FSE>(
|
|
|
+ "library",
|
|
|
+ (ref FileSystemEntry p) => new(
|
|
|
+ p.IsDirectory,
|
|
|
+ p.ToFullPath(),
|
|
|
+ p.Length,
|
|
|
+ p.LastWriteTimeUtc
|
|
|
+ ),
|
|
|
+ new()
|
|
|
+ {
|
|
|
+ RecurseSubdirectories = true,
|
|
|
+ })
|
|
|
+ {
|
|
|
+ ShouldIncludePredicate = (ref FileSystemEntry p) => p.ToFullPath().EndsWith(".log", true, null)
|
|
|
+ };
|
|
|
+
|
|
|
+ var file = fse.First();
|
|
|
+ var filePath = file.path;
|
|
|
+
|
|
|
+ var meta = FfMpegReader.Read(filePath, 0, out var err);
|
|
|
+ if (meta == null && err != null)
|
|
|
+ {
|
|
|
+ int bp1 = 0;
|
|
|
+ }
|
|
|
+ int bp = 0;
|
|
|
+ }
|
|
|
+
|
|
|
private static void WebPPoc()
|
|
|
{
|
|
|
//choose a file to open
|
|
@@ -38,7 +100,7 @@ internal static class PocFfMpegReader
|
|
|
var file = fse.First();
|
|
|
var filePath = file.path;
|
|
|
|
|
|
- var meta = FfMpegReader.Read(filePath, 0);
|
|
|
+ var meta = FfMpegReader.Read(filePath, 0, out var err);
|
|
|
int bp = 0;
|
|
|
}
|
|
|
|
|
@@ -64,7 +126,7 @@ internal static class PocFfMpegReader
|
|
|
var file = fse.First();
|
|
|
var filePath = file.path;
|
|
|
|
|
|
- var meta = FfMpegReader.Read(filePath, 0);
|
|
|
+ var meta = FfMpegReader.Read(filePath, 0, out var err);
|
|
|
int bp = 0;
|
|
|
}
|
|
|
|
|
@@ -90,7 +152,7 @@ internal static class PocFfMpegReader
|
|
|
var file = fse.First();
|
|
|
var filePath = file.path;
|
|
|
|
|
|
- var meta = FfMpegReader.Read(filePath, 0);
|
|
|
+ var meta = FfMpegReader.Read(filePath, 0, out var err);
|
|
|
int bp = 0;
|
|
|
}
|
|
|
|
|
@@ -116,7 +178,7 @@ internal static class PocFfMpegReader
|
|
|
var file = fse.First();
|
|
|
var filePath = file.path;
|
|
|
|
|
|
- var meta = FfMpegReader.Read(filePath, 0);
|
|
|
+ var meta = FfMpegReader.Read(filePath, 0, out var err);
|
|
|
int bp = 0;
|
|
|
}
|
|
|
}
|