From dbb5bc7f94ae9af1e3f7bd65f08e7d3f354efd2b Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Tue, 18 Dec 2018 00:55:45 +0100 Subject: [PATCH] Adds surround to stereo --- .idea/encodings.xml | 4 ++++ .idea/misc.xml | 2 +- src/ffmpegconverter/converter/VideoConverter.java | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .idea/encodings.xml diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..15a15b2 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index a2598f9..8c02085 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,7 +3,7 @@ - + \ No newline at end of file diff --git a/src/ffmpegconverter/converter/VideoConverter.java b/src/ffmpegconverter/converter/VideoConverter.java index 5045265..b566d22 100644 --- a/src/ffmpegconverter/converter/VideoConverter.java +++ b/src/ffmpegconverter/converter/VideoConverter.java @@ -62,7 +62,7 @@ public class VideoConverter extends Converter { } //TODO: Scale subtitles to video command.add("-filter_complex"); - command.add("[1:s]scale=width=1920:height=808,crop=w=1920:h=808:x=0:y=out_h[sub];[" + videoStreams.get(0) + ":v][sub]overlay"); + command.add("[1:s]scale=width=1920:height=800,crop=w=1920:h=800:x=0:y=out_h[sub];[" + videoStreams.get(0) + ":v][sub]overlay"); command.add("-profile:v"); command.add("baseline"); } @@ -77,6 +77,8 @@ public class VideoConverter extends Converter { command.add("0:" + audioStreams.get(0)); } } + command.add("-af"); + command.add("pan=stereo|FL < 1.0*FL + 0.707*FC + 0.707*BL|FR < 1.0*FR + 0.707*FC + 0.707*BR"); command.add(outFile); return command.toArray(new String[0]);