digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   TMPGEnc standard SVCD template better than KVCDx3 mpeg-2! (http://www.digitalfaq.com/archives/encode/2611-tmpgenc-standard-svcd.html)

heller 02-14-2003 10:12 AM

TMPGEnc standard SVCD template better than KVCDx3 mpeg-2!
 
After extensive testing using the KVCDx3 mpeg-2 PAL and NTSC templates on different avi sources (all DVD rips, some live action and some animated movies), I've found that the regular TMPGEnc SVCD templates give me much better quality movies at almost the same file sizes using CQ and high quality (slow) settings. 8O

I've tried all sorts of avisynth filters combinations with KVCDx3 mpeg-2 (temporalsmoother, dust, blockbuster, faerydust, etc) but all lead to much worse picture quality (even no filters at all with KVCDx3 templates). I've tried resolutions of 480x480 and 544x480 for KVCDx3 (my player doesn't like 528x480). With the KVCDx3 templates I can actually see all of the horizontal scan lines on my TV, whereas with the standard SVCVD template the picture is smooth (no visible scan lines).

Maybe its because I'm using avi sources and not directly extracting from a DVD source, but I'm encoding from the same sources for tests and KVCDx3 definitely looks worse. I'm going back to the standard SVCD template for all my encoding for now.

BTW, I view all SVCDs using an APEX 1500 on a Sony KP53HS10 53" rear projection TV with 1080i. Maybe my TV is doing some weird interpolation that messes up the KVCDx3 encodes?

Is there something peculiar to my setup that's causing this? :(

Thanks. :P

Bald_Guy 02-14-2003 10:32 AM

Is there a guide you went off of to make the svcd? Just wondering because I recently made a xvcd hq rip of lotr 2 and it was hq but it had to be 4 cd's to do it. I have a 57"widescreen sony so hq is very important (seems though I can see every flaw)

heller 02-14-2003 01:01 PM

I've been encoding for a while now, so I'm not following any particular guide.

My general process is to extract the audio with VirtualDub, encode the audio portion with HeadA3che to mp2, and encode the video portion with TMPGEnc using the appropriate AVS file. I use GripCrop and GripBorders to resize as needed. I use BBMpeg to mux the files, and burn with Nero as a non-standard SVCD for the KVCDx3 encodes.

Bald_Guy 02-14-2003 01:22 PM

question? Why dont you just encode the video and the audio with tmpenc? I just rip the sound with virtual dub and then simply encode with tmpenc. Just wonderin why you make extra steps. Other question is I usually encode my dvds to avi with vidomi. I 99% of the time encode them to 2disks then when I encode them to svcd I encode then to 4 disk to retain the quality. Is this true for you.

heller 02-14-2003 01:29 PM

I do actually do the audio and video encoding in TMPGEnc if I don't care that much about the audio quality of a movie (e.g. kids animated movie), but I use HeadAc3he if I want the preserve quality audio (e.g. LOTR).

I used to encode only 30-40 minutes of SVCD per disk when I used CBR encoding (and thus spread movies out across 3-4 disks), but now that I use CQ I can definitely get 60-70 minutes of high quality live action letterbox format movie on one SVCD disk, and sometimes up to 90 minutes of animated movie onto one disk (using the standard SVCD template).

I thought I'd be able to get longer lengths with better quality using the KVCDx3 templates, but that has not been the case for me.

kwag 02-14-2003 01:58 PM

Hi heller,

If you only want to make SVCDs, load the SKVCD template and change the resolution to 480x480. You'll have the benefit of the KVCD's Q. Matrix and GOP, and you'll get far more time and quality on a single CD-R than with the standard SVCD templates :wink:

-kwag

heller 02-14-2003 02:48 PM

Thanks kwag, I'll give it a try! :)

BTW, I can't thank you enough for your wonderful patience and thoughtful guidance that you offer on this site. I just hope I can get your templates to work as well for me as they have for others.

Great work!! :flip:

kwag 02-14-2003 03:03 PM

Thanks heller :D

Here. For your SVCDs, run your movie through a script like this, and see what you get :wink:

Code:

LoadPlugin("C:\encoding\mpeg2dec.dll")
LoadPlugin("C:\encoding\GripFit_preview.dll")
LoadPlugin("C:\encoding\blockbuster.dll")
LoadPlugin("C:\encoding\legalclip.dll")
LoadPlugin("C:\encoding\sampler.dll")
LoadPlugin("C:\encoding\dustv5.dll")
LoadPlugin("C:\encoding\temporalcleanerold.dll")

Mpeg2Source("K:\S1M0NE_WS\VIDEO_TS\simone.d2v")
LegalClip()
GripCrop( width=480, height=480, overscan=1 )
GripSize()
SpaceDust()
TemporalCleaner()
Blockbuster(method="noise", variance=.4, seed=1)
GripBorders()
LegalClip()
Sampler(length=24)

## MPEG size = ((Total frames/MovieTimeInMinutes)/24) * MPEG sample file size * .98 ##


There's a "Downloads" link on the main page at www.kvcd.net that links to all filter sources.

-kwag

heller 02-14-2003 03:32 PM

Got all the filters already--I'll give it a try over this weekend.
:grin:

big 02-15-2003 04:22 PM

a
 
where do you dll your temporalcleanerold.dll...when we dll it is temporalcleaner.dll...where is the old coming from???

kwag 02-15-2003 04:27 PM

Re: a
 
Quote:

Originally Posted by big
where do you dll your temporalcleanerold.dll...when we dll it is temporalcleaner.dll...where is the old coming from???

It's here in this thread: http://forum.doom9.org/showthread.ph...d&pagenumber=3

-kwag

Peter1234 02-15-2003 05:59 PM

I have an Apex AD-1500 and I have found that it does not like KVCD files. I recommend using mpeg2 (KDVD). The Apex AD-1500 will play mpeg2 SVCDs with 720x480 and 704x480 frame sizes (make using VCDEasy). If you are willing to only get 35 minutes per CD, you can get DVD quality. You can get 2 hours per CD using 352x240 frame size. Note - old KDVD template gives better quailty than new one at bit rates over 1500 kbps (new one is better below 1500 kbps).

kwag 02-15-2003 09:08 PM

Quote:

Originally Posted by Peter1234
I have an Apex AD-1500 and I have found that it does not like KVCD files.

Yes it does: http://www.kvcd.net/forum/viewtopic....ghlight=ad1500
But you must encode MPEG-2 instead of MPEG-1.

-kwag

Timberwolf 02-15-2003 11:05 PM

I too have apex 1500 and it works quite well. I just use the templates for mpeg1 exactly as is but change the output resolution to it's PAL equivalent, say 704x560, 480x560, 244x560, etc. - the result? the xvcd is perfect, no stuttering, no sync problems, etc.

The only template that doesn't work with it is the 528x560 resolution, although I'm not too convinced it would't work because I just tried it once. It might not have worked due to a different reason.

Peter1234 02-15-2003 11:58 PM

Timberwolf,
When you say your xvcd is perfect does that imply you are using mpeg2. My point was that mpeg2 seems to work better than mpeg1 on the Apex AD-1500. If you are getting good results using mpeg1 with the KVCD matrix please let me know.

Peter1234 02-16-2003 12:01 AM

Timberwolf,
Sorry, I guess you said you are using the mpeg1 templates exactly except for size.

Timberwolf 02-16-2003 01:13 AM

Yeah, it's mpeg 1. mpeg2 also works with the templates but with the low bitrates the templates are using, blocks are unavoidable. unlike with mpeg1 where with the right dvd source, the end result is sometimes indistinguishable from the dvd itself.

aside from the better result with mpeg1 with my method, I don't have to demux/mux the mpg with bbmpeg to make it work with the apex ad-1500. You just take the end result of the TempGenc and burn it as a non-standard vcd. that's it!

Peter1234 02-16-2003 01:47 AM

Timberwolf,
I used a 23.976 fps AVI source (video and audio). I generated two mpeg1 files using the current KVCDx2-CQ-704x480-_NTSCFilm_-PLUS.mcf template with 480 changed to 560. The first was generated by making a m1v elementary stream and a mp2 elementary stream and then muxing them with MPEG Tools using MPEG-1 (automatic). The second was generated as a system (video + audio) stream. VCDEasy was then used to generate a VCD 2.0 disk with these two mpeg1 files. The resulting disk would not play on my Apex AD-1500. Any idea what I did wrong?

Timberwolf 02-16-2003 02:18 AM

I have no idea. I can only tell you the steps I do.

I rip the dvd with smartripper.

I produce the d2v file using dvd2avi

I feed the d2v file to fitcd of which the result is in turn fed to TmpGenC. I don't bother working on the audio and video separately so I gnenrate them both as a system stream (video + audio). I don't bother much with filters because I'm already satisfied with the result without them.

I then take the resulting mpg and use VCDeasy to burn the vcd.


I've read of this method of using the templates as is but changing the output resolution to __x560 from this board a year ago (or has just started) actually. The first time I tried it, it worked right away. My method then was Smartripper -> DVD2Avi -> TmpGenC ->VCDEasy. My method now has some added steps and the templates were revised but the method still works, and I've done over a two hundred dvds right now the same way and it still is working.

I'm sorry I can't pinpoint what went wrong with your test but the method does work for me, and I assure you that my player is Apex AD-1500. I don't know what to tell you man, there was really no tricks to what I did, I just did the most basic steps and it worked.

A question, when you said you changed the size to _x560, you changed it from the ADVANCED tab in TmpGenC, right? I also change the settings at FitCD but it really doesn't matter, it should still work if you don't because I did it once and it still did.

Peter1234 02-16-2003 02:45 AM

Timberwolf,
Thankyou for taking the time to help me out. I changed the size on the video tab size boxes, not the advanced tab. I have never had to change the size on the advanced tab before. Are you changing it in the Video arrange method pixels boxes?

Peter1234 02-16-2003 03:50 AM

Timberwolf,
Settings on Advanced tab are: 4:3 525 line (NTSC 704x480), Full screen (keep aspect ratio), pixel boxes are greyed out and have values 320 x 240. Settings on Video tab size boxes are 704 x 560, stream type is MPEG-1 video, Aspect ratio is 4:3 525 line (NTSC), Frame rate is 23.976 fps. Settings on System tab are MPEG-1 Video-CD (non-standard). Resulting disk has sound with black screen.

Timberwolf 02-16-2003 04:21 AM

oops, sorry you're right. it should be changed at the video tab and not at the advance tab. Actually I also change the Aspect ratio to 4:3 625 line (PAL) although it still works if you don't because I once forgot and it still worked.

strange that you have a black screen, I just can't think of a reason why. I don't think it's the TmpGenC because I've used several versions of it and they all worked.

Right now I'm doing The Bourne Identity and my settings at the Video tab is mpeg1 video; 704x576; 4:6 625 line (PAL); 25fps CQ = 78 300 - 2500. Advance tab settings are Non-interlaced progressive; Bottom field first (Field B); 16:9 525 line (NTSC) source aspect ratio; Full screen video arrange method.

This is using the new KVCD x 2 template, but of course any of them will work except for the KVCDx3 with the 578x480 res which did not work in my initial trial.

Anyways, I tried encoding a few minutes of the movie mentioned earlier and it works! That sucks that it's not working for you man. I also feel bad that the one time I could help someone, it turned out that I couldn't. I hope you don't give up on it right away, anyway good luck!

Peter1234 02-16-2003 05:32 AM

Timberwolf,
I'm glad it works for you. That means I may be able to get it working also. Thanks for all of the info. I will keep playing with it and maybe I will find the correct combination of settings to make it work for me. Thanks again,
Peter

heller 02-16-2003 01:14 PM

Peter1234,

I can't get mpeg-1 to work on my apex-1500 properly either (which is why I use SVCD encoding and mpeg-2). I believe that about a year ago Apex stopped supporting the VCD standard (due to its unwillingness to foot the licensing bill to the best of my knowledge), and we may both be stuck with players that won't do VCD. I believe you can get mpeg-1 to work if you remux it as a SVCD, but I haven't tried this yet.

After my current round of encoding trials I'll give KVCD a try with remuxing!

I hope this information is accurate and helpful. :D

Timberwolf 02-16-2003 04:04 PM

Peter, what heller said may be the reason why?

I bought my unit a year ago before apex stopped their support on vcds. If you bought yours later maybe it's got a new firmware or something that's why we're getting different results. I don't know since I'm talking out of my arse right now.

Yeah, you could do that remuxing as an SVCD too as heller suggested. I used to do that before I found out this other way of doing it.

Peter1234 02-16-2003 05:04 PM

My Apex AD-1500 plays VCD disks made using the default TMPGEnc values. But when I use the KVCD mpeg1 templates it has problems playing the VCD (jerky video is most common problem). I have been using the KDVD 704x480 template and generating an SVCD. This works fine but may not have as good quality as KVCD at lower bit rates.

Peter1234 02-16-2003 06:30 PM

I have tried several ways of remuxing the audio using TMPGEnc and BBmpeg but have not found a way to make it work. What is strange is that if I use the KVCDx2-CQ-704x480-_NTSCFilm_-PLUS.mcf template and encode a mpeg1 System (Video only) file and generate a mpeg1 VCD using VCDEasy, the video plays fine. But when I try to add sound the video gets messed up. If you find out how to do it please let me know what to do.

heller 02-16-2003 11:02 PM

Peter,

I'm in the middle of doing a bunch of test encoding right now, but this is what seems to work with the best quality for me on my Apex 1500:

KVCDx3 mpeg-1 templates, change the resolution to 544x480 (or 544x576 for PAL).
For 25 fps avi sources I just use the PAL template and it works fine. For 23.976 sources, if you use 23.976 for the framerate there's lots of skipping, so CHANGE TO 29.97! I have TMPGEnc mux the audio and video for me, and use 128 kb/sec for the audio stream without any problem.

I've tried changing the VBV to 22 as someone else suggested, but I don't see much difference except a smaller file size ( Kwag or Sansgrip--what effect does VBV have??)

For some reason this looks MUCH better on my Apex than KVCDx3 mpeg-2 encodes (which have visible scan lines and are less sharp)!

Hope this helps! :D

Peter1234 02-17-2003 03:57 AM

Thanks for the update.
This works for me also. However, I recommend using 704x480 instead of 544x480. 704x480 seems to give a better picture on TV at the same data rate and also gives a good picture in Windows Media Player. I tested using 1400 kbps CBR video and 128 kbps audio for both to get a fair comparison (this would be about a one hour CD). Also, using 29.97 fps causes some of the frames to be repeated when the source is 24 fps, this can sometimes be noticed.

Peter1234 02-17-2003 06:35 AM

I also compared 544x480 against 704x480 using 700 kbps CBR video and 96 kbps audio and still feel that 704x480 is better. This gives about 2 hours per CD and definitely has better quality than mpeg2 at the same data rate. Looks good on computer but not so good on TV (I'm not sure why). This is the script I used (width changed for 544x480).

AVISource("C:\WINDOWS\Desktop\test.avi")
ConvertToYUY2
LegalClip()
GripCrop( width=704, height=480, overscan=0 )
GripSize()
FaeryDust()
TemporalCleaner()
GripBorders()
LegalClip()
ConvertToRGB24

This would be great if it looked as good on TV as it does on computer monitor. I have a 53" TV also and it shows all of the flaws in the video. Might look OK on a smaller TV. Anyhow, at this data rate I think mpeg1 is better than mpeg2 (KVCD is better than KDVD) but picture quality on TV is not real good. Maybe you will have different results.

heller 02-17-2003 02:20 PM

Peter,

You're trying 704x480 with kvcdx3 mpeg-1, right?
Won't this always create larger files than the same template at 544x480 since its a higher resolution?

I've give it a shot just myself to see how it looks. Do you have the "jittery" video problem with 23.976 NTSC KVCD on the Apex? For some reason it doesn't happen with 25fps avi sources for me.

Looks like I was wrong about our players and VCD compatibility since it looks like its working for me okay at 544x480.

Thanks! :wink:

Peter1234 02-17-2003 04:15 PM

Heller,
Yes, I am testing with KVCDx3 mpeg1 at 29.97 fps. I have only had problems on the Apex AD-1500 with KVCD templates that use 23.976 fps (but they all seem to). KVCD with frame rate changed to 29.97 fps plays fine (I think, I haven't done much testing).

Using 704x480 will produce the same size files as 544x480 if the data rate is set the same (that is why I tested using CBR). One has more bits per pixel for a given data rate and the other has more pixels with less bits per pixels at the same data rate. I think that using the bits to get more pixels gives better picture than using more bits per pixel at the data rates I tested at. This is definitely true at high data rates but as the data rate is reduced at some point having more bits per pixel will give a better picture.

Peter1234 02-17-2003 05:08 PM

Heller,
I did a check using KVCDx3 with the size changed to 544x480 using a 24 fps source and it produced jerky video. I also tried it using 24 fps instead of 23.976 in KVCDx3 with 544x480 and the video was still jerky. Only seems to work if I change the fps to 29.97in the KVCD template. Maybe using a 25 fps source is magic. I do not have a 25 fps source so I can not test this on my AD-1500. I will try to make one and try it.

Peter1234 02-17-2003 05:34 PM

Heller,
I made a 25 fps AVI and used it with the KVCDx3-MPEG-1-NTSCFilm.mcf template which had size changed to 544x480 (nothing else changed) and the resulting VCD had jerky video on the AD-1500. Please confirm your results.

heller 02-17-2003 07:30 PM

Peter,

With your 25fps source use the kvcdx3 PAL mpeg-1 template and see what happens (change resolution to 544x576). For me this has worked fine for several different test avi's. My problem is encoding 23.976 sources (as you said, most are at this framerate)--the KVCDx3 NTSCfilm produces jerky output unless you change the framerate to 29.97 which seems to work fine. You mentioned something about repeated frames, so I'll need to keep an eye out to see if I'm getting them but haven't notices. At least the jerkiness is gone and the quality is fantastic.

BTW, I use CQ encoding for everything--have you tried this instead of CBR?

Peter1234 02-17-2003 08:36 PM

Heller,
Thanks, I will try using the PAL template, but I have to go to a meeting now. To go from 24 fps to 30 fps the encoder uses 6 of the frames twice during each second. Not normally noticeable, but sometimes is (not something to worry about). I was only using CBR for the test. CQ is what you should normally use.

heller 02-17-2003 11:50 PM

Peter,

I'm so glad I tried your suggestion--704x480 (and 704x576 for 25 fps encodes) are absolutely beautiful on my TV. In comparison to 544x480 they're slightly sharper (especially in animated movies with lots of straight edges going diagonally across the screen). Most amazingly, though, is that with the same CQ value the 704x480 encodes are not much bigger than the 544x480 files (e.g. 11.1 MB vs. 10.5)--I can't for the life of me figure out how it can look so better and not be much bigger files. I'm using pretty much the same script as you except I use spacedust instead of faerydust, and use overscan=1.

Try the PAL resolutions for 25 fps encodes (704x576) and see if that helps get rid of the jerkiness. If I try 704x480 or 544x480 with 25 fps avi files I get the jerkiness, but not with PAL resolutions for some reason.

Peter1234 02-18-2003 12:25 AM

Heller,
I tried the KVCDx3-MPEG-1-PAL.mcf template with size changed to 544x576 (no other changes) using 23.976 fps and 25 fps AVI source files. Both played perfectly. I think you have a good solution. You should tell Kwag to put a note on the DVD compatibility chart for the Apex AD-1500 saying "for 23.976 fps source files use KVCDx3-MPEG-1-PAL.mcf template with size changed to 544x576" so that others will know how to do it also. Thanks for your help.

Using 25 fps instead of 29.97 fps will give you an extra 5 frames worth of data each second that can either be used to reduce the data rate or improve the quailty. That means you should be able to get 20% more video on a CD with the same quality if you use 25 fps instead of 29.97 fps. So this is a much better solution than using the NTSC template at 29.97 fps.

It would also be good to check to see if the size really has to be changed. Maybe all we had to do was use the PAL template. I will check this later.

Peter1234 02-18-2003 12:50 AM

Heller,
I may have been wrong about getting an extra 20% video per CD. That would be true if the frame sizes were the same for both. To get the correct value the difference in frame size needs to be considered also. Comparing a 704x480 frame size against a 704x576 frame size there is a 20% difference, so what you gain in frames per second is lost in frame size and both videos will be the same length. I think. Well anyway, it works great, thanks again.

kwag 02-18-2003 12:57 AM

Quote:

Originally Posted by Peter1234
You should tell Kwag to put a note on the DVD compatibility chart for the Apex AD-1500 saying "for 23.976 fps source files use KVCDx3-MPEG-1-PAL.mcf template with size changed to 544x576" so that others will know how to do it also.

You just did :D
Page updated.

Thanks,
-kwag


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

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.