I tried OpenShot 2.6.1 and it crashed twice in less than 5 minutes ๐
Conversation
Notices
-
Bernie (codewiz@mstdn.io)'s status on Tuesday, 22-Feb-2022 00:09:06 UTC Bernie -
Bernie (codewiz@mstdn.io)'s status on Tuesday, 22-Feb-2022 00:12:03 UTC Bernie All I want to do is extract a clip from an episode while retaining the subtitles and possibly throwing away the audio track containing the English dub.
-
Bernie (codewiz@mstdn.io)'s status on Tuesday, 22-Feb-2022 00:12:27 UTC Bernie I tried Kdenlive first, but it can't extract the subs directly from the source video.
-
Bernie (codewiz@mstdn.io)'s status on Tuesday, 22-Feb-2022 00:16:10 UTC Bernie Ok, what else can I use?
Pitivi hasn't seen a new release in one year, and judging from the git history it's not a very vital project...
-
Bernie (codewiz@mstdn.io)'s status on Tuesday, 22-Feb-2022 00:22:19 UTC Bernie @smoldesu Let me give it a try...
-
smol, desu ne? (smoldesu@mastodon.social)'s status on Tuesday, 22-Feb-2022 00:22:20 UTC smol, desu ne? @codewiz aegisub?
-
Bernie (codewiz@mstdn.io)'s status on Tuesday, 22-Feb-2022 01:18:37 UTC Bernie Handbrake is the best GUI tool I could find to transcode video clips:
https://handbrake.fr/It lets me pick any audio tracks and subtitles from the input.
-
Bernie (codewiz@mstdn.io)'s status on Tuesday, 22-Feb-2022 01:20:27 UTC Bernie While Handbrake is not a full-blown video editor, it's easy to copy the start/end times from a video player.
I used mpv, which can display the current offset in the overlay UI (you have to click on the time to toggle milliseconds):
-
Bernie (codewiz@mstdn.io)'s status on Tuesday, 22-Feb-2022 02:20:53 UTC Bernie For some reason, HandBrake made the subs look ugly...
Maybe the source video had font attachments and HandBrake didn't copy them? ๐คท
-
Bernie (codewiz@mstdn.io)'s status on Tuesday, 22-Feb-2022 02:38:10 UTC Bernie So I'm back to #ffmpeg, the only tool that's versatile enough, but also unreasonably hard to use:
ffmpeg -ss 624.04 -t 304.971 -i honorifics.mkv -map 0:a:1 -map 0:v:0 -map 0:s:2 -map_chapters -1 -vf scale=h=576:w=-1 -c:v libvpx-vp9 -b:v 200k -c:a libopus -b:a 64k -threads 6 honorifics3.mkv
-
Bernie (codewiz@mstdn.io)'s status on Tuesday, 22-Feb-2022 02:43:39 UTC Bernie The #ffmpeg output looks good, but there's a strange issue: players think the video is 13m20s, but the file ends after 5 minutes (as expected).
Perhaps using the -t option (relative duration) triggers this bug, I'll try again using -to instead ๐ค
-
Bernie (codewiz@mstdn.io)'s status on Tuesday, 22-Feb-2022 02:44:53 UTC Bernie @pseudoramble Perhaps I've hit this bug:
https://github.com/libass/libass/issues/315 -
Doug Swain (pseudoramble@indieweb.social)'s status on Tuesday, 22-Feb-2022 02:44:54 UTC Doug Swain @codewiz that's weird. The couple of times I've used Handbrake for that it's worked pretty well and I don't recall the subtitles looking odd.
In conversation permalink -
tromino@mstdn.io's status on Tuesday, 22-Feb-2022 02:55:47 UTC tromino @codewiz I think I've had something like this happen before... don't remember exactly how, but I'm pretty sure just remuxing the file again fixed it for me? (maybe I'm misremembering, not sure)
In conversation permalink -
Bernie (codewiz@mstdn.io)'s status on Tuesday, 22-Feb-2022 03:37:12 UTC Bernie @tromino I figured that -ss, -to and -t must be placed *after* -i in order to affect the output stream ๐
In conversation permalink -
Bernie (codewiz@mstdn.io)'s status on Tuesday, 22-Feb-2022 05:16:22 UTC Bernie In the end I had to switch to H.264 with hardcoded subtitles because #Mastodon strips the subs when sanitizing / re-encoding videos.
So this is the final pipeline:
ffmpeg -i honorifics.mkv -ss 00:10:24.040 -to 00:15:29.011 -map 0:v:0 -map 0:a:1 -map_chapters -1 -vf "scale=h=576:w=-1,subtitles=honorifics.mkv:stream_index=2:force_style='Fontsize=24,FontName=Noto Sans Bold'" -c:v libx264 -b:v 400k -c:a aac -b:a 64k -threads 6 honorifics7.mp4
In conversation permalink -
Bernie (codewiz@mstdn.io)'s status on Tuesday, 22-Feb-2022 05:33:25 UTC Bernie @Gargron, what is Mastodon doing to sanitize / re-encode videos?
This was my original upload (H.264 17MB):
https://codewiz.org/pub/honorifics7.mp4Mastodon is now serving an MP4 file with the same quality, but now it's 26MB:
https://mstdn.io/@codewiz/107839922476887448In conversation permalink Attachments
-
Bernie (codewiz@mstdn.io)'s status on Tuesday, 22-Feb-2022 05:39:29 UTC Bernie And this is a 9.7MB WebM (VP9) with soft subs:
https://codewiz.org/pub/honorifics4.webmBrowsers don't render subs, but there are JavaScript video players that can do it:
https://github.com/sampotts/plyr@Gargron, I realize that it's not that simple... just saying it would be cool, right? ๐
In conversation permalink Attachments
-
Eugen ๐ (gargron@mastodon.social)'s status on Tuesday, 22-Feb-2022 06:36:37 UTC Eugen ๐ @codewiz Relevant options are here:
https://github.com/mastodon/mastodon/blob/main/app/models/media_attachment.rb#L75-L110
In conversation permalink -
Bernie (codewiz@mstdn.io)'s status on Tuesday, 22-Feb-2022 06:44:25 UTC Bernie @Gargron I intentionally encoded my video to H.264 + AAC, hoping it would match the passthrough, but perhaps I had the wrong colorspace or the wrong container format.
In conversation permalink -
Tagomago (tagomago@mastodon.social)'s status on Tuesday, 22-Feb-2022 08:28:00 UTC Tagomago @codewiz Mmmm... Does Mastodon support soft (encapsulated) subtitles for attached videos? That would be a surprise. @Gargron
In conversation permalink -
Tagomago (tagomago@mastodon.social)'s status on Tuesday, 22-Feb-2022 08:38:07 UTC Tagomago In conversation permalink Attachments
-