PDA

View Full Version : hcenc or avisynth error


dream-lx
29th October 2006, 14:44
Hi,

First of all many thanks for this wonderfull mpeg encoder, and many thanks for HDTV support in next release. Really good work.

I am encoding files by calling hcenc automatically. Sometimes, I get the following error in log:

-----------------------------------------
| HCenc - MPEG2 encoder - rel. 0.19.0.0 |
-----------------------------------------

input: q:\video\dacruz2dvd2_sdtv_008.avs
output: q:\video\dacruz2dvd2_sdtv_008.m2v

--------------------
| encoder settings |
--------------------

profile: BEST
frames: 0 5999
framerate: 25.00
aspect ratio: 16:9
bitrate Kb/s: 7000
max. bitrate Kb/s: 7000
pulldown: no
closed gops: no
VBV check: yes
scene change det.: yes
interlaced: no
goplen,B-pic: 15 0
dc_precision: 10
scan method: ZIGZAG
bias: 0
chapter frames: 0
time code: 0 0 0 0
CPU: SSE2
matrix: MPEG

--------------------
| source stats |
--------------------

nr. of frames in source: 6000
width*height: 720*576
fps: 25.00
nr. of frames to encode: 6000
frames to encode: 0 - 5999

---------------------
| encoding - pass 1 |
---------------------

pass 1 encoding time: 0:14:09 (849 s)
average fps: 7.1

--------------------------------
| encoding - intermediate pass |
--------------------------------

bitrate set to: 7000000 b/s
est. outfile length: 205078 kB
intermediate encoding time: 0.2 s
*** Avisynth message: invoke environment error - pass 2 ***
*** HCenc message: aborting, can't start pass 2 ***

---------------------
| encoding - pass 2 |
---------------------

Reencoding the same file works. I don't whether this is avisynth or hcenc's fault. The avi files are using the newest version of the Cineform codec.

Here the avs script:

OpenDMLSource("q:\video\dacruz2dvd2_008.avi")
ConvertToRGB32("Rec709")
ConvertToYv12()
BilinearResize(720,576)

For me, this is not a big issue as it only happens rarely, and actually in my scripts, I simple recall hcenc if the size of the m2v file is 0.

I only posted it here to let you know about it.

Bye,
David Arendt

dream-lx
30th October 2006, 20:56
I have investigated this a bit further. Some other mpeg encoders crash at the end of encoding if using the cineform codec, so it could be that it is an incompatibility between avisynth and cineform codec. I will try lagarith and report my findings.

dream-lx
1st November 2006, 13:22
Using the lagarith codec everything seems to works fine, so my assumptions from the previous post seem to be correct.