Skip to content

Commit

Permalink
fix mp4 moov
Browse files Browse the repository at this point in the history
  • Loading branch information
SurfaceS committed Jul 16, 2024
1 parent 9aa25eb commit be4438a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main/java/net/pms/encoders/FFMpegVideo.java
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,17 @@ protected synchronized List<String> getVideoTranscodeOptions(StoreItem item, Med
transcodeOptions.add(FormatConfiguration.MP4);

transcodeOptions.add("-movflags");
transcodeOptions.add("frag_keyframe+faststart");
if (encodingFormat.isTranscodeToH265()) {
//todo: check if it is the rigth settings
//I splitted it as it break moov on H264 output.
//I don't know about h265 requirements, but faststart
// need seekable output (what pipe streamed is not).
// and frag_keyframe without empty_moov miss the first frame.
//I think it should be frag_keyframe+empty_moov.
transcodeOptions.add("frag_keyframe+faststart");
} else {
transcodeOptions.add("frag_keyframe+empty_moov");
}
} else {
transcodeOptions.add("vob");
}
Expand Down

0 comments on commit be4438a

Please sign in to comment.