KoblentsBlog Photography
Contact About
Blue Grand Canyon
(1000px) (full)
Blue Grand Canyon
Spider Rock
(1000px) (full)
Spider Rock
Published Feb 21, 2017
I had an issue where a video file had embedded (soft) subtitles with an error, and I wanted to edit the subtitles. Since it's just a stream in the file, it's really easy - at least for an mkv container.
All you need to do is extract the subtitles, edit them in your editor of choice, then add the stream back in. There's probably an easier way, but I removed the subtitle stream from the file entirely then added the edited one back.
1234
ffmpeg -i <video.mkv> -an -vn -map 0:2 -c:s:0 srt <sub.srt>
vi <sub.srt>
ffmpeg -i <video.mkv> -c:v copy -c:a copy -sn <video_nosub.mkv>
ffmpeg -i <video_nosub.mkv> -i <sub.srt> -c:v copy -c:a copy -c:s srt <video_output.mkv>
 
Published Jan 30, 2017
"Release 5.1 is a disappointment. Performance for common operations has dropped 40% from 4.0.5, we shipped with 500 priority 1 and 2 bugs, and a base Indy is much more sluggish than a Macintosh. Disk space requirements have increased dramatically.
The primary cause is that we attempted far too much in too little time. Management would not cut features early, so we were forced to make massive cuts in the final weeks of the release.
What shall we do now? Let's not look for scapegoats, but learn from our mistakes and do better next time."
 
Published Jan 27, 2017
This document is a collection of facts about ASCII and related technologies, notably hardware terminals and RS-232 and modems. This is lore that was at one time near-universal and is no longer. Itís not likely to be directly useful today - until you trip over some piece of still-functioning technology where itís relevant (like a GPS puck), or it makes sense of some old-fart war story. Even so, itís good to know anyway, for cultural-literacy reasons.
 
Published Jan 10, 2017
Looks like the backdoor roth will still be good for 2017.
If you're above the roth contribution income limits, it works like this:
1. Contribute to Traditional IRA
2. Convert (not recharacterize) to Roth IRA.
 
Published Dec 8, 2016
So... why does
calloc
exist, if it's equivalent to these 2 lines? The C library is not known for its excessive focus on providing convenient shorthands!
It turns out there are actually two differences between calling
calloc
, versus calling
malloc + memset
.
 
Published Nov 14, 2016
"Thunderbolt 3 relies on the USB-C physical connector and, with the appropriate adapters, supports nearly all common peripheral-connection and networking protocols, including USB 2, USB 3, FireWire, Thunderbolt 2, Ethernet, and DisplayPort, and by extension, HDMI, DVI, and VGA."
 
Published Oct 17, 2016
I had a bit of trouble finding the autocross event held at the Marina Airport for the BMW club (who are inclusive of other cars, which is why I went) - they didn't have signs up. Hopefully this map helps others. The entrance is right before (to the south-west) of the hangar area, to the right off Imjin Rd, just past Anzu Corp. The entrance is a bit steep; if you have a low car, go slow and at an angle.
3180 Imjin Rd
 
Published Sep 30, 2016
Great one-liner for a script to get the directory it resides in -
1
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Linked from the stackoverflow page where I found this.
 
 
Archive: September 2016 »
© Copyright Koblents.com, 2012-2016