mencoder error on 2nd pass with x264
On a very long video (4hrs), when doing a 2-pass encoding, I get x264 [error]: 2nd pass has more frames than 1st pass (275054)0.039 [511:125] x264 [error]: continuing anyway, at constant QP=25 x264 [error]: 2nd pass has more frames than 1st pass (275054)0.039 [511:125] x264 [error]: continuing anyway, at constant QP=25 x264 [error]: 2nd pass has more frames than 1st pass (275054)0.039 [511:125] x264 [error]: continuing anyway, at constant QP=25 Pos:11470.5s 343775f (80%) 36.52fps Trem: 39min 1096mb A-V:0.038 [511:125] Skipping frame! x264 [error]: 2nd pass has more frames than 1st pass (275054)0.038 [511:125] x264 [error]: continuing anyway, at constant QP=25 mencoder: encoder/slicetype.c:376: x264_slicetype_analyse: Assertion `h->frames.b_have_lowres' failed. Aborted as error. The first pass is fine Command line for the 1st pass is mencoder video.avi -o reencoded/video.avi -oac mp3lame -lameopts abr=128 -ovc x264 -x264encopts bitrate=512:subq=4:pass=1:turbo=1:threads=4 -vf scale=384:288,dsize=512:288 -srate 44100 -ofps 24 Command line for the 2nd pass is mencoder video.avi -o reencoded/video.avi -oac mp3lame -lameopts abr=128 -ovc x264 -x264encopts bitrate=512:subq=6:partitions=all:8x8dct:me=umh:frameref=5:pass=2:threads=4 -vf scale=384:288,dsize=512:288 -srate 44100 -ofps 24 any ideas?
On Sat, 28 Apr 2007, RC wrote:
On Sat, 28 Apr 2007, Alexander Roalter wrote:
bitrate=512:subq=4:pass=1:turbo=1:threads=4
bitrate=512:subq=6:partitions=all:8x8dct:me=umh:frameref=5:pass=2:threads=4
It's rarely a good idea to change options between passes.
No, it's recommended to change options between passes, except for a few which have to remain the same. What's not recommended is to both use turbo and change the other options, because that's redundant. --Loren Merritt
Loren Merritt wrote:
On Sat, 28 Apr 2007, RC wrote:
On Sat, 28 Apr 2007, Alexander Roalter wrote:
bitrate=512:subq=4:pass=1:turbo=1:threads=4
bitrate=512:subq=6:partitions=all:8x8dct:me=umh:frameref=5:pass=2:threads=4 It's rarely a good idea to change options between passes.
No, it's recommended to change options between passes, except for a few which have to remain the same. What's not recommended is to both use turbo and change the other options, because that's redundant.
Don't know if it's gonna help, but ATM I re-encoded the long video single-pass with lavc and unlimited bitrate (which required more than 5GB @ 2.7Mbit/s) and now I'm reencoding this video with x264. In 4 hours I'll know more (since the 2nd pass does not run faster than 30 frames/s @ AMD X2 3800... The first pass still is at 110 fps though :) I'll keep you posted.
On Sat, 28 Apr 2007 14:07:49 -0600 (MDT) Loren Merritt <lorenm@u.washington.edu> wrote:
No, it's recommended to change options between passes, except for a few which have to remain the same.
Odd that I don't see the slightest mention of that in the man page.
RC wrote:
On Sat, 28 Apr 2007 14:07:49 -0600 (MDT) Loren Merritt <lorenm@u.washington.edu> wrote:
No, it's recommended to change options between passes, except for a few which have to remain the same.
Odd that I don't see the slightest mention of that in the man page. At least in the documentation (not man-page) 13.3 the 2nd pass is with more options than the first, and even in the man page for the first pass most time-consuming options are deactivated. Isn't the first pass used only to gather the bitrate requirements (of course still for the special needings of the used codec etc... )?
Whatever, my method of encoding it to a 5GB file first with maximum quality and then back to x264 with the sharper restrictions worked, seems like the AVI i got in the first place was not that problem-free after all. cheers, Alex
participants (3)
-
Alexander Roalter -
Loren Merritt -
RC