Log in

View Full Version : How do I resize 480x480 to 720x576


Bodman
11th January 2003, 00:07
Hi,
I am looking to convert SVCD to DVDR. I have done this plenty times without re-encoding the video but I would like to get this back to the correct resolution if possible without any reencoding or quality loss....can I do this by a simple avisynth script or is ther another way.

Possibly something like

mpeg2source("c:\LOTR2\lotr2.mpg")
BilinearResize(720,576)




Regards

Bodman :)

808state
12th January 2003, 00:11
Try this guide! http://www.vcdhelp.com/svcddvdr.htm

Bodman
12th January 2003, 18:45
Thanks I looked at this but its the same as what I do now. Faking the video using DVD patcher. I have found a lot of standalones dont like this so I was looking to actually resize the video back to original from SVCD 480 x 480.

//bodman

Cartoony
12th January 2003, 20:30
I've tried this myself & get the most reliable results with Canpopus Procoder - open the SVCD MPEG, choose your settings & re-encode. Every file I've done remains in Sync, too.
If you've done loads of 480x480 SVCDs on DVDr, could you have a look at my question at
http://forum.doom9.org/showthread.php?s=&threadid=42798
please. Thanks

Andy McRip
12th January 2003, 21:07
try here instead
" http://www.doom9.org/index.html?/mpg/svcd2dvdr.htm "
:D

Bodman
13th January 2003, 18:52
Hi,
Thanks for the replies. I have now found a solution using AVISYNTH I am using a script like this.

loadplugin("c:\windows\system32\MPEG2Dec.dll")
mpeg2source("F:\LOTR2\1.d2v")
crop(0,104,480,272)
bilinearresize(720,480)


If anyone wants to do this and needs to know how i came about these setting drop me a line

//Bodman

Cartoony
13th January 2003, 21:10
Stupid questions, I know, but:
1) can you run this on the SVCD MPEG or do you need to de-mux it? If so, what do you demux & then remux with?
2) if you can run this on the MPEG, how do you resample the audio to 48k.
I'd appreciate your help as I'm familiar with SVCDs but have only just got a DVDr. I'd be keen to know how you do this conversion (including resampling the audio) but really need a step by step guide if possible please.

fletch
16th January 2003, 06:43
Hi Bodman,

Thanks for your AVISYNTH script ! We both seem to be converting the same movie :D

How did you join all 4 discs together ? Using TMPGEnc ?

What was the quality of the re-encode ? I assume you used CCE to re-encode ?

Cheers

Fletch

jdobbs
16th January 2003, 18:06
@bodman

You may want to consider using BicubicResize as opposed to BilinearResize (same syntax) -- it does a better job when enlarging a picture size.

themancubb
17th January 2003, 18:16
I have the same movie but the joining is causing the audio to be off about 3 sec after the first CD. I am using Tmpgenc and It cannot seem to get the vids joined without messing up. PLEASE let me know waht I can do

Bodman
17th January 2003, 20:30
I demuxed the audio and video with tmpeg (mpeg tools > simple demux

AUDIO
Dont join the audio streams yet...I tried loads of ways and always got out of sync audio :(

open the audio in sound forge 5...selected resample 48Khz then saved as wav (yes all 4 disks and yes there 600+ meg)

converted the wavs to mp2 using 2lame (besweet gui)...now got 4 mp2 files

joined the files together using twins file merger (Misc files)...now 1 large mp2 file


VIDEO
opened the first mpv file in dvd2avi and it auto selects the rest...
using the crop section on video tab I found out how much to chop off the top and bottom of the video (Black Bars) which was 104 off the top and the bottom...therefore crop in avisynth becomes crop(0,104,480,272) (left,top&bottom,width,height) the height is 480-104-104=272

un ticked the crop/resize check box and saved project (untick audio track 1 if ticked...you already have the audio)


I used this script in avisynth

loadplugin("c:\windows\system32\MPEG2Dec.dll")
mpeg2source("F:\LOTR2\1.d2v")
crop(0,104,480,272)
bilinearresize(720,480)

but after post by jdobbs (thnx :) ) I changed to

BicubicResize(720,480)

Ran this through CCE
(I opened the first demuxed mpv file (untouched) through bitrate viewer to get some of the settings

opened Maestro (rather than scenerist this time)
dragged in audio, video and a (every 9 minutes) chapter file I knocked up and combined (multiplexed)

once finished I opened the ifo file in ifoedit and the aspect ratio was set to 4:3..:mad: so I changed this back to 16:9 :D (i must have missed somethin out somewhere along the way)

hey presto...in sync and correct aspect ratio :)

Quality was less than the SVCD....but it was the correct aspect...


hope this helps some of you trying to do the same as me. I dont claim this to be the fastest or even the best way to do this...surely there must be a easier way...but it worked for me :D

//Bodman

Bodman
18th January 2003, 01:54
Back to the quality, I have burnt this re-enocoded video to dvdr and checked in my standalone, and the quality is not as good as the SVCD some jaggies on moving images (obvious really as its been encoded again :( ) so back to my original question...does anyone know a way to crop and resize this without a re-encode or do I have to re-encode this as its cropped resolution is 480x272 and i want 720x480...can someone also confirm the best settings for CCE for this

http://www.bodsworld.com/before.jpg


http://www.bodsworld.com/after.jpg


//Bodman

fasttimes
18th January 2003, 02:25
No way to resize without another transcoding :( If I were you, I would resize to half D1 (352x480) and not full D1. The will allow a higher bitrate/pixel ratio (improving quality) and will also tend to hide a bit of the SVCD artifacts.

I also would not use bicubic, but bilinear. Bicubic will just enhance the MPEG artifacts, as it has a sharpening effect.

Lastly, I would use some filtering, to try and kill some of the SVCD artifacting.

jdobbs
18th January 2003, 03:50
Bodman,

I've done quite a few of these. Look here (http://forum.doom9.org/showthread.php?s=&threadid=19779&highlight=svcd+to+dvdr) to see the method I use.

Here's the AVISYNTH script used:

LoadPlugin("C:\PROGRAM FILES\DVD-RIP\AVISYNTH\MPEG2DEC.DLL")
mpeg2source("d:\image\vobs\MYFILE.d2v")
BicubicResize(720,640)
crop(0,80,720,480)

I've gotten consistently good quality encoding with CCE. Also -- the compression ratio remains very high on these upsized videos because the true underlying resolution never actually gets any better than the 480x480 source. The parts that are added are inferred from the original making them compress very well.

I wouldn't downsize to 352x480 because then you are definitely degrading the picture. I would agree, though, that if your original has a lot of artifacts (it was compressed at too low a datarate) that bilinear resizing can soften the picture and smooth the edges. From a quality original, though, that would be considered distortion.