Quantcast DVD2SVCD: Transcode an AVI to KSVCD with Subtitles - Page 3 - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Video Encoding and Conversion

Reply
 
LinkBack Thread Tools
  #41  
10-13-2003, 03:14 PM
Paulus Paulus is offline
Free Member
 
Join Date: Jun 2003
Location: Ottersum, The Netherlands
Posts: 199
Thanks: 0
Thanked 0 Times in 0 Posts
Nope......still much too low

I used :

ScriptType: v4.00+
PlayResX: 384 (why you use 380 ?)
PlayResY: 288

[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,10,&H00ffffff,&H0000ffff,&H00000000, &H80000000,-1,0,0,0,75,100,0,0.00,1,2,3,2,20,20,5,1
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
  #42  
10-13-2003, 03:20 PM
staigerpaip staigerpaip is offline
Free Member
 
Join Date: Oct 2003
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Style: Default,Arial,10,&H00ffffff,&H0000ffff,&H00000000, &H80000000,-1,0,0,0,75,100,0,0.00,1,2,3,2,20,20,5,1
if you make that 20, it's still to low?
Reply With Quote
  #43  
10-13-2003, 03:29 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
An other question : does the palce change when you change the Margin value or not ?

In other words : did you notice that the .style file has an influence or not ?
Reply With Quote
  #44  
10-13-2003, 04:25 PM
Paulus Paulus is offline
Free Member
 
Join Date: Jun 2003
Location: Ottersum, The Netherlands
Posts: 199
Thanks: 0
Thanked 0 Times in 0 Posts
Well that's the point excactly Phil ! I DON't see any influence in the various MarginV settings (5, 17 or 20) or in the ScaleX (75 or 100).

I've tried changing PlayResX and Y also but don't know exactly where to change them to or even what they represent.

Maybe it's in the D2S 121B2 version ? What version are you using staigerpaip ? I remember that the guy from the other thread (Payasa) used the 113B2A I think, but I don't have that version......

Getting desparate but will never surrender (that's my attitude ..
Reply With Quote
  #45  
10-13-2003, 04:29 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Can you copy the script generated by D2S ?

Why don't you make your test by hand, out of D2S, and when you will find a .style that is correct to your wishes, return under D2S to do the actual job ?
Reply With Quote
  #46  
10-13-2003, 04:52 PM
Paulus Paulus is offline
Free Member
 
Join Date: Jun 2003
Location: Ottersum, The Netherlands
Posts: 199
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Phil,

Below is my svcdinfo.txt. Don't exactly know what you mean by "making test by hand, out of D2S" and "return under D2S to do the actual job".

I've edited the .style sheet with the suggested parameter settings but none showed any change in the way subs appeared in the TMPEG screen.

If you could explain this I gladly try it.....

--------------SVCDINFO.TXT--------------
GENERAL INFO
- Source:
- Movie Offset: 2 sec
- CD Overlap seconds: No
- Startup delays: Video: 344 ms Audio 1: 344 msAudio 2: 344 ms
- Video format: NTSC
- Length: 01:52:37
- CD Images: 1

IMDB INFO:
Movie title:
User rating:
Directed by:
Writing credits:
Genre:
Tagline:
Plot outline:


VIDEO INFO:
- Encoder: TMPGEnc 2.513.53.162
- Rate Control Mode: Constant quality (CQ)
- Max. bitrate: 2300
- CQ Value 76.00
- Min. bitrate: 400
- Motion search prec.: Motion estimate search (fast)
- Field order: Yes
- DC component prec.: 8 bits
- Output YUV as YCbCr: No
- Floating point DCT: Yes
- No motion search: False
- Soften block noise: No
- iDCT Algorithm:
- NTSC Field Operation:
- Deinterlace: None
- Pulldown: Yes, TMPGEnc internal
- Width: 480
- Height: 480
- Matrix:
Intra:
8 16 19 22 26 27 29 34
16 19 22 26 27 29 34 37
19 22 26 27 29 34 37 38
22 26 27 31 36 37 38 40
26 27 29 36 39 38 40 48
27 29 34 37 38 40 48 58
29 34 37 38 40 48 58 69
34 37 38 40 48 58 69 79
Non-Intra:
16 18 20 22 24 26 28 30
18 20 22 24 26 28 30 32
20 22 24 26 28 30 32 34
22 24 26 30 32 32 34 36
24 26 28 32 34 34 36 38
26 28 30 32 34 36 38 40
28 30 32 34 36 38 42 42
30 32 34 36 38 40 42 44

AVISYNTH SCRIPT:
LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\Mpeg 2dec\MPEG2D~1.DLL")
AVISource("D:\ARLING~1\ARLING~1.AVI",False)
ConvertToYUY2()
Undot()
Blockbuster(method="noise",detail_min=1,detail_max =8,variance=0.3,seed=5823)
ATC(2,3,5,0.5,false)
TemporalSoften(2,7,7,3,2)
GripCrop(480, 328+76+76, overscan=1, source_anamorphic=false, dest_anamorphic=false)
GripSize(resizer="LanczosResize")
DCTFilter(1,1,1,1,1,1,0.5,0)
Blockbuster(method="noise",detail_min=1,detail_max =10,variance=0.5,seed=5623)
GripBorders()
Textsub("d:\movie\subtitle.srt")


AUDIO INFO:
- Audiostreams: 1
- Audio 1 Language: Unspecified
- Audio 1 Bitrate: 128
- Audio 1 Sample freq: 44100
- Audio 1 Mode: Dual channel
- Audio 1 Besweet:

SUBTITLE INFO:
- Subtitlestreams: 0
- Type:
- Sub. 1 Language:
- Sub. 2 Language:
- Sub. 3 Language:
- Sub. 4 Language:

AUTHORING INFO:
- CD Image program: VCDXBuild
- Entrysvd: No
Reply With Quote
  #47  
10-14-2003, 04:01 AM
staigerpaip staigerpaip is offline
Free Member
 
Join Date: Oct 2003
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Paulus,

With the avisynthscript you are using, you could use the regular dvd2svcd subtitle function. You replaced the "deen()" with "atc" and removed the "function ConvertToYUY2(clip c){ return isYV12(c) ? c : convertToYV12(c) }". That was the problem with the dvd2svcd subs. The point was to get subtitles with the "optimal script".

Below a few thoughts about what you could check/change/do to make it work.

Here is the avisynthscript I use:
Code:
[AVISYNTH_Divx Filter]
0=Blockbuster(method="noise",detail_min=1,detail_max=8,variance=0.3,seed=5823)
1=Deen()
2=GripCrop(^TargetWidth, ^TargetHeight+^BorderTop+^BorderBottom, overscan=^overscan, source_anamorphic=^source_ana, dest_anamorphic=^dest_ana)
3=GripSize(resizer="^resizer")
4=Undot()
5=TemporalSoften(2,7,7,3,2)
6=DCTFilter(1,1,1,1,1,1,0.5,0)
7=GripBorders()
8=function ConvertToYUY2(clip c){ return isYV12(c) ? c : convertToYV12(c) }
9=Textsub("C:\subs\subtitle.srt")
^overscan=1
^source_ana=false
^dest_ana=false
^resizer=LanczosResize
You can change it in dvd2svcd. This one works for me in dvd2svcd version 1.2.1B3. Try this version.
Make sure you have the .srt and the .srt.style in the same directory. I have for instance: C:\subs\subtitle.srt (your subfile) and a C:\subs\subtitle.srt.style (your style file) with this in it:
Code:
ScriptType: v4.00+
PlayResX: 384
PlayResY: 288

[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,16,&H00ffffff,&H0000ffff,&H00000000,&H80000000,0,0,0,0,55,100,0,0.00,1,1,2,2,20,20,17,1
Also make sure you have the VSFilter.dll in the program files\avisynth2.5\plugins directory. (So use avisynth 2.5 not 2.0.
Try downloading just the VSFilter.dll from http://dvx.sf.net/plugins/SubtitlesRipperPlugin3.0.exe
This is the program subtitleripper. If you extract it you'll find the VSFilter.dll.

I hope this works. You can test everything in dvd2svcd with 'preview video'. If you make an subtitle.srt file with 1 sub like this:
Code:
1
00:00:00,100 --> 00:50:50,000
Testerdetest of dit werkt
Werkt het wel, werkt het niet!
You should see every 'new frame' the subs.

One last thing: If you change the fontsize in the subtitle.srt.style, you should see the change! If it's not vissible, there might be a problem with the subtitle.srt/subtitle.srt.style not in the same directory, not the same name (subtitle.*). Or a problem with Vsfilter.dll.

I hope I could be of some help to you.

Tinus.
Reply With Quote
  #48  
10-14-2003, 07:20 AM
Paulus Paulus is offline
Free Member
 
Join Date: Jun 2003
Location: Ottersum, The Netherlands
Posts: 199
Thanks: 0
Thanked 0 Times in 0 Posts
Hello Staigerpaip,

Thanks for the extensive reply ! I will have a lot to try/check this evening (my wive begins to miss me ).

Goal is definitely to use the optimal script. I tested that as wel but got error message at the start of video encoding "deen need YV12 input", so I use the previous script from Dialhot.

Will try D2S 1.2.1.B3 (didn't knew it was out already).

I've put .srt and .srt style always in same directory before

I've put the VSFilter.dll everywhere (I'm always a bit puzzled were to put it so I've put it in Avisynth/filters directory as well as in the DVD2SVCD directory.....Maybe do some clean up (download again from your link).

I will test / check with changing the fontsize in .style. I was focussed on the sub position all the time so I didn't look at fontsize so much...

But for you subs work OK Tinus ? Also with the optimal DivX script ? (also solved sub quality on TV screen now ?).

Will post result of testing this evening...............
Reply With Quote
  #49  
10-14-2003, 08:20 AM
staigerpaip staigerpaip is offline
Free Member
 
Join Date: Oct 2003
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
I'm at work also right now (but it's a slow day ).......

If you want to use the 'old' script, just use the build-in sub function of d2s. The quality is better and it's MUCH easier to accomplish .

Maybe Dialhot can explain what the differences are between the 'old' and 'new'(optimal) script. (I meen quality, final filesize i.e.). If there is not much of a difference, I think is better to use the 'old' script.

My subs are visible, I get them at the place I want with the size I want, but there is a visible difference in quality between the Textsub and the avisynthsubtitler. So try and watch what you like best.

And most important: Keep your wife happy.... It's better to enjoy a well made kvcd together then alone :P

Goodluck and post your results. I will centainly take a look tomorrow.

Tinus
Reply With Quote
  #50  
10-14-2003, 08:33 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Generally I change the optimal sccript when the quality is better (generally in the details of the picture) or the file size obtained is smaller.

The problem is I do not know what you refer as "new" and "old" script as I do new ones every time and do not really remember which one I give to the forum
Reply With Quote
  #51  
10-14-2003, 09:09 AM
staigerpaip staigerpaip is offline
Free Member
 
Join Date: Oct 2003
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Phil,

I meant
Code:
[AVISYNTH_Divx Filter_NOSUBS]
0=Blockbuster(method="noise",detail_min=1,detail_max=8,variance=0.3,seed=5823)
1=Deen()
2=GripCrop(^TargetWidth, ^TargetHeight+^BorderTop+^BorderBottom, overscan=^overscan, source_anamorphic=^source_ana, dest_anamorphic=^dest_ana)
3=GripSize(resizer="^resizer")
4=Undot()
5=TemporalSoften(2,7,7,3,2)
6=DCTFilter(1,1,1,1,1,1,0.5,0)
7=GripBorders()
8=function ConvertToYUY2(clip c){ return isYV12(c) ? c : convertToYV12(c) }
^overscan=1
^source_ana=false
^dest_ana=false
^resizer=LanczosResize
as new and
Code:
0=ConvertToYV12() 
1=Undot() 
2=Blockbuster(method="noise",detail_min=1,detail_max=8,variance=0.3,seed=5823) 
3=ATC(2,3,5,0.5,false) 
4=TemporalSoften(2,7,7,3,2) 
5=GripCrop(^TargetWidth, ^TargetHeight+^BorderTop+^BorderBottom, overscan=^overscan, source_anamorphic=^source_ana, dest_anamorphic=^dest_ana) 
6=GripSize(resizer="^resizer") 
7=DCTFilter(1,1,1,1,1,1,0.5,0) 
8=Blockbuster(method="noise",detail_min=1,detail_max=10,variance=0.5,seed=5623) 
9=GripBorders() 
^overscan=1 
^source_ana=false 
^dest_ana=false 
^resizer=LanczosResize
as old.
The scripts for DivX converting. The new scripts gives the problems with perm. subs in d2s.

Tinus
Reply With Quote
  #52  
10-14-2003, 09:16 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Okay.

Both scripts gave problems with permsub because it comes from the usage of YV12 color space. So you have to remove line 8 of "new" script and line 0 of "old" one.

Now, for the diff between the two, the one with deen gives better results on removing blocks. But some find it too heavy on details. So we did a new optimal script for avi and you can find it in the avi->kvcd section of the forum.

I can adapt it to D2S if you want and update the "optimal script for D2S" thread in this forum. Do you want that ?
Reply With Quote
  #53  
10-14-2003, 09:40 AM
staigerpaip staigerpaip is offline
Free Member
 
Join Date: Oct 2003
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
I can adapt it to D2S if you want and update the "optimal script for D2S" thread in this forum. Do you want that ?
That would be great! I would love to try it....
Reply With Quote
  #54  
10-14-2003, 09:46 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Okay. I'll do that perhaps tonight and this time I will put two version : with and without permsub.
Reply With Quote
  #55  
10-14-2003, 09:51 AM
staigerpaip staigerpaip is offline
Free Member
 
Join Date: Oct 2003
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Just to let you know

I tried the 'old' script:
Code:
0=ConvertToYV12() 
1=Undot() 
2=Blockbuster(method="noise",detail_min=1,detail_max=8,variance=0.3,seed=5823) 
3=ATC(2,3,5,0.5,false) 
4=TemporalSoften(2,7,7,3,2) 
5=GripCrop(^TargetWidth, ^TargetHeight+^BorderTop+^BorderBottom, overscan=^overscan, source_anamorphic=^source_ana, dest_anamorphic=^dest_ana) 
6=GripSize(resizer="^resizer") 
7=DCTFilter(1,1,1,1,1,1,0.5,0) 
8=Blockbuster(method="noise",detail_min=1,detail_max=10,variance=0.5,seed=5623) 
9=GripBorders() 
^overscan=1 
^source_ana=false 
^dest_ana=false 
^resizer=LanczosResize
and perm subs are working with this script.

Looking forward to the adjusted scripts
Reply With Quote
  #56  
10-14-2003, 01:40 PM
Paulus Paulus is offline
Free Member
 
Join Date: Jun 2003
Location: Ottersum, The Netherlands
Posts: 199
Thanks: 0
Thanked 0 Times in 0 Posts
Good news from me as well guys ! It's working finally.


Code:
ScriptType: v4.00+ 
PlayResX: 384 
PlayResY: 288  

[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,13,&H00ffffff,&H00808080,&H00000000,&H80000000,0,0,0,0,75,75,0,0.00,1,1,2,2,20,20,45,1

I went all the wrong way earlier with the Margin V. I should have increased this value (not decrease) to get the subs higher ! (Why didn't you guys tell me this ?

Now I use 45 for this avi i'm encoding now. Also, both the ScaleX and the ScaleY need to be adjusted both to keep the correct "aspect ratio" for the characters (not compressing them). Lowering ONLY the ScaleX makes the height of the sub characters bigger (compressing them from both sides so to say). So Staigerpaip -> I'm guessing you must have characters wich relatively "long/high" letters/characters ?.

Pretty sure this must work with all scripts (I already saw your new scripts in DiVx->KVCD forum, Dialhot but didn't brought it up before. First things first......). I'm trying them later this week with more avi's to encode.

All in all I'm pretty happy now (but.....wait until I check my burned result in the Cyberhome DVD player for final conclusions ).
Reply With Quote
  #57  
10-15-2003, 03:58 AM
staigerpaip staigerpaip is offline
Free Member
 
Join Date: Oct 2003
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Paulus,
Quote:
Why didn't you guys tell me this ?
Told you to try 20 as MarginV (You used 5)......
Great job Paulus . As we say in The Netherlands: De aanhouder wint!

Then a correction:
Quote:
and perm subs are working with this script
is not true
In D2S preview they showup, but not in the final encoding. The preview uses a converttoYUY2 in the script. The final script doesn't.

I hope Phil has the time to adapt the optimal scripts for D2S to one with perm subs.

Thanks all........
Reply With Quote
  #58  
10-15-2003, 07:25 AM
Paulus Paulus is offline
Free Member
 
Join Date: Jun 2003
Location: Ottersum, The Netherlands
Posts: 199
Thanks: 0
Thanked 0 Times in 0 Posts
He Staigerpaip,

.......I DID start with the MarginV=20 (because it's default in the .style file). This value resulted in subs too low in the black bar. (I think it depends on the avi size/res which value work best).

I think Dialhot recommended using the value 5 (in any case: lower than default) to "Payasa" in another thread. ....With 5 the subs showed up only slightly lower than with 20 so I didn't notice any change at first.

It's working now, so I'm happy.

Hope that the standard DVD2SVCD subtitle option will work in next version. Maybe I should test with this as well, because using TextSub is not very "efficiënt"/easy to use.

Closing thread (I think ?.... ) But I have lot's more so.........
Reply With Quote
  #59  
10-15-2003, 07:30 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 Paulus
Hope that the standard DVD2SVCD subtitle option will work in next version. Maybe I should test with this as well, because using TextSub is not very "efficiënt"/easy to use.
Permsub works in D2S ! The problem is that for our script we need to bee in YV12 colorspace and the subtitler provided by D2S works only in YuY2.

So I don't think D2S developper intends to fix that. We have to modify the script (I work on this).

And textsub is very efficient. You just had been very unlucky in having a problem with it in your first try . But I used it for dozens of encoding without any problems. In fact, I just need to make a .style for two of them. That's very few.
Reply With Quote
  #60  
10-15-2003, 09:04 AM
Paulus Paulus is offline
Free Member
 
Join Date: Jun 2003
Location: Ottersum, The Netherlands
Posts: 199
Thanks: 0
Thanked 0 Times in 0 Posts
Phil,

I used the "old" DivX script with "convert ty Y..." line removed but could not position external subtitles with standard D2S subtitle / avisynthsubtitler......

I tried changing the positioning parameter options in standard D2S subtitle menu but that didn't seem to work..........-> that's when the TextSub function came in the picture.

Anyway, I will test standard D2S subtitle parameters again to see if it DOES work.

Definitely look forward to your new scripts Dialhot.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Lossless transcode from KVCD to KSVCD? fingerbob Video Encoding and Conversion 2 09-22-2004 07:45 PM
DVD2SVCD: Subtitles using Vobsub DiCE Video Encoding and Conversion 43 07-11-2004 10:56 AM
issues with getting SVCD subtitles to work when using KSVCD? Aemon Subtitles 1 12-19-2003 05:12 PM
DVD2SVCD: Problem with subtitles jeje Video Encoding and Conversion 1 09-13-2003 01:32 PM
DVD2SVCD: Help with subtitles t1955feb Video Encoding and Conversion 2 09-07-2003 12:27 PM




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