Quantcast Encoding: 640x272 Source - Which Template ? - digitalFAQ.com Forums [Archives]
  #1  
10-09-2002, 04:18 AM
jmjarvis jmjarvis is offline
Free Member
 
Join Date: Jul 2002
Location: United Kingdom
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jmjarvis
Hey people,

I have a 640x272 23.976fps DIVx .avi which is of very very very very high quality.

I would like to convert this using one of the KVCD templates prefferably the x3 as they continiousy produce excellent results. I do understand though that I may not be able to.

The idea is to be able to watch this on my Sony DAV-S800 standalone.

As I mentioned the source is of very very high quality.

Is there a full guide detailing exactly how to get this converted using TMPGenc ? I've quickly looked through the forums but couldn't see anything obvious so apologies if its easily available.

Oh and I really don't care how many CD's it takes. Its the quality thats really really important to me.
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  
10-09-2002, 07:30 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by jmjarvis
Hey people,

I have a 640x272 23.976fps DIVx .avi, which is of very very very very high quality.

I would like to convert this using one of the KVCD templates prefferably the x3 as they continiousy produce excellent results. I do understand though that I may not be able to.

The idea is to be able to watch this on my Sony DAV-S800 standalone.

As I mentioned the source is of very very high quality.

Is there a full guide detailing exactly how to get this converted using TMPGenc ? I've quickly looked through the forums but couldn't see anything obvious so apologies if its easily available.

Oh and I really don't care how many CD's it takes. Its the quality thats really really important to me.
Coincidence , I also have a very very very high quality personal 640x272 DivX , which I encoded myself for test purposes and I just made an experiment to see if it would fit on a CD. Guess what. It did , and I used the x3 template. Here's the script:

LoadPlugin("C:\encoding\MPEG2DEC.dll")
LoadPlugin("C:\encoding\Convolution3d.dll")
AviSource("C:\mymovie.avi")
converttoyuy2()
BicubicResize(496,256,0,0.6,8,0,624,272)
Convolution3d (1,0,0,7,7,3,0)
AddBorders(16,112,16,112)
###--------------------- Start Of File Size Prediction ----------------------###

#IL = Framecount / 100 # interval length in frames
#SL = round(Framerate) # sample length in frames
#SelectRangeEvery(IL,SL)
## MPEG size = ((Total frames/Framerate)/100) * (MPEG sample file size * .95) ##

###------------------------End File Size Prediction--------------------------###


I used CQ_VBR value of 16. maybe yours will be similar
I usually don't do this, because upscaling resolutions usually gives bad results. But in this case, the avi is so high quality, that the mpeg I got with the x3, is just as good

-kwag
Reply With Quote
  #3  
10-09-2002, 10:18 AM
jmjarvis jmjarvis is offline
Free Member
 
Join Date: Jul 2002
Location: United Kingdom
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jmjarvis
Kwag,

Thanks for your reply

Have been reading up on your steps for something similiar to this and it leaves me now with only one problem:

When I open up the .wav file created by VDub in headac3he I get the following error:

Could not find data chunk!

When I opened up the .avi in VDub it did say that there may be a skew of 40097ms as there is an improper VBR encoding in the source.

I could just open up the .wav within TMPGenc but would like to go all the way with this.

oh and LoadPlugin("C:\encoding\Convolution3d.dll") ?????????????

Just converted a little slice leaving the CQ_VBR as is from the template 25 I think. Anyway the edges are not sharp. Do I let tmpgenc sort this with Sharpen Edges option ?
Reply With Quote
  #4  
10-09-2002, 11:06 AM
black prince black prince is offline
Free Member
 
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Kwag,

Have you tried LanczosResize instead of BicubicResize?
If so, what is your opinion?

Quote:
Dark-Cracker
Doom9 Senior Member

Registered: Feb 2002
Location:
Posts: 276

yes Lanczos resize formula was the BEST ratio quality/size i
have make a compressibility test and the result was above bilinear and
below the bicubic. i need do more tests but i realy think with a light
convolution filter and this resize filter the result will be better than
bicubic and near the biliear compressibility.


-black prince
Reply With Quote
  #5  
10-09-2002, 11:19 AM
black prince black prince is offline
Free Member
 
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Jmjarvis,

Input your Divx(avi) into VirtualDub and go to "File"-->"File Information".
Check the "Audio Stream" section --> Compression. If you
see "Unknown" it could be .AC3 or .OGG, else if MPEG Layer 3, then
its .mp3. If .mp3 then rename the .wav created by VD to .mp3.
Use BeSweet to convert it to uncompressed .wav. Now use Headac3he
to convert to .mp2.


-black prince
Reply With Quote
  #6  
10-09-2002, 11:33 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by black prince
Hi Kwag,

Have you tried LanczosResize instead of BicubicResize?
If so, what is your opinion?
Nope!. I'll take a look

Thanks,
-kwag
Reply With Quote
  #7  
10-09-2002, 11:41 AM
jmjarvis jmjarvis is offline
Free Member
 
Join Date: Jul 2002
Location: United Kingdom
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jmjarvis
Kwag,

It doesn't seem to matter what template I choose in TMPGenc the edges are simply not sharp. This is with the .avs file or the .avi file.

The source is perfect.

What am I doing wrong ?
Reply With Quote
  #8  
10-09-2002, 11:58 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by jmjarvis
Kwag,

It doesn't seem to matter what template I choose in TMPGenc the edges are simply not sharp. This is with the .avs file or the .avi file.

The source is perfect.

What am I doing wrong ?
Did you try it with the script I posted? Mine came out excelent, with sharp edges, etc. Be sure to use bicubic resize for your 640x272 if you're resizing it to 528x480. Don't use bilinear.

-kwag
Reply With Quote
  #9  
10-09-2002, 12:00 PM
jmjarvis jmjarvis is offline
Free Member
 
Join Date: Jul 2002
Location: United Kingdom
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jmjarvis
I used everything apart from convolution3d as I don't have it.

Obviously changed the paths for .dll's and source but apart from that yes everything is the same.
Reply With Quote
  #10  
10-09-2002, 04:48 PM
jmjarvis jmjarvis is offline
Free Member
 
Join Date: Jul 2002
Location: United Kingdom
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jmjarvis
Well hours after playing here and playing there I find myself posting something a little bizzare.

My mistake Kwag when I said that the edges are not smooth. This is the case playing it on the laptop but when playing this on my Sony DAV-S800 system its well.......................perfect.

I have used the 704x480 KVCD plus template (last one I tried before cutting this to CD) and well hey its sooooooooooooooo perfect. Haven't tried cutting the .avs output to disc yet but its next on my list.

Edit:
Ok the KVCDx3 528x480 template using the following .avs script produces a very fast like fast forward video:


LoadPlugin("C:\Program Files\mpeg2dec\MPEG2DEC.dll")
AviSource("C:\Source\test.avi")
converttoyuy2()
BicubicResize(496,256,0,0.6,8,0,624,272)
#Convolution3d (1,0,0,7,7,3,0)

AddBorders(16,112,16,112)
###--------------------- Start Of File Size Prediction ----------------------###

#IL = Framecount / 100 # interval length in frames
#SL = round(Framerate) # sample length in frames
#SelectRangeEvery(IL,SL)
## MPEG size = ((Total frames/Framerate)/100) * (MPEG sample file size * .95) ##

###------------------------End File Size Prediction--------------------------###

Is there something else I need to do to this script ?

Oh and when its pitch black on the source its a little grey on the KVCDx3 output but perfect on the KVCDx2.

Any advice in figuring this out is much apprectiated.

Oh and the resolution between the 2 is exactly the same. There is no difference watching this on my TV.
Reply With Quote
  #11  
10-10-2002, 03:29 AM
jmjarvis jmjarvis is offline
Free Member
 
Join Date: Jul 2002
Location: United Kingdom
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jmjarvis
Hey Black Prince,

Thanks for the reply.

It was mpeg layer3 and I followed your steps in renaming it. Put it through the headac3he is all is honky donk.

Thanks again for your help.
Reply With Quote
  #12  
10-10-2002, 04:18 PM
jmjarvis jmjarvis is offline
Free Member
 
Join Date: Jul 2002
Location: United Kingdom
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jmjarvis
Kwag,

Can you help me ?

I have finished 22hours (yes 22 hours) of converting this movie 640x272 to a 704x480 and the movie qality a simply.............unreal

BUT

What I am left with is something which runs tooooooooo quickly.

Muxing this together with the audio and I have video that runs toooo quickly and audio that sounds toooooo slowly.


Can you help ?
Reply With Quote
  #13  
10-10-2002, 05:18 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by jmjarvis
Kwag,

Can you help me ?

I have finished 22hours (yes 22 hours) of converting this movie 640x272 to a 704x480 and the movie qality a simply.............unreal

BUT

What I am left with is something which runs tooooooooo quickly.

Muxing this together with the audio and I have video that runs toooo quickly and audio that sounds toooooo slowly.


Can you help ?
You probably encoded your audio at 48Khz instead of 44.1Khz.
Did you check "Resample to 44.1Khz" in Headac3he

-kwag
Reply With Quote
  #14  
10-11-2002, 08:16 AM
jmjarvis jmjarvis is offline
Free Member
 
Join Date: Jul 2002
Location: United Kingdom
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jmjarvis
Kwag,

I am currently watching the full .mpg created by the 704x480 KVCDx2 template on the laptop and its perfect.

What I did was ran it through TEMPGenc and cut 6 minutes of it to another .mpg file just to burn it CD as the original is over 900Mb. Watching this on the standalone last night was toooo quick and the sound was toooo slow.

But watching them both on the laptop and its perfect.
Reply With Quote
  #15  
10-11-2002, 09:51 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by jmjarvis
Kwag,

I am currently watching the full .mpg created by the 704x480 KVCDx2 template on the laptop and its perfect.

What I did was ran it through TEMPGenc and cut 6 minutes of it to another .mpg file just to burn it CD as the original is over 900Mb. Watching this on the standalone last night was toooo quick and the sound was toooo slow.

But watching them both on the laptop and its perfect.
Just demux your movie, re-encode the audio at 44.1Khz, and remux

-kwag
Reply With Quote
  #16  
10-11-2002, 02:33 PM
jmjarvis jmjarvis is offline
Free Member
 
Join Date: Jul 2002
Location: United Kingdom
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jmjarvis
Kwag,

Still not good. I demuxed it all using TMPGenc producing the .mp2 file for audio. Opened this up in headac3he and I get the following error message:

Warning:
Source file's last frame incomplete
or corrupt stream

What am I doing wrong ???? AAARRRGGGHHHHHH

The sound is sooooooo slow and out of sync its unreal. The video is absolutely perfect but its just the sound

Playing any of it (.avi or .mpg), no matter what I create on the laptop and all is great. Why is that ?? When I open it up in PowerDVD it tells me its mpeg2 audio @ 160kbps.

Please help. Currently have 1 laptop and 1 movie destined for 1 window

Edit:

Ok now I am getting annoyed For once I have the most perfect video and its unreal. All I am left with is terrible audio. So this is what I now have:

1) .avi file (original source 640x272 mpeg2 video & mpeg 2 160kbps audio)

2) TMPGenc'ing it gave me a .mpg of over 930Mb. From this (demuxing) I got a .m1v and .m2p files.

3) Open the .m2p file up in Headac3he and it checks the file BUT complains with :

Warning:
Source file's last frame incomplete
or corrupt stream


4) If I try to open up the original .avi file up in VDub I get "VirtualDub has detected an improper VBR audio encoding in the source AVI file and will rewrite with standard CBR vaules during processing. This may add 40097ms of skew"

From what I've been told ALLLLLL I need to do is to re-encode the audio from 48khz to 44.1khz.

HOW DO I DO THIS ????????
Reply With Quote
  #17  
10-11-2002, 08:52 PM
black prince black prince is offline
Free Member
 
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
Hey jmjarvis,

Quote:
Hi Jmjarvis,

Input your Divx(avi) into VirtualDub and go to "File"-->"File Information".
Check the "Audio Stream" section --> Compression. If you
see "Unknown" it could be .AC3 or .OGG, else if MPEG Layer 3, then
its .mp3. If .mp3 then rename the .wav created by VD to .mp3.
Use BeSweet to convert it to uncompressed .wav. Now use Headac3he
to convert to .mp2.
You skipped using BeSweet to create an uncompressed .wav from
the mp3 file. Then us Headac3he to convert the wav to mp2.

-black prince
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Encoding: Fieldblended PAR source incredible Video Encoding and Conversion 6 10-09-2005 03:42 PM
Re-Encoding 14.985fps source ? Chula Video Encoding and Conversion 6 12-27-2004 01:57 PM
Apex AD-1500 KVCD template changes for 23.976 fps source Peter1234 Players, DVRs, Media Centers 8 08-05-2003 11:51 AM
Encoding: OGM source, how to add it to AVS? AgNa Video Encoding and Conversion 8 05-08-2003 05:14 PM
Source is 30fps at 720 x 432 - what template applies? end80 Video Encoding and Conversion 0 11-21-2002 09:20 AM

Thread Tools



 
All times are GMT -5. The time now is 07:19 AM  —  vBulletin © Jelsoft Enterprises Ltd