Quantcast Can I Demux the Subtitles from the Cut VOB, and Mux Them Back? - digitalFAQ.com Forums [Archives]
  #1  
02-10-2005, 09:16 PM
silverspoonjackass silverspoonjackass is offline
Free Member
 
Join Date: May 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
ok, im trying to backup my dvds to kdvds(anime episodes). Im using tmpgenc, "KDVD Full D1" template.

while:
-removing Opening, and Credits using Dvdshrink.
-losing as little quality as possible. so cq=100.
-either hardcode english subtitles or mux english subtitles and make default (only want to keep english subtitles)

Source:
VOB
- interlaced
- 29.97
- 720x480

Output:
VOB
- interlaced?????not sure????
- 29.97
- 720x480

now my questions:
do i need to filter since im not resizing???
should i deinterlace???
should output be interlaced???
can i demux the subtitles from the cut vob, and mux them back???
is there a avisynth filter that can playback subtitles directly from vob so i can encode with subtitles on?
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
02-11-2005, 04:55 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by silverspoonjackass
do i need to filter since im not resizing???
Of course, filtering is to remove noise, not to fix distort introduced by resizing.
Quote:
should i deinterlace???
No you should not (so be carefull to use filters that handle interlaced source. Boulder can help you finding correct ones).
Quote:
should output be interlaced???
Yes.
Quote:
can i demux the subtitles from the cut vob, and mux them back???
Yes. The method depend on the software you use to author your DVD. Do you have a tool you like ?
Quote:
is there a avisynth filter that can playback subtitles directly from vob so i can encode with subtitles on?
Yes it is. VSFilter.dll, delivered with Vobsub2.23 (that is the tool taht extract the subtitles from the vob).
Reply With Quote
  #3  
02-11-2005, 11:08 AM
silverspoonjackass silverspoonjackass is offline
Free Member
 
Join Date: May 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
whats the easiest program to use for demux/muxing subtitles?
Reply With Quote
  #4  
02-11-2005, 11:51 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by silverspoonjackass
whats the easiest program to use for demux/muxing subtitles?
Demux is easy (Vobsub2.23 as told above).
The easiest to mux is Muxman (see on Doom9.org) but this is only part of the problem. The real problem is how do you plan to author your DVD ?

If you need menus and stuff like this, muxman is not the correct tool, but tools that do menus does not handle subtitles so easily...

May be hard encoding subtitles on the video itself is the easiest way you have
Reply With Quote
  #5  
02-11-2005, 07:54 PM
silverspoonjackass silverspoonjackass is offline
Free Member
 
Join Date: May 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
yea i think thats my best bet too, since im gonna try to do a menu eventually. So far i extracted the subtitles with subrip(font looks a lot better with TextSub(), than original font) , and using this script:

============SCRIPT==================
LoadPlugin("E:\EXE\DVD\dgmpgdec110\DGDecode.dll")
LoadPlugin("D:\Program Files\AviSynth 2.5\plugins\VSFilter.dll")
LoadPlugin("D:\Program Files\AviSynth 2.5\plugins\STMedianFilter.dll")
LoadPlugin("D:\Program Files\AviSynth 2.5\plugins\asharp.dll")
LoadPlugin("D:\Program Files\AviSynth 2.5\plugins\unfilter.dll")
LoadPlugin("D:\Program Files\AviSynth 2.5\plugins\undot.dll")

MPEG2Source("VTS_01_1.VOB")

undot()
asharp(1, 4)
STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))

## Linear Motion Adaptive Filtering ##

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ")

TextSub("Anime.srt")

## Functions ###

function fmin( int f1, int f2) {
return ( f1<f2 ) ? f1 : f2
}
===========END SCRIPT================

should that do the trick?
Reply With Quote
  #6  
02-13-2005, 08:46 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
That is exactly that. Always put the subtitles after all the filtering, as you did, to avoid "blured" subtitles, diffucult to read.
Reply With Quote
  #7  
02-13-2005, 01:07 PM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
@silverspoonjackass: You can't use the MA script as it is if you have an interlaced source and keep it interlaced. See the sticky thread about interlaced processing in the Optimal scripts section.
Reply With Quote
  #8  
02-13-2005, 07:29 PM
silverspoonjackass silverspoonjackass is offline
Free Member
 
Join Date: May 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Assuming its top field first, this would be a better script then?

============SCRIPT==================
LoadPlugin("E:\EXE\DVD\dgmpgdec110\DGDecode.dll")
LoadPlugin("D:\Program Files\AviSynth 2.5\plugins\VSFilter.dll")
LoadPlugin("D:\Program Files\AviSynth 2.5\plugins\STMedianFilter.dll")
LoadPlugin("D:\Program Files\AviSynth 2.5\plugins\asharp.dll")
LoadPlugin("D:\Program Files\AviSynth 2.5\plugins\unfilter.dll")
LoadPlugin("D:\Program Files\AviSynth 2.5\plugins\undot.dll")
LoadPlugin("D:\Program Files\AviSynth 2.5\plugins\KernelDeint.dll")

MPEG2Source("Something.d2v")
KernelBob(order=1,sharp=true,threshold=7)
AssumeFrameBased()

undot()
asharp(1, 4)
STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))

## Linear Motion Adaptive Filtering ##

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ")

TextSub("Anime.srt")

AssumeBFF()
SeparateFields()
SelectEvery(4,1,2)
Weave()

## Functions ###

function fmin( int f1, int f2) {
return ( f1<f2 ) ? f1 : f2
}
===========END SCRIPT================

should subtitles be added before or after:
"...AssumeBFF()
SeparateFields()
SelectEvery(4,1,2)
Weave()..."
?
Reply With Quote
  #9  
02-14-2005, 03:53 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
The script looks ok, although you should download the latest version of Leak's KernelDeint here : http://forum.doom9.org/showthread.ph...=leakkernelbob . I just haven't updated that thread. Note that the dll name has changed so you'll have to remove kerneldeint.dll from your plugins folder and replace it with leakkerneldeint.dll found in the latest package. Then rename KernelBob in the script to LeakKernelBob and remove AssumeFrameBased() , it's no longer needed.

I would also replace TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) with TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 2)

What comes to the subs, I think they should be before AssumeBFF().. You'll have to test it though, I've never used hardcoded subs with interlaced material since I do only DVDs these days.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
KDVD: Demux from a dvd? bigggt Video Encoding and Conversion 2 12-25-2005 06:45 PM
Demux subtitles from vob maurus Subtitles 11 06-16-2004 12:40 PM
Subtitulos demux del dvd manoletier Convertir y Codificar Video (Español) 2 05-27-2004 07:36 AM
Demux AVI to KVCD? vdk_au Avisynth Scripting 1 03-13-2004 07:22 AM
TMPGEnc: no more M2V after demux PurF@n Video Encoding and Conversion 0 03-02-2003 04:56 AM

Thread Tools



 
All times are GMT -5. The time now is 05:41 PM  —  vBulletin © Jelsoft Enterprises Ltd