bur
1st May 2012, 10:04
I have a streamed video to which I'd like to add subtitles and comments. I cannot download the video to mux with subtitles.
So I was wondering if there's a software that can overlay subtitles anywhere on the screen.
If not then I could probably use Avisynth to create a blank video with subtitles-only and then play that video in an MPC window without borders/menu/etc and align it next to the streaming video.
But being able to seamlessly integrate the subtitles with the streaming video would of course be nicer. Is there any way to do that?
edit:
I tried to do it with AVS now, and it works. Real overlay would be nicer, but anyway. So if anyone ever needs something like this:
#subs.avs
BlankClip(length=2440, width=800, height=150, fps=1, color=$000000)
TextSub("subtitles.srt")
Adjust the length to your own needs. Since fps is set to 1, length will be in seconds. But the subtitles will be quite small, so you also need a subtitles.srt.style file in the same directory:
ScriptType: v4.00+
PlayResX: 800
PlayResY: 100
[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,32,&H00ffffff,&H0000ffff,&H00000000,&H80000000,-1,0,0,0,100,100,0,0.00,1,2,3,2,20,20,20,1
Make sure that in the style-file PlayResY is set to a lower value than the actual size in the avs-file. This will cause the subtitles to fill the video from top to bottom instead of being at the lower half only.
Now set your videoplayer to show the video windowed without any borders or menu and also to stay in the foreground and you're done.
So I was wondering if there's a software that can overlay subtitles anywhere on the screen.
If not then I could probably use Avisynth to create a blank video with subtitles-only and then play that video in an MPC window without borders/menu/etc and align it next to the streaming video.
But being able to seamlessly integrate the subtitles with the streaming video would of course be nicer. Is there any way to do that?
edit:
I tried to do it with AVS now, and it works. Real overlay would be nicer, but anyway. So if anyone ever needs something like this:
#subs.avs
BlankClip(length=2440, width=800, height=150, fps=1, color=$000000)
TextSub("subtitles.srt")
Adjust the length to your own needs. Since fps is set to 1, length will be in seconds. But the subtitles will be quite small, so you also need a subtitles.srt.style file in the same directory:
ScriptType: v4.00+
PlayResX: 800
PlayResY: 100
[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,32,&H00ffffff,&H0000ffff,&H00000000,&H80000000,-1,0,0,0,100,100,0,0.00,1,2,3,2,20,20,20,1
Make sure that in the style-file PlayResY is set to a lower value than the actual size in the avs-file. This will cause the subtitles to fill the video from top to bottom instead of being at the lower half only.
Now set your videoplayer to show the video windowed without any borders or menu and also to stay in the foreground and you're done.