Skip to content

Commit

Permalink
feat: optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
itning committed Feb 13, 2024
1 parent a97a28c commit 2753f82
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ public static void converterVideo(String ffmpegPath,
command.add(Optional.ofNullable(params.getStartNumber()).orElse(0).toString());
command.add("-f");
command.add("hls");
command.add("-hls_segment_filename");
command.add(Optional.ofNullable(params.getHlsSegmentFileName()).orElse("output_%03d.ts"));
}
command.add(outFileName);
command.add("-progress");
Expand Down Expand Up @@ -184,6 +186,7 @@ public static class ConverterParams {
private Integer startNumber;
private Integer hlsTime;
private Integer hlsListSize;
private String hlsSegmentFileName;
private String videoBitRate;
private String audioBitRate;
private String minVideoBitRate;
Expand Down

0 comments on commit 2753f82

Please sign in to comment.