Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
smacke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
61.
▲
by
smacke
6y ago
I built a small library for synchronizing subtitles with video ( https://github.com/smacke/ffsubsync ) at a hackathon, and a couple of users appreciate it enough to sponsor me for $11 / month, which comes to $22 &#x
62.
▲
by
smacke
7y ago
I don't think anyone is forcing Kantian ethics on the CCP. If they are, it's not working very well. :) But I'm glad we can trace some disagreements regarding whether specific actions are ethical back to differing ideologies.
63.
▲
by
smacke
7y ago
Based on the footage, and even in spite of the agenda made clear from the interviewer's line of questions, it seems difficult to deny many aspects of the BBC reporting. These institutions do exist, and are targeted at the Uyghur minori
64.
▲
by
smacke
7y ago
All those things you mentioned are a) bad and b) off topic. I suggest you create a new post to discuss those. The right vs wrong question seems straightforward. If the people in these concentration camps are suffering, then it is wrong. If
65.
▲
by
smacke
7y ago
As of this writing, this post is 2 hours old, ranked #96 (4th page of HN), and has 117 points. I believe it was on the front page 30 minutes ago. This is a steep drop in ranking -- what are the factors in the HN ranking algorithm that could
66.
▲
by
smacke
7y ago
Hi, you are probably being down voted because your post is being interpreted as "whataboutism", although perhaps that was not your intention. https://en.m.wikipedia.org/wiki/Whataboutism
67.
▲
by
smacke
7y ago
You might enjoy checking out 'fasd', which, among other things, creates an alias ('zz') with autocomplete functionality for changing to frequently-used directories. https://github.com/clvv/fasd
68.
▲
by
smacke
8y ago
Playing devil's advocate: there may be an argument that such care would not have been developed without the free-market monetary incentive. (Maybe not; maybe it would have been developed thanks to some government-funded grant. The poin
69.
▲
by
smacke
8y ago
This is the first time I had heard of this rigid lattice problem and I thought it sounded very interesting; if anyone else is interested, here's a link to some details: http://datagenetics.com/blog/november12014&#x
70.
▲
by
smacke
8y ago
> So if you can't have perfect privacy, you'll have nothing at all? That's quite an all-or-nothing way of looking at this issue. I don't think that's the point; I think the OP is saying that in OP's particul
71.
▲
by
smacke
8y ago
Agreed -- definitely worth thoroughly investigating this space to see whether there are any ideas that can be borrowed.
72.
▲
by
smacke
8y ago
You are most welcome! This is exactly the use case I was initially targeting; I got super lucky that the VAD-based synchronization happened to be low-hanging fruit that has a higher "Wow" factor.
73.
▲
by
smacke
8y ago
Sorry, I forgot to answer your last question. It turns out that, because of how the algorithm works, the number of blocks shouldn't matter. Since it is discretizing time windows in 10ms increments, the granularity of the "effectiv
74.
▲
by
smacke
8y ago
This project came up when I was researching this idea. It looks especially useful because the alignment algorithm is less restrictive (can introduce splits/breaks), so I plan on taking a closer look for sure. Given that it does not do
75.
▲
by
smacke
8y ago
You are most welcome, although unfortunately it looks like this project doesn't support your use case yet. Right now it can only correct "constant drift", although I'll definitely be thinking more about other scenarios b
76.
▲
by
smacke
8y ago
My guess is that your subtitles don't have a "fixed drift". Unfortunately, this project only works for constant drift at the moment -- dynamic subtitle drift is a harder problem but absolutely worth thinking more about for fu
77.
▲
by
smacke
8y ago
Actually, it unfortunately doesn't work if the drift gets worse over time -- so far, it only works with constant drift. Maybe fixing constant 1st derivative drift is the next step!
78.
▲
by
smacke
8y ago
It's actually fairly annoying for subtitles, but it's useful for getting videos in unfamiliar languages to the right ballpark. Afterwards, my go-to so far has been to just perform a manual one-off adjustment in VLC after the video
79.
▲
by
smacke
8y ago
Precisely. If I could more easily get at the raw classifier output of webrtcvad, it should be possible to be even smarter (we could have square waves with any amplitude between -1 and +1, not just either -1 and +1, which should take into ac
80.
▲
by
smacke
8y ago
Audio extraction is actually the most expensive part. It depends on the length of the video, but my experience is that it finishes in 20 to 30 seconds. It's possible one might be able to sample different parts of the video to bring the
81.
▲
by
smacke
8y ago
Pretty much! Given the anecdotal success I've personally had with this approach, I'm hoping it could get picked up by VLC so that the algo can be run in there directly.
82.
▲
by
smacke
8y ago
The approach taken here is to not worry about those. :) These will introduce some noise, but the synchronization algorithm seems to be robust enough that noise doesn't matter (whether it's from the voice activity detector or from
83.
▲
by
smacke
8y ago
Really appreciate the feedback -- will definitely work on improving the clarity in the README. Glad you like the project!
84.
▲
by
smacke
8y ago
Totally agreed. I'm not sure how to do the alignment scoring step in this case, perhaps some kind of DTW / FFT hybrid... definitely worth further consideration.
85.
▲
by
smacke
8y ago
Interesting! I was not aware of that project before. It looks like it could be worthwhile to incorporate their neural net-based VAD, if it's not too slow. At a first glance, it looks like the main difference is the postprocessing step
86.
▲
by
smacke
8y ago
By speech recognizer, are you referring to a method that would perform speech-to-text transcription? If so, you could probably do better when your video and subtitles are in the same language, but you would lose the ability to be language-a
87.
▲
by
smacke
8y ago
Thanks for flagging -- this seems to be a common point of confusion; I'll work on updating the readme. Let's say reference.srt is a set of English subtitles, and you have an out-of-alignment French subtitles file unsynchronized.sr
88.
▲
by
smacke
8y ago
I think they were referring to the fact that "reference.srt" would already be synchronized.
89.
▲
by
smacke
8y ago
Great question. The main use case I can think of is when reference.srt and unsynchronized.srt are in different languages, and you want to eventually merge them into a single dual-language subtitle file. EDIT: Oh, I should also mention that
90.
▲
by
smacke
8y ago
Cool! It looks to me like most of those approaches are a lot more sophisticated and work even when the text doesn't have any time annotations. At a first glance, it looks like the major downside is that these approaches are geared towa
More ›