Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/org/enemydave/videoparser/ProcessCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

public class ProcessCommands {

static final String DEFAULT_ENCODING_SCRIPT = "ffmpeg -y -i INPUT_VIDEO -pix_fmt yuv420p -ss START_TIME -to END_TIME -map 0:v -c:v VIDEO_ENCODE -map 0:a -c:a aac -ac 2 -threads 4 OUTPUT_VIDEO";
static final String DEFAULT_NOT_ENCODING_SCRIPT = "ffmpeg -y -i INPUT_VIDEO -ss START_TIME -to END_TIME -map 0:v -c:v copy -map 0:a -c:a copy OUTPUT_VIDEO";
static final String DEFAULT_ENCODING_SCRIPT = "ffmpeg -y -hwaccel cuda -hwaccel_output_format cuda -i INPUT_VIDEO -ss START_TIME -to END_TIME -map 0:v -map 0:a -c:v VIDEO_ENCODE -preset p4 -profile:v high -level 4.2 -pix_fmt yuv420p -c:a aac -ac 2 -b:a 192k -threads 4 -progress pipe:1 -stats OUTPUT_VIDEO";
static final String DEFAULT_NOT_ENCODING_SCRIPT = "ffmpeg -y -i INPUT_VIDEO -ss START_TIME -to END_TIME -map 0:v -map 0:a -c:v copy -c:a aac -ac 2 -b:a 192k -progress pipe:1 -stats OUTPUT_VIDEO";

static Runtime rt = Runtime.getRuntime();

Expand Down