Log in

View Full Version : One-frame AVS causes QuEnc "Could not open Video Codec" error


SansGrip
21st July 2004, 16:08
I'm backing up The Station Agent, 5.79gb originally, to DVD-5. I first blanked FBI warnings, studio logos, trailers etc. (this might be the cause of the problem) to reduce to 5.29gb.

Prepare stage was fine, but the very first segment caused a QuEnc error ("Could not open Video Codec") upon encoding. Phase 2 is still running, but every segment since has encoded okay. VirtualDub reports the problem AVS is only 1 frame long. Here it is:


mpeg2source("...",idct=7)
trim(0,-1)
LanczosResize(704, 480)
Letterbox(8, 8, 8, 8)
FieldDeinterlace(full=false)
FluxSmooth(5, -1)
ConvertToYV12()

(The resize to 704x480 is experimental. I'm not sure if DVD-RB will notice I've changed the dimensions. If not, I'm hoping I can just use IfoEdit to correct things. I guess I'll find out ;). Also I should probably have put the FieldDeinterlace before the resize, but I did this at about 2:45am last night and wasn't thinking all that clearly... Edit: I now realise FieldDeinterlace shouldn't be in there at all.)

Here's the relevant section of REBUIDER.INI:


[V01000000001001]
SCR=.000
PTS=29707.000
Frame_Rate_Code=1
Pulldown=0
Structure=3
Frames=1
Last_Sector=45
Reduction=83.0
Aspect_Ratio=3
HalfD1=0
EndPTM=83761.000

Looking through it, I can see there are 3 other segments, not yet encoded, which have a frame count of 1...

I figure this almost certainly results from me blanking some cells before running it through DVD-RB, but it would be nice to be able to do that without producing a phase 2 error. This also might be considered a problem with QuEnc rather than DVD-RB but if so could perhaps be worked around in DVD-RB by not encoding very short segments and using the original video packs when rebuilding.

For this particular backup I'm going to try using a different encoder for the problem segments, but I'd rather that weren't necessary.

Wonderful tool. I've been investigating multiplexing myself recently and can only imagine the headaches implementation caused you. Donation coming once I've transferred some money from my back account to my PayPal account :).

Versions: DVD-RB 0.55b, QuEnc 0.51, Avisynth 2.54

dragongodz
22nd July 2004, 05:27
you could try my test version and see if you get the same results. i tried a 1 frame avs and it worked fine.

http://forum.doom9.org/showthread.php?s=&threadid=80088

SansGrip
22nd July 2004, 05:38
I'm encoding something right now (should be done in about 7 hours ;)) but I'll give it a shot tomorrow. I'd be interested to know if some of the other problems I saw with QuEnc (or more precisely, with libavcodec) -- such as strange very blocky frames appearing once every half a second or so -- are also fixed.

I didn't take the time to test thoroughly (I have four DVDs sitting on my hard drive waiting to be backed up), but it may well have been the particular combination of settings I was using. I don't remember them, unfortunately, because I tried a bunch.

Thanks for the tip. I'll try it on a one-frame AVS and let you know...