Posts: 5,031
Threads: 175
Joined: 2015 Jan
Thanks: 3180
Given 2944 thank(s) in 1285 post(s)
Country:
Stupid question. I have a video file the is a certain length and subs for that video that are a little too long (by a little less then a min). Is there a way in MKVmerge to create the mkv to the length of the video and not the subs?
When I mux the video and subs, the running time is that of the subs. Which means a minute of extra black frames at the end. I tried cutting the file in mkmerge to the length of the video or spiting the file to the length of the video but neither work.
I don't want to go in and edit the subs since this should work in mkvmerge but its not and it feels like I'm missing something obvious.
Posts: 1,554
Threads: 60
Joined: 2015 Jan
Thanks: 229
Given 627 thank(s) in 372 post(s)
Country:
As splitting by duration does not work (possibly because of the format of the subs), I don't think there's a way in MKVToolNix. You might try ffmpeg instead.
deleted user
Unregistered
Thanks:
Given thank(s) in post(s)
Unfortunately I have nothing outright helpful to say, but personally I'd try if it happens no matter the type (SRT/VOB/PGS/...) of the subtitle, to see if maybe it is a problem with a specific type of sub.
Posts: 121
Threads: 5
Joined: 2017 Jun
Thanks: 59
Given 61 thank(s) in 45 post(s)
Country:
2019-10-30, 02:01 AM
(This post was last modified: 2019-10-30, 02:45 AM by Plissken1138.)
As I never had this situation so far I just did a test in latest MKVToolNix with SRT text subs. Although MediaInfo reads the resulting video file as a longer than video stream is, playback ends when video stream ends. There are no additional frames with overhead subtitle lines.
Posts: 1,554
Threads: 60
Joined: 2015 Jan
Thanks: 229
Given 627 thank(s) in 372 post(s)
Country:
Yeah, I guess that the subs are SUP and that avoiding conversion is the idea. If trying different formats were an option, then truncating them would presumably be an option (because while you are doing one, you can just as easily do the other).
Posts: 5,031
Threads: 175
Joined: 2015 Jan
Thanks: 3180
Given 2944 thank(s) in 1285 post(s)
Country:
Good guess, the subs are sups hence the trying to not convert them. It was a mystery to me as to why mkvmerge will cut video and audio without hesitation but the sups are a roadblock.
MPC HC and VLC definitely show and play an additional min of blank space at the end to accommodate the sup subs.
Is there a way to shorten sups without getting into the weeds of “opening” them up
Thanks for the feedback guys.
Posts: 5,031
Threads: 175
Joined: 2015 Jan
Thanks: 3180
Given 2944 thank(s) in 1285 post(s)
Country:
Cool, I'll give those a try. Thanks Plissken