Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
krnhotwings
May 7, 2009
Grimey Drawer
In case there are any OSX or Linux users out there..

code:
ffmpeg -ss START_TIME -i INPUT_FILE -copyts -to END_TIME -c:v libvpx -crf 4 -b:v 1M [-c:a libvorbis -b:a 256K | -an] -sn -vf "scale=WIDTH:-1[,subtitles=INPUT_FILE]" out_temp.webm
ffmpeg -i out_temp.webm -c:v copy -c:a copy out.webm
I do times in the format hh:mm:ss.xxx
-copyts is needed for subtitle timing 'cause ffmpeg does some weird poo poo with times and other crap that I don't remember...
For optional audio, either supply the codec and bitrate or set -an (no audio)
I forget what -crf 4 does...
-sn is no subtitles. I don't think webm supports embedded subtitles and fonts..?
Set WIDTH to the amount of pixels (600 for 600 pixels wide). -1 follows the aspect ratio for height.
The next part with "subtitles=INPUT_FILE" burns in the subtitles to the video itself. If it's an MKV, you just supply the mkv file here again. I'm not sure how to choose which subtitle stream. It seems to default to the first available stream.
Of course, play around with the bit rate values for file size.. I'm not sure if they're constant or variable.

I'm not sure if there's a single step around this problem... the first command outputs the file, but the length of the video is set to the source's length and not the actual length of the webm. Running the second command (instantaneous) just copies the streams into a new container, which seems to properly set the length...

Needless to say, since you don't have visuals and you're supplying your own time in optional milliseconds, getting accurate video may be arduous and probably way more time consuming than using a GUI app.


Also, gfycat seems to like to cut short webms, whereas pomf.se retains the full video.

Adbot
ADBOT LOVES YOU

krnhotwings
May 7, 2009
Grimey Drawer
Well, speak of the devil...

http://blog.pomf.se/post/121058516206/shutting-down

Anywho, for those who haven't seen this scene before:

https://a.pomf.cat/misolp.webm

krnhotwings fucked around with this message at 04:35 on Apr 21, 2016

krnhotwings
May 7, 2009
Grimey Drawer
Wow, I should rewatch this (again.)

krnhotwings
May 7, 2009
Grimey Drawer

Amstrad posted:

Who did the obvious? It's me, I did the obvious.
https://my.mixtape.moe/obeqqk.webm
I've stopped watching this show 'cause I couldn't stand how much of a loving narcissistic brat the MC was. Has it gotten better?

krnhotwings
May 7, 2009
Grimey Drawer
https://a.pomf.cat/gorzst.webm

  • Locked thread