![Tsurezure Children](https://i.imgur.com/9CrOluI.png "Tsurezure Children")
**_please tell me if there are any errors, thank you!_**
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
Title: **Tsurezure Children (BD Batch)**
Video Format : x265_**HEVC_NVENC**_10bit_MKV
Resolution : 1080p
Encoded by: SoulSpark
Audio: Japanese (opus), English (5.1 channel opus)
Source: [BDMV](https://nyaa.si/view/1182156)
Subs Source: [KH](https://nyaa.si/view/1150609)
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
I tried to mux them into the mkvs many time and it failed miserably and since I am doing that through a cli it is a bit of a difficult job for me till now. I hope you can bear with it @Harino7. If you know any place where I can find a script to do it then I will be very happy and will mux the whole thing together in my future releases.
@matheousse he use cli for batch, that will save a lot of time, mkvmerge cli is not easy to use and it documentation is not that big of help, but he had solution but he didn't think of it, he could mux kh files with no audio and video option from mkvmerge here is my code, he can use it, or read what he need from it, that is what I use for myself its written in python 3
https://pastebin.com/jr3zfY9T
You can use ffmpeg as well to mux attachments through cli. The syntax is something like this:
```
ffmpeg -i "video_without_fonts.mkv" -c copy -map 0 -attach "font1.ttf" -attach "font2.otf" -metadata:s:t:0 mimetype=application/x-truetype-font -metadata:s:t:1 mimetype=application/x-opentype-font "video_with_fonts.mkv"
```
@yakubo I would have definitely would have loved to do that but since there are multiple fonts in the attachment folder and I get the subs from https://animetosho.org/, and till now I have not been able to find any method that will let me able to put all those attachments at once. And it very difficult to write the name of each font in the command, and will be time-consuming.
and sometimes there are more than 100s of fonts for a single episode. So writing each of there name will be next to impossible for me.
What I have tried previously was [this](https://hastebin.com/kikumizika.bash) but its limitation is that the ttf should have single character naming. And attachment name is also not correct in the final result since its the path.
Okay, I just wrote a script for very large no of fonts. You may use this to generate the command to mux one video. You can easily extend this to loop through all videos (as done in that link you gave). Lemme know if you need help.
```
echo -ne "ffmpeg -i \"video_without_fonts.mkv\" -c copy -map 0"
i=0
for font in Fonts/*; do
echo -ne " -attach \"$font\" "
if [[ "${font##*.}" == "ttf" || "${font##*.}" == "TTF" ]]; then
echo -ne "-metadata:s:t:${i} mimetype=application/x-truetype-font"
fi
if [[ "${font##*.}" == "otf" || "${font##*.}" == "OTF" ]]; then
echo -ne "-metadata:s:t:${i} mimetype=application/x-opentype-font"
fi
i=$((i+1))
done
echo " \"video_with_fonts.mkv\""
```
And this is the output when we run this script on this torrent download:
![Imgur](https://i.imgur.com/aRihTPx.png)
...which is the exact command you need for each video.
@yakubo Thank You very much. You have solved the biggest issue I had. Can I have your contact details too. Anything like discord or stuff would be helpfull.
Comments - 18
Harino7
Soul_Spark (uploader)
matheousse
Harino7
Soul_Spark (uploader)
Ravarage
Soul_Spark (uploader)
Ravarage
yakubo
Soul_Spark (uploader)
Soul_Spark (uploader)
naiyas
yakubo
yakubo
Soul_Spark (uploader)
yakubo
Nokou
Soul_Spark (uploader)