Skip to content

Commit

Permalink
fixed bug with sar in 3d mode
Browse files Browse the repository at this point in the history
  • Loading branch information
T0biasCZe committed Jun 18, 2023
1 parent 53bd69b commit 0cecd85
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions WindowsFormsApp1/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public partial class Form1 : Form {
SoundPlayer commandsound = new SoundPlayer();
Process ffmpeg = new Process();
WindowsMediaPlayer player = new WindowsMediaPlayer();
string verze = "dev v2.1.0";
string verze = "dev v2.2.0";
string vstup;
string vstup2;
string cesta;
Expand Down Expand Up @@ -377,7 +377,7 @@ private async Task convert(UInt16 fromfolder) { //tohle se vola z woomy nebo z f
}
}
if(codec == "libx264 " && DS_VF.Name == "ds_vf_3d") {
if(message_prompt2("Video Player 1.5.1 and 1.5.2 has bug with h264 3D video and plays it too fast. \n Use Video Player 1.5.0 or use mpeg2video codec instead.") == 0) {
if(message_prompt2("Video Player 1.5.1 and 1.5.2 has bug with h264 3D video and plays it too fast. \n Use Video Player 1.5.0 or use mpeg2video codec instead.\n This may be fixed in current versions") == 0) {
goto skipaa;
}
}
Expand Down Expand Up @@ -548,13 +548,13 @@ private async Task convert(UInt16 fromfolder) { //tohle se vola z woomy nebo z f
}
else if(ds_outputtype == 2) {
if(filtr.Name == "scale_linear") {
argumenty = "-filter_complex \"split[l][r];[l]stereo3d=sbsl:ml[left];[left]scale=" + res_normal + ":flags=lanczos[left];[r]stereo3d=sbsl:mr[right];[right]scale=" + res_normal + ":flags=lanczos,setsar=1[right]\" ";
argumenty = "-filter_complex \"split[l][r];[l]stereo3d=sbsl:ml[left];[left]scale=" + res_normal + ":flags=lanczos,setsar=1[left];[r]stereo3d=sbsl:mr[right];[right]scale=" + res_normal + ":flags=lanczos,setsar=1[right]\" ";
}
else if(filtr.Name == "scale_nearest") {
argumenty = "-filter_complex \"split[l][r];[l]stereo3d=sbsl:ml[left];[left]scale=" + res_normal + ":flags=neighbor[left];[r]stereo3d=sbsl:mr[right];[right]scale=" + res_normal + ":flags=neighbor,setsar=1[right]\" ";
argumenty = "-filter_complex \"split[l][r];[l]stereo3d=sbsl:ml[left];[left]scale=" + res_normal + ":flags=neighbor,setsar=1[left];[r]stereo3d=sbsl:mr[right];[right]scale=" + res_normal + ":flags=neighbor,setsar=1[right]\" ";
}
else {
argumenty = "-filter_complex \"split[l][r];[l]stereo3d=sbsl:ml[left];[left]scale=" + res_double + ":flags=lanczos[left];[left]scale=" + res_normal + ":flags=neighbor[left];[r]stereo3d=sbsl:mr[right];[right]scale=" + res_double + ":flags=lanczos,setsar=1[right];[right]scale=" + res_normal + ":flags=neighbor,setsar=1[right]\" ";
argumenty = "-filter_complex \"split[l][r];[l]stereo3d=sbsl:ml[left];[left]scale=" + res_double + ":flags=lanczos,setsar=1[left];[left]scale=" + res_normal + ":flags=neighbor,setsar=1[left];[r]stereo3d=sbsl:mr[right];[right]scale=" + res_double + ":flags=lanczos,setsar=1[right];[right]scale=" + res_normal + ":flags=neighbor,setsar=1[right]\" ";
}
output = " -map [left] -map 0:a -c:a aac -b:a 128k " + surrounddownmix + " -b:v " + bitrate + "k -c:v " + codec + bframes + audiomix3d + " left.mkv -map [right] -an -b:v " + bitrate + "k -c:v " + codec + bframes + " right.mkv";
debug_textbox.Text += "Uvíííííííííííííííííí:\n";
Expand Down

0 comments on commit 0cecd85

Please sign in to comment.