Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools
Old 11-21-2019, 04:32 AM   #41
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 10,719
Default

@heda
Indeed :P I'm experimenting new subtitling workflow these days, I also had to optimize old 2015 code :P


I'm refering of
Code:
 reaper.ULT_SetMediaItemNote( item, note )

Also, this code for creating item will be fare more efficient, as it should remove the need for changing time and track selection, and having to restore intial item selection etc:


https://github.com/ReaTeam/ReaScript...xt%20items.lua


:P
X-Raym is offline   Reply With Quote
Old 11-11-2024, 07:37 PM   #42
Steve Fishboy
Human being with feelings
 
Join Date: Jan 2024
Location: South America
Posts: 388
Default

I'm currently trying out "HeDa_X-Raym_Export selection as SRT subtitles with offset and color" and I'm wondering exactly what this color is? The last SRT file I exported had "#35BDFF" after each and every line number, and that seems to be the color of the source track for the text items. Is that right? If so, what's the purpose? It doesn't seem to change how the subtitles are displayed in VLC or GOM Player.

Another question: when using these SRT export scripts, do you need to move the cursor to the beginning of the project to insure the subtitle timings in the SRT file are correct? If not, where should the cursor be placed?

Thanks!
Steve Fishboy is offline   Reply With Quote
Old 11-11-2024, 10:17 PM   #43
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 10,719
Default

ah yes this color version is a mod I made for myself cause I was manually editing a SRT file, and I wanted to have color indicator in margin in atom code editor, color being related to characters (color of text items)

I should remove it, it is not standard format and can lead to confusion.


Use the regular version.




cursor have to be placed at start of the future rendered media (or existing one)
X-Raym is offline   Reply With Quote
Old 11-12-2024, 07:54 AM   #44
Steve Fishboy
Human being with feelings
 
Join Date: Jan 2024
Location: South America
Posts: 388
Default

Quote:
Originally Posted by X-Raym View Post
ah yes this color version is a mod I made for myself cause I was manually editing a SRT file, and I wanted to have color indicator in margin in atom code editor, color being related to characters (color of text items)
Ah, that makes sense now. Yes, I was surprised that video players didn't choke on that color code in the SRT files. But I guess they've been designed to properly handle all kinds of things.


Quote:
Use the regular version.
Will do.


Quote:
cursor have to be placed at start of the future rendered media (or existing one)
All clear. Thanks a lot!
Steve Fishboy is offline   Reply With Quote
Old 11-12-2024, 08:08 AM   #45
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 10,719
Default

@Steve Fishboy
I just recoded the scripts, it has a new name now,
  • Script: X-Raym_Export items notes from tracks or items selection as SRT subtitles file.lua

And I remove the custom mod as it has surely only be used by me.



If you need the script to export item color as Font-Color (video player can display that), it would be a simple addition.


EDIT: I just added support for font color export in User Config Area of the script (just a simple variable to toggle on). Could ave a UI if this is really needed but maybe overkill considering few people only surely use this.

Donation are welcome if you are enjoying this script :P

Last edited by X-Raym; 11-12-2024 at 09:48 AM.
X-Raym is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:58 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.