Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
Bianca xxx pe Simpatie
Femeie
25 ani
Bucuresti
cauta Barbat
25 - 43 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [MKV] Change the Size of ASS Embedded Font File Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2186
Source

You need MKVToolnix for this.
I filled some blanks in the tutorial from source (like open command prompt window etc.)

1.

Open command prompt window on the folder where MKVToolnix is installed - to do this SHIFT+right click on or inside the folder (not on any of the files inside).

2.

In command prompt, type mkvinfo then the MKV file name, like this: mkvinfo <mkv filename>. If the path is long and you want to obtain the name of the file faster, just SHIFT+right click on the mkv file and select "Copy as path", then right click in CMD and select paste (CTRL+V doesn't work in CMD).

eg.
mkvinfo "C:\New folder\test.mkv"

then press ENTER


3.

A bunch of stats / info will be written. Scroll up and find the Track that has the subtitle attributes, eg. Codec ID: S_TEXT/ASS. See the colored text below.


+ EBML head
|+ EBML version: 1
|+ EBML read version: 1
|+ Maximum EBML ID length: 4
|+ Maximum EBML size length: 8
|+ Document type: matroska
|+ Document type version: 4
|+ Document type read version: 2
+ Segment: size 465472138
|+ Seek head (subentries will be skipped)
|+ EBML void: size 147
|+ Segment information
| + Timestamp scale: 1000000
| + Title: Ancient Aliens S13E07 - RMTeam, RMZ.cr
| + Multiplexing application: Lavf57.71.100
| + Writing application: Lavf57.71.100
| + Segment UID: 0xce 0x21 0xf2 0x66 0x1f 0xfd 0xc2 0x16 0xdf 0x26 0x2d 0xfd 0x3
9 0x8a 0x74 0xcb
| + Duration: 01:23:57.992000000
|+ Tracks
| + Track
|  + Track number: 1 (track ID for mkvmerge & mkvextract: 0)
|  + Track UID: 1
|  + Lacing flag: 0
|  + Language: und
|  + Codec ID: V_MPEG4/ISO/AVC
|  + Track type: video
|  + Default duration: 00:00:00.041708333 (23.976 frames/fields per second for a
video track)
|  + Video track
|   + Pixel width: 854
|   + Pixel height: 480
|   + Interlaced: 2
|   + Display width: 16
|   + Display height: 9
|   + Display unit: 3 (aspect ratio)
|   + Video colour information
|    + Horizontal chroma siting: 1
|    + Vertical chroma siting: 2
|  + Codec's private data: size 45 (h.264 profile: High @L3.1)
| + Track
|  + Track number: 2 (track ID for mkvmerge & mkvextract: 1)
|  + Track UID: 2
|  + Lacing flag: 0
|  + Language: eng
|  + Codec ID: A_AAC
|  + Track type: audio
|  + Audio track
|   + Channels: 2
|   + Sampling frequency: 48000
|   + Bit depth: 32
|  + Codec's private data: size 5
| + Track
|  + Track number: 3 (track ID for mkvmerge & mkvextract: 2)
|  + Track UID: 3
|  + Lacing flag: 0
|  + Language: eng
|  + Default track flag: 0
|  + Codec ID: S_TEXT/ASS
|  + Track type: subtitles
|  + Codec's private data: size 547

|+ Tags
| + Tag
|  + Targets
|  + Simple

etc. etc. etc. (there's more info in here, not needed however)


4.

This line: |  + Track number: 3 (track ID for mkvmerge & mkvextract: 2) has important info which is: track ID for mkvmerge & mkvextract: 2. So in case you want to use one of the two commands mkvmerge and mkvextract, you need to use 2 as an ID for the subtitles (track number is 3, but ID starts from 0 and that's why it is different from track number).

5.

In CMD type mkvextract tracks <mkv filename> <subtitle track index>:<mkv filename>.ass (see example below - pay attention to the quotes "")

mkvextract tracks "C:\New folder\test.mkv" 2:"C:\New folder\test.mkv.ass"


6.

You will see some info about Progress, wait a few seconds until it reaches 100% and the command line is once again the MKVToolnix folder.

7.

Navigate to the MKV file's folder (in our example it's C:\New folder\) and locate the ASS file. Right click on it and open in your favorite text editor (eg. Notepad, Win32Pad, Notepad++ etc.).

8.

In the beginning part of the ASS file you will have info about the style of the font. See below. Note that 0 means disabled and 1 means enabled.


[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default,Arial,14,&Hffffff,&Hffffff,&H0,&H0,0,0,0,0,100,100,0,0,1,1,0,2,10,10,10,0


9.

The Format says the name of the characteristic and under Style you set its value. In my case I want to double the size of my font, make it bold and add shadow (so it looks just like my SRT subtitles). To do that, following the order of the Format items, I have to change the following values in Style:
Style: Default,Arial,14,&Hffffff,&Hffffff,&H0,&H0,0,0,0,0,100,100,0,0,1,1,0,2,10,10,10,0

So my Style line will become:
Style: Default,Arial,28,&Hffffff,&Hffffff,&H0,&H0,1,0,0,0,100,100,0,0,1,1,1,2,10,10,10,0

Save the ASS file.

You can test the Style by opening the MKV file with your player and drag and dropping the newly edited ASS file onto the player to load it. See if it's the right size for you, the right font etc. If not, re-edit, then go to the next step.

10.

Open the MKVToolnix GUI (MKVToolnix.exe). Drag and drop your MKV file on MKVToolnix window. Uncheck the existing Subtitle (the one you extracted at step 4) as we need to replace it with the newly saved one. If you uncheck (deselect) it, it will be removed from the MKV file.

11.

Drag and drop the ASS file you edited previously. A dialog box will show up asking you how you want to add the ASS file, make sure to choose "Add as new source files to the current multiplex settings" (the first option in my case, should be the same to you). It will be automatically selected, you can Start multiplexing now and saving your new MKV file.

OPTION - convert ASS to SRT and use as separate file

You can open the ASS file with SubtitleWorkshop (for example) and save it as SRT. You might still want to open your MKV file in MKVToolnix to remove the existing subtitle track (ASS), but it's not required. Most players will load the subtitle file (SRT) first anyway.


_______________________________________


pus acum 4 ani
   
Pagini: 1  

Mergi la