Hi Guys
How to put burned subtitle on top with ripbot264 + avisynth/vsfilter
I prefer with video script if possible.
Also how can I change the whole subtitle's font type and size?
+ Reply to Thread
Results 1 to 15 of 15
-
-
Thank you. This is almost the full solution but I need to add border to the top which I did and put the subtitle in this border.
Which I did with Aligment and MarginV but the result is this: https://files.videohelp.com/u/275599/bord.JPG
Is there any solution? -
LoadPlugin("C:\Users\Zsolt\Downloads\ripbot264\Tools\AviSynth plugins\ffms\x64\ffms2.dll")
video=FFVideoSource("C:\Users\Zsolt\Videos\blynth. mp4",cachefile = "C:\Temp\RipBot264temp\job1\blynth.mp4.ffindex ")
Loadplugin("C:\Users\Zsolt\Downloads\ripbot264\Too ls\AviSynth plugins\VSFilter\VSFilter.dll")
video=TextSub(video,"C:\Temp\RipBot264temp\job1\ca ptions-3.srt",-1)
Import("C:\Temp\RipBot264temp\job1\job1_a1.avs")
AddBorders(0, 150, 0, 0, color_blue)
and the style file:
[V4 Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline,
\ Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding
Style: Default,Tahoma,18,&Hffffff,&H00ffff,&H000000,&H000 000,1,0,1,2,1,5,20,20,-20,0,1 -
Geez, why do rookies make it so hard on themselves. Try this:
I don't know what 'Import("C:\Temp\RipBot264temp\job1\job1_a1.avs")' does, except it's specifically something to do with RipBot264. My suggestion is to make the script yourself and then test it in VDub followed by opening the script in RipBot. And, as I suggested before, make SSA or ASS subs rather than SRT. You can put the Styles stuff back, if you wish, but your method is very convoluted. RipBot264 is an easy program to use, but I highly recommend you create your own scripts in advance.Code:LoadPlugin("C:\Users\Zsolt\Downloads\ripbot264\Tools\AviSynth plugins\ffms\x64\ffms2.dll") Loadplugin("C:\Users\Zsolt\Downloads\ripbot264\Tools\AviSynth plugins\VSFilter\VSFilter.dll") FFVideoSource("C:\Users\Zsolt\Videos\blynth. mp4",cachefile = "C:\Temp\RipBot264temp\job1\blynth.mp4.ffindex ") AddBorders(0, 150, 0, 0, color_blue) TextSub(video,"C:\Temp\RipBot264temp\job1\captions-3.srt",-1)
Because the way you had it, the AddBorders line isn't used. I suppose you edited the script RipBot created to add it in, but you did it wrong.If I put Addborders before the textsub the border not visible -
I have tried that but looks like something with ripbot264's avisynth script handeling I cant understand.
The actual script looks like this and if I change the order in any way the preview doest work
Even if i move the whole subtitle section to the end. Also adborders works only a few sectionCode:#MT #VideoSource LoadPlugin("C:\Users\Zsolt\Downloads\ripbot264\Tools\AviSynth plugins\ffms\x64\ffms2.dll") video=FFVideoSource("C:\Users\Zsolt\Videos\blynth.mp4",cachefile = "C:\Temp\RipBot264temp\job1\blynth.mp4.ffindex") #Deinterlace #Decimate #Crop #Resize #Levels #Colours #Denoise #Custom #Prefetch #Subtitles Loadplugin("C:\Users\Zsolt\Downloads\ripbot264\Tools\AviSynth plugins\VSFilter\VSFilter.dll") video=TextSub(video,"C:\Temp\RipBot264temp\job1\vegso.srt",-1) #AudioSource Import("C:\Temp\RipBot264temp\job1\job1_a1.avs") #Triming AddBorders(0, 150, 0, 0, color_blue) #AVSameLength #ColorSpace #Return -
I can do at the moment with two phase, first I add border then I burn the subtitle
-
#MT
#VideoSource
LoadPlugin("C:\Users\Zsolt\Downloads\ripbot264\Tools\AviSynth plugins\ffms\x64\ffms2.dll")
video=FFVideoSource("C:\Users\Zsolt\Videos\blynth. mp4",cachefile = "C:\Temp\RipBot264temp\job1\blynth.mp4.ffindex ")
#Deinterlace
#Decimate
#Crop
#Resize
#Levels
#Colours
#Denoise
#Custom
video=AddBorders(video,0, 150, 0, 0, color_blue)
#Prefetch
#Subtitles
Loadplugin("C:\Users\Zsolt\Downloads\ripbot264\Too ls\AviSynth plugins\VSFilter\VSFilter.dll")
video=TextSub(video,"C:\Temp\RipBot264temp\job1\ve gso.srt",-1)
#AudioSource
Import("C:\Temp\RipBot264temp\job1\job1_a1.avs")
#Triming
#AVSameLength
#ColorSpace
#Return -
just one more thing.
I would like to trim the video and I add Trim(71825, 131750) to the trimming section and doesnt work. If I add to the empty script works but trims only the video and keeps the original audio. -
I suppose you could go find job1_a1.avs and trim it, too.
Nah, that probably wouldn't work. Can you cut the audio the right amount yourself? That's what I always do.
Maybe Atak_Snajpera will show up and explain how to do it. -
there is audiodub function used at a point (I remember Atak_Snajpera used to use it to mix audio and video like that), perhaps in that job1_a1.avs it is used or there is another avisynth script behind scenes that envelopes all those scripts, or just encoders input video and audio separately
so first check that job1_a1.avs, if it is there you can trim it afterwards , then watch syntax maybe you need to return last or something
http://avisynth.nl/index.php/AudioDub
Similar Threads
-
2 Subtitle Tracks Play on Top of Each Other IDX/SUB
By Bondiablo in forum SubtitleReplies: 8Last Post: 12th Aug 2017, 16:03 -
I'm trying to author a DVD with .ass subtitle (top and bottom) and menu
By deadfinger in forum Authoring (DVD)Replies: 15Last Post: 31st Oct 2016, 17:34 -
Put one subtitle per every single audo file
By Heisenberg in forum SubtitleReplies: 0Last Post: 15th Jan 2016, 14:51 -
AviSynth Subtitle Line Break
By smike in forum EditingReplies: 5Last Post: 10th Jan 2015, 15:36 -
Code to add top subtitle for ssa file
By ssa_newbie in forum SubtitleReplies: 11Last Post: 25th Oct 2013, 16:37


Quote