17. Edit Subtitles
A subtitle editing function has been implemented in the video player since ver 1.2.0. After recording, you can start editing the subtitles to match the video without using any other apps or tools.
For subtitles and text tracks, please see the following page on MDN.
https://developer.mozilla.org/ja/docs/Web/API/WebVTT_API
17.1. show the panel
To edit subtitles, press the Edit Subtitles button in the top right.
… |
17.2. Add a text track
The video player has one text track by default. This is the method if you want to add more.
Open the Text Track tab.
Enter a
label
for the top of the panel.Enter the
Language
next to it. (For Japanese,ja-JP
etc.)Select the track type.
Hint
See below for track types.
https://developer.mozilla.org/ja/docs/Web/HTML/Element/track#attr-kind
subtitles
is fine for normal use.
17.3. Manage existing text tracks
Manage existing text tracks by selecting or deleting them.
Select the track you want to operate from the
Text Tracks
.
17.3.1. Change display mode
Select the desired mode from the
Display Mode
.
Mode name |
effect |
---|---|
disabled |
disable the track completely. |
hidden |
hides the track. |
showing |
showing the track. |
Hint
For a detailed explanation of the mode, please see the following site.
https://developer.mozilla.org/ja/docs/Web/API/TextTrack/mode
17.3.2. Load subtitle file
Load the subtitle file on your device.
Click the Open button.
Select the desired subtitle file and open it.
The content of the subtitle file will be read into the selected track.
- Corresponding file extension:
.vtt, .srt
Note
Functions that cannot be prepared in this application can also be described in VTT and SRT files (style sheets, comments, etc.). The effect of those settings can be demonstrated even when playing on this application, but it is not reflected on the UI of the application.
Especially if you want to add or edit a stylesheet, redefine it in the CSS tab.
17.3.3. Save as subtitle file
Save the selected text track as a subtitle file on your device.
Press the Save button.
Give the file a name and save it.
Warning
Please note that if you re-save the subtitle file loaded from the device, the style sheet included in the original subtitle file will not be saved.
17.4. Edit subtitles
The upper toolbar has a display of the current seek position and delete/add/apply buttons.
The operations that can be performed in the subtitle list are as follows.
Click |
Select |
Double click |
Automatically seek to the start of the selected subtitle |
What you can edit with subtitles
You can set the following properties for subtitles:
- start position/end position
-
After moving with the video seek bar, the left icon determines the start position, and the right icon determines the end position.
- Text:
Subtitle text. Note that you can use the following tags:
- Horizontal (position):
Sets the X-coordinate position of the subtitle in the video as a percentage.
- Horizontal (Automatic):
Automatically adjust the position of the X coordinate.
- Vertical (line):
Sets the Y-coordinate position of the subtitle in the video as a percentage.
- Vertical (Automatic):
Automatically adjust the position of the X coordinate.
- justify:
Adjust the position in the subtitle area.
It is align of VTTCue.
https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/align
- Subtitle size:
Set the subtitle area. not font size. If this size is smaller than the character size, the subtitles may not fit.
- Stylesheet class name:
Specify the class name defined in the CSS tab. Subtitle fonts and colors change according to the stylesheet.
Note
It corresponds to a class called VTTCue. For details, please see the page of the following site.
17.4.1. Add subtitles
Move the video seek bar.
Press the start position icon.
Move the seek bar to the desired end position.
Press the icon to the end position.
Enter the subtitle properties.
Press this button.
17.4.2. Select/edit subtitles
Select the desired line on the list of subtitles.
Set the start position, end position, and properties in the same way as when adding .
Press this button.
17.4.3. Remove subtitles
Select the desired line on the list of subtitles.
Select the desired line on the list of subtitles.
17.5. Manage CSS
You can add or remove stylesheets that apply to subtitles.
Warning
Stylesheets included when reading .vtt or .srt files cannot be restored to this tab of this application due to HTML specifications.
If you want to save it again, please redefine it in this tab.
17.5.1. Load CSS file
You can load a .css file and use it as a subtitle stylesheet.
Click at the left end of the CSS tab toolbar.
Select the .css file and open it.
Caution
Definitions with ::cue()
selectors in .css files are targeted (other selectors are ignored).
17.5.2. Save CSS to file
Save the CSS defined on this application as a .css file separately from the .vtt file.
Click at the left end of the CSS tab toolbar.
Note
The file name is fixed at
style_[date-based serial number].css
.
17.5.3. Add CSS
Fill in the
stylesheet class name
field.
You don’t need to write
::cue()
here. It’s just a name.
Write the styles you want in the
CSS
input box.
Write like normal CSS.
font-size: 12pt;
background-color : rgba(0,0,0,0.5);
fotn-weight: bold;
Press this button on the toolbar.
17.5.4. Edit CSS
Select the line of the class name you want to edit in the CSS list.
Change the style in the
CSS
input box.Press this button.
Warning
The stylesheet class name cannot be changed.
17.5.5. Remove CSS
Select the line of the class name you want to delete in the CSS list.
Select the desired line on the list of subtitles.