Messages - highend01 [ switch to compact view ]

Pages: [1] 2 3 4 5 6 ... 36next
1
Coding Snacks / Re: [Solved] Adjust Subtitle (SRT) Timestamps
« on: December 21, 2020, 01:54 AM »
It didn't like the linebreaks in your j.srt file, hence the output
The timestamp you're using on the command line doesn't exist in the file so I've changed the logic to:
It begins to shift times beginning with the first timestamp that is larger (or equal to) than the one you're giving on the command line.
Before it was: Once the given timestamp matches one in the file, begin to shift from there...

So with "00:34:09,263" it will turn this (from j.srt):
304
00:33:21,776 --> 00:33:25,361
No! I have lice.

305
00:35:17,846 --> 00:35:20,847
We'll sing again together,
just like before.

into this (clipboard):
304
00:33:21,776 --> 00:33:25,361
No! I have lice.

305 -> These (and all following) timestamps will be shifted by -95 seconds
00:33:42,846 --> 00:33:45,847
We'll sing again together,
just like before.

2
Coding Snacks / Re: [Solved] Adjust Subtitle (SRT) Timestamps
« on: December 20, 2020, 12:32 PM »
Show me the exact command line you've used and a link to the .srt file to download it, please.

3
Coding Snacks / Re: Adjust Subtitle (SRT) Timestamps
« on: December 20, 2020, 08:00 AM »
Something like this should work...

It needs to be invoked via command line parameters:
"Adjust .srt times.exe" "D:\1.srt" "00:00:04,049" 200

Arg 1: The .srt file to parse
Arg 2: The first (from) timestamp where the time shifting should begin
Arg 3: The amount of time in milliseconds (either positive or negative) to shift
          If you need a shifting of multiple seconds, e.g -2.3 -> -2300 ms, use "-2300"

This is the content of a test .srt file:
1
00:00:00,230 --> 00:00:02,939
hi this is Roger in Finland and today

2
00:00:02,939 --> 00:00:04,049
we're gonna take a look at how to add

3
00:00:04,049 --> 00:00:05,730
subtitles to your videos either for

10
00:00:15,990 --> 00:00:18,660
[Music]
not playing loud
zzzZZZzzz

11
00:00:18,660 --> 00:00:21,180
solution is to go through generate an

12
00:00:21,180 --> 00:00:23,160
srt subtitles file it can be done



and this is what gets copied to the clipboard:
1
00:00:00,230 --> 00:00:02,939
hi this is Roger in Finland and today

2
00:00:02,939 --> 00:00:04,049
we're gonna take a look at how to add

3
00:00:04,249 --> 00:00:05,930
subtitles to your videos either for

4
00:00:16,190 --> 00:00:18,860
[Music]
not playing loud
zzzZZZzzz

5
00:00:18,860 --> 00:00:21,380
solution is to go through generate an

6
00:00:21,380 --> 00:00:23,360
srt subtitles file it can be done


4
@oblivion

Do you think you could recommend a Wacom Intuos Art S for desktop usage only (no drawing or any kind of digital art, only navigation, file selection, left and right clicking in browsers, file manager, etc.)?
I would use the pen if necessary but the Art reacts to finger movement as well which would be a big plus for me, although I don't know how easy it would be to e.g. hit a close button of a window with the fingertip when not using the pen...

Thanks!

To all others using a (Logitech) mouse/trackball:
I use a M570 since about 6 years. It's my second one after the first fell apart completely after 4 years. I had the same problem that the left and right micro switches began to fail after a short time (not even a year). I've ordered replacement switches: Omron D2F-01F - 0662RAE

When my first M570 died (the Omron switches were already in since 3 years) I thought: Ok, I still have 6 micro switches left (bought 8 in the first place) and I could just use two of them for the new device but what I finally did was: Solder my first two off of the old device and resolder them back into the new one. The new one was _brand new_ (I had just received it) but before I began to use these M570 trackballs I've had lost a lot of Logitech mices because of the micro switch issues) so I knew it would only be a question of time before the new one would fail as well.
Overall I'm using my first Omron pair since 5 years now and I'm using my trackball about 10-14 hours daily. One can still buy quality parts so I'd say: Go for Omron switches :Thmbsup:

5
You Kokomite link leads to Kododea (a screen magnifier tool)...

Pages: [1] 2 3 4 5 6 ... 36next
Go to full version