PDA

View Full Version : Fast resizing AFTER encoding with CCE?


Letricheur
16th March 2002, 19:49
Because I have had trouble using avisynth *.avs/VFAPI wrap/CCE 2.62 (sometimes get only green screen) I have started encoding using the DVD2AVI *.d2v file in a VFAPI wrap. However, the product is the original 720x480 and I want to make a SVCD 480x480. Is there a fast way to simply resize without re-encoding? bbMPEG and TMPGEnc just seem to want to re-encode, which is slow and defeats the whole purpose of using the faster CCE.

Kedirekin
16th March 2002, 21:33
No. As far as I know (and I'm pretty sure about this) there is no way to resize an mpeg without re-encoding.

Letricheur
16th March 2002, 21:58
Thanks. I'll just have to try to get avisynth to work properly. Any ideas about that, btw? Sometimes it works fine and at other times after making the VFAPI wrap all I get is green screen (when viewed in Windows Media Player). I made no change to the avs script.

poopity poop
17th March 2002, 08:47
2 things...

1
What was your avs script? post it here


2.
Put the resize into avisynth and feed that into CCESP and make sureit says 4:3 DAR in vieo options. I know 480x480 is 1:1, but if you want 480x480, resize it in avisynth, and have 4:3 DAR in CCESP. Also, encode a CBR MPg using CCESP for about 5 minutes and just stop the encoding and check it...then you ca see if its coming out the way you want it!! I always DO before an encode who wants to waste all that time like you did if its not going to come out the way you way it! Double check recheck and check again, time is money with encoding

You can also save yourself some trouble by making an intermediate avi, that'w what I always do, but CCESP sucks ass on that too, and I wind up frame serving the uncompressed avi from vdub, but that works well, jsut the full-proof/hard/bigharddrivespace way. :) Hope that helps

Doom9
17th March 2002, 13:24
dvd2avi -> tmpg (resize to 480x480) -> save tmpg project -> vfapi -> cce

Letricheur
17th March 2002, 17:36
Thanks for the advice and Doom9, thanks for the tip on using a TMPGEnc project file. I'll try it. Will it still work as quickly as avisynth through CCE?.

With the avs-VFAPI problem, I was actually using a short piece of video to test but the wierdest thing happens. I'll put it through VFAPI and check the avi file in Media Player. The first time I do this after starting the computer, I might see the video. If then I load the avi into CCE, I see green screen on the preview. If I go back to Media Player again, I still see the green screen. At other times, VFAPI fails to produce even that, only a black screen (that appears to 'play') in both Media Player and CCE. Here is my avs script, borrowed from FitCD.

LoadPlugin("C:\DVD\MPEG2DEC.dll")
mpeg2source("D:\Video_ts\Sliding Doors.d2v")
BilinearResize(448,448,0,0,720,480)
#TemporalSmoother(2,2)
AddBorders(16,16,16,16)
Trim(0,600)
ResampleAudio(44100)

I have even tried this with an old avisynth-VFAPI file that used to work all the time and it still does it occasionally. Only the *.d2v files converted with VFAPI seem to work reliably.

sorrydaijin
18th March 2002, 05:08
you could also try halving the resolution in the CCE options, although this will give you 352 instead of 480 rez, which may or may not run on your player of choice. It runs fine on my pioneer 535, and it makes for very fast encoding.

Letricheur
18th March 2002, 18:27
Thanks, but I'd really rather stick to 480x480 if I can; the picture is so much sharper. In the meantime I have been using Doom9's suggestion of loading a TMPGEnc project into CCE, which works fine. I am going to post a question about this method in the CCE forum.

therick
28th March 2002, 17:11
@Litrecheur - try this, I found it on VCDHelp a couple of days ago. I was having problems loading an .avs into CCE until this point (no TMPEG required for this one, you can do the resizing with AVISynth). Here we go:

1. Use vfapi to convert your .d2v to .avi.
2. Set up your script as it looks now.
3. Load the .avi (from the .d2v) into CCE.
4. Save this as a CCE project (.ecl file).
5. Close CCE.
5. Open the .ecl file with notepad.
6. Change the file 2 name references (ex.F:\whatever\whatever_d2v_vfapi.avi) to your .avs script
7. You will see a lot of settings. Change the size from 720x480 to 480x480.
8. Save changes.
9. Start CCE back up and load the .ecl file you just saved. You will see your .avs file as the source instead of the .avi.
10. Encode and enjoy.

**this worked for me, hope it does for you....

Letricheur
28th March 2002, 17:36
That sounds promising, thanks. I'll give it a try. I like the idea of being able to 'fool' CCE into using an *.avs file.

Letricheur
28th March 2002, 18:09
Thanks again for the idea. I tried it but after I changed the file reference names in the *.ecl, it loaded the *.avs file OK. When I pressed encode, CCE (2.62) said it was not an *.avi file (which is true). Here is the changed *.ecl (I excluded some parts for brevity). Did I do something wrong? Also, do you have a reference for the VCDHelp thread?

; CCE SP Trial Version -- Encoder Control List

[item]
title=Sliding5.avs #Changed
vid_out=1
vaf_out=1
aud_out=1
aud_mode=0
vid_file0=C:\My Documents\Sliding5_avs-vfapi.m2v #(the old file name)
vid_file1=C:\My Documents\Sliding5_avs-vfapi.m2v
vaf_file=C:\My Documents\Sliding5_avs-vfapi.vaf
aud_file=C:\My Documents\Sliding5_avs-vfapi.mpa
file_focused=0
encode_mode=0
packet_size=2048
timecode=0x1000000
width=480
height=480
vmode=1......
...

brate_idx=7
crc=1

[file]
name=C:\My Documents\Sliding5.avs #Changed
type=0
frame_first=0
frame_last=9189
encode_first=0
encode_last=9189

therick
28th March 2002, 19:43
that looks like what I did...the only difference is that I am using CCE 2.5...I didn't realize that you were using 2.6...

As for that post, I'll look for it...when I get home (where I encode) I will post my .ecl file...but offhand yours looks identical...

therick
28th March 2002, 19:46
OK, here is a topic about it, but this is not the one I read...

http://forum.vcdhelp.com/viewtopic.php?t=83826&highlight=cce+avisynth

It basically says that you can't do it with 2.6 (this person is having the same problem you are), but that you can only do it with 2.5. I would try converting the .avs file with the VFAPI reader (although I have never done it myself I hear that it works)...sorry I led you down the wrong path...

therick
28th March 2002, 19:49
ok, one more time...you have to install an .avs reader for the VFAPI to get it to work, just to let you know...

therick
28th March 2002, 20:37
OK, here is a topic about it, but this is not the one I read...

http://forum.vcdhelp.com/viewtopic.php?t=83826&highlight=cce+avisynth

It basically says that you can't do it with 2.6 (this person is having the same problem you are), but that you can only do it with 2.5. I would try converting the .avs file with the VFAPI reader (although I have never done it myself I hear that it works)...sorry I led you down the wrong path...

Letricheur
29th March 2002, 01:58
No problem. I'll try it with CCE 2.5.

Letricheur
29th March 2002, 06:43
You know, I am having no problem loading an *.avs into CCE 2.5, so I don't seem to need to do this clever work around of yours. However, it will not let me edit the start and stop points with a picture preview of the file, something about not being able to find the YUY codec. Oddly, if I load a VFAPI wrapped *.avs (now *.avi) it will show me the video preview. Using the VFAPI-wrapped file is about 25-30% slower than using the *.avs file directly so I think I'll stick with that and just pass up the video preview. Wonder what your difficulty using *.avs in CCE 2.5 is due to?

poopity poop
29th March 2002, 17:24
I'll say it once, and I'll say it again...

"MAKE AN UNCOMPRESSED .AVI, AND LOAD THAT INTO CCESP!"

if you do this, you only have to process resizing...cropping...noise reduction...Deinterlacing(if using decomb)...subtitles, etc, etc, etc ONCE. If you load your avs you have to process ALL the things EVERYTIME you do a pass, what a waste of time!

Use huffyYUV and save yourself more than half of the disk space of a real uncompressed avi.

and I don't want to hear any crap about not having enough disk space. Hard drives are like $1.20/GIG! up to like 100GIGS's.
www.pricewatch.com

I don't want to harp on anyone here, but doesn't this make sence? If you don't know how to make an uncompressed avi from your avs or VFAPI just clikc on my ripping methods in my signature, and use your common sence to get to that section

Trahald
29th March 2002, 17:45
letricheur - if your player accepts it (many do) you can just burn the 720x480 as a Xsvcd.. my player plays those fine
just remember at 720x480 its good to be generous with bitrate



hehe poopy.. you make a good point

i run 2.50 so takes avs fine.. but i wanted to use a vdub filter so i HAD to vdub->vfapi->cce

the filter was a slow smoother if i was doing more than one pass, definately worth it to make an avi.. bad thing is if you dont have room for a compressed avi (using even yuv9 (used by cap cards) you still end up with a huge file)

didnt know this 20 gig i only bought 6 months ago would be obsolete so fast ;)