Skip to content

Commit 4e4acc0

Browse files
authored
changed 'mp4' to 'avi'
1 parent 4197f39 commit 4e4acc0

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

fffss.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static void Main(string[] args)
4242
string ss = "";
4343
if(i>0)
4444
{
45-
var probe = NewProcess("ffprobe.exe", $"-v error -select_streams v:0 -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 \"{args[2]}\\{name} PART{i - 1}.mp4\"");
45+
var probe = NewProcess("ffprobe.exe", $"-v error -select_streams v:0 -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 \"{args[2]}\\{name} PART{i - 1}.avi\"");
4646
probe.Start();
4747
dur += Convert.ToDouble(probe.StandardOutput.ReadToEnd())-4;
4848
ss = " -ss "+dur;
@@ -53,10 +53,10 @@ static void Main(string[] args)
5353
Run(useAlt, file, name, limit, args[2], ref result, ref error, ss, i);
5454
if(i==1)
5555
{
56-
var probe = NewProcess("ffprobe.exe", $"-v error -select_streams v:0 -show_entries format=size -of default=noprint_wrappers=1:nokey=1 \"{args[2]}\\{name} PART0.mp4\"");
56+
var probe = NewProcess("ffprobe.exe", $"-v error -select_streams v:0 -show_entries format=size -of default=noprint_wrappers=1:nokey=1 \"{args[2]}\\{name} PART0.avi\"");
5757
probe.Start();
5858
double d0 = Convert.ToDouble(probe.StandardOutput.ReadToEnd());
59-
probe = NewProcess("ffprobe.exe", $"-v error -select_streams v:0 -show_entries format=size -of default=noprint_wrappers=1:nokey=1 \"{args[2]}\\{name} PART1.mp4\"");
59+
probe = NewProcess("ffprobe.exe", $"-v error -select_streams v:0 -show_entries format=size -of default=noprint_wrappers=1:nokey=1 \"{args[2]}\\{name} PART1.avi\"");
6060
probe.Start();
6161
double d1 = Convert.ToDouble(probe.StandardOutput.ReadToEnd());
6262
probe.WaitForExit();
@@ -100,17 +100,17 @@ static Process NewProcess(string fileName, string arg)
100100
static void Run(bool alt, string file, string name, int limit, string outDir, ref string result, ref string error, string ss = "", int i=0)
101101
{
102102
var p = NewProcess("ffmpeg.exe", alt?
103-
$"-y -i \"{file}\" -map 0 -c:v copy -c:a copy -c:s mov_text -segment_time {limit} -f segment -reset_timestamps 1 \"{outDir}\\{name} PART%1d.mp4\" -loglevel error" :
104-
$"-y{ss} -i \"{file}\" -map 0 -c:v copy -c:a copy -c:s mov_text -fs {limit} -reset_timestamps 1 \"{outDir}\\{name} PART{i}.mp4\" -loglevel error");
103+
$"-y -i \"{file}\" -map 0 -c:v copy -c:a copy -c:s mov_text -segment_time {limit} -f segment -reset_timestamps 1 \"{outDir}\\{name} PART%1d.avi\" -loglevel error" :
104+
$"-y{ss} -i \"{file}\" -map 0 -c:v copy -c:a copy -c:s mov_text -fs {limit} -reset_timestamps 1 \"{outDir}\\{name} PART{i}.avi\" -loglevel error");
105105
p.Start();
106106
result = (alt? "Warning Alt method used - please double check file size" :"") + p.StandardOutput.ReadToEnd();
107107
error = p.StandardError.ReadToEnd();
108108
p.WaitForExit();
109109
if (error != "")
110110
{
111111
p = NewProcess("ffmpeg.exe", alt?
112-
$"-y -i \"{file}\" -map 0 -c:v copy -c:a copy -c:s dvdsub -segment_time {limit} -f segment -reset_timestamps 1 \"{outDir}\\{name} PART%1d.mp4\" -loglevel error":
113-
$"-y{ss} -i \"{file}\" -map 0 -c:v copy -c:a copy -c:s dvdsub -fs {limit} -reset_timestamps 1 \"{outDir}\\{name} PART{i}.mp4\" -loglevel error");
112+
$"-y -i \"{file}\" -map 0 -c:v copy -c:a copy -c:s dvdsub -segment_time {limit} -f segment -reset_timestamps 1 \"{outDir}\\{name} PART%1d.avi\" -loglevel error":
113+
$"-y{ss} -i \"{file}\" -map 0 -c:v copy -c:a copy -c:s dvdsub -fs {limit} -reset_timestamps 1 \"{outDir}\\{name} PART{i}.avi\" -loglevel error");
114114
p.Start();
115115
result = (alt ? "Warning Alt method used - please double check file size" : "") + p.StandardOutput.ReadToEnd();
116116
error = p.StandardError.ReadToEnd();
@@ -119,8 +119,8 @@ static void Run(bool alt, string file, string name, int limit, string outDir, re
119119
if (error != "")
120120
{
121121
p = NewProcess("ffmpeg.exe", alt?
122-
$"-y -i \"{file}\" -c copy -segment_time {limit} -f segment -reset_timestamps 1 \"{outDir}\\{name} PART%1d.mp4\" -loglevel error":
123-
$"-y{ss} -i \"{file}\" -c copy -fs {limit} -reset_timestamps 1 \"{outDir}\\{name} PART{i}.mp4\" -loglevel error");
122+
$"-y -i \"{file}\" -c copy -segment_time {limit} -f segment -reset_timestamps 1 \"{outDir}\\{name} PART%1d.avi\" -loglevel error":
123+
$"-y{ss} -i \"{file}\" -c copy -fs {limit} -reset_timestamps 1 \"{outDir}\\{name} PART{i}.avi\" -loglevel error");
124124
p.Start();
125125
result = (alt ? "Warning Alt method used - please double check file size _ " : "") + "Subtitle Skipped " + p.StandardOutput.ReadToEnd();
126126
error = p.StandardError.ReadToEnd();

0 commit comments

Comments
 (0)