Opening mkv Files With avisynth but keeping the subtitles

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

Opening mkv Files With avisynth but keeping the subtitles

Postby G-Force » Wed Aug 31, 2011 10:08 am

Using the codecs and guide provided I was able to open my mkv files in virtualdub with a very simple avisynth script

FFCopyrightInfringement(filename)

I found that using DirectShowSource does get the file to open but when in virtualdub the playback slider doesn't move while in vritualdubmod I have a smooth playback but no audio. However that's ok cause the new script has taken care of that but now there are no subtitles in the video footage. Now I know for a fact that it is possible to get subtitles from these mkv files as I was able to do so by sheer luck in the past. I was fiddling with my CCP settings by randomly checking and unchecking boxes when all of a sudden I saw subtitles in virtual dub when I loaded the mkv. I was wondering how I can replicate those results again. Pretty much I intend to take my subbed anime episodes and make small clips out of them for personal projects. I figure learning how to keep/remove the subtitles on them would be a handy skill to learn just in case I need to do so again in the future.
G-Force
 
Joined: 12 Aug 2004

Re: Opening mkv Files With avisynth but keeping the subtitle

Postby mirkosp » Wed Aug 31, 2011 10:16 am

http://sourceforge.net/projects/mkvextractgui-2/

First, you'll need to extract the subtitle track and the fonts. Then, install the fonts in your system. After that, copy vsfilter.dll in your avisynth's plugins folder, and then, after loading the mkv, you can load subtitles with

Code: Select all
TextSub("file.ass")


Alternatively, you can use assrender instead to load subtitles. This one is based on libass instead of being based on vsfilter.

Feel free to use whichever solution you prefer; do mind that the rendering of some specific tags differ between the two.
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: Opening mkv Files With avisynth but keeping the subtitle

Postby G-Force » Tue Sep 13, 2011 1:02 am

Even after using google I'm a bit clueless on how to install/run mkvestractgui. Is it possible I get a step by step guide on how to use it?

I'm sorry for my general noobiness.
G-Force
 
Joined: 12 Aug 2004

Re: Opening mkv Files With avisynth but keeping the subtitle

Postby mirkosp » Tue Sep 13, 2011 5:29 am

http://www.bunkus.org/videotools/mkvtoo ... ml#windows

First you'll need to install the MVToolnix. Then, you place the mkvextractgui2 exe in the same folder in which mkvtoolnix gets installed.
Should be easy after that.
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: Opening mkv Files With avisynth but keeping the subtitle

Postby Mister Hatt » Tue Sep 13, 2011 8:45 am

assrender is a bit hard for nubs to use last I looked at it. That said, copying the VSFilter from CCCP and using that is surefine for TextSub, although still need the .ass file.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you

Re: Opening mkv Files With avisynth but keeping the subtitle

Postby Zarxrax » Tue Sep 13, 2011 3:12 pm

Easiest way is to use directshowsource, and just enable subtitles in the ffdshow options.
User avatar
Zarxrax
 
Joined: 01 Apr 2001
Location: Concord, NC

Re: Opening mkv Files With avisynth but keeping the subtitle

Postby G-Force » Wed Sep 14, 2011 12:10 am

Zarxrax wrote:Easiest way is to use directshowsource, and just enable subtitles in the ffdshow options.


I can't use directshowsource when opening mkv files through virtualdub. For some reason the playback doesn't work (slider doesn't move in virtualdub while there's no sound in virtualdub mod) Meanwhile the subtitle box is checked when I looked at the video options of ffdshow.

Is there something I'm doing wrong?
G-Force
 
Joined: 12 Aug 2004

Re: Opening mkv Files With avisynth but keeping the subtitle

Postby Mister Hatt » Fri Sep 16, 2011 4:55 am

Yes, you're using DSS. Don't do that. DSS SOUNDS easier in theory but ffcopyrightblahblahblah().textsub() isn't really that difficult.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you


Return to Footage Help

Who is online

Users browsing this forum: No registered users and 2 guests