Gentoo Archives: gentoo-user

From: fire-eyes <sgtphou@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] mencoder: error encoding, following howto
Date: Wed, 21 Jun 2006 17:07:04
Message-Id: 200606211300.24159.sgtphou@fire-eyes.org
In Reply to: Re: [gentoo-user] mencoder: error encoding, following howto by Hans-Werner Hilse
1 On Wednesday 21 June 2006 12:45, Hans-Werner Hilse wrote:
2 > Hi,
3 >
4 > On Wed, 21 Jun 2006 10:01:51 -0400 fire-eyes <sgtphou@×××××××××.org>
5 >
6 > wrote:
7 > > I opt to go for the supposedly higher quality x264, so I do two
8 > > passes:
9 > >
10 > > 1:
11 > >
12 > > mencoder -v ../vob/title1.vob -alang en -vf
13 > > crop=720:352:0:62,scale=752:320 -ovc x264 -x264encopts
14 > > subq=4:bframes=4:b_pyramid:weight_b:pass=1:psnr:bitrate=4452:threads=2:tu
15 > >rbo=1 -oac copy -ofps 24000/1001 -vobsubout subtitles -vobsuboutindex 0
16 > > -slang en -o pass1.avi
17 >
18 > Hm, threading, eh? Ever tried disabling it?
19
20 Sure have, no change on either system.
21
22 > > 2 (which whines about not finding the log file, so I have to rename
23 > > divx2pass.log.temp to divx2pass.log manually -- donchya love having
24 > > to figure things out):
25 >
26 > The question is rather why mencoder doesn't name it like this. The
27 > mencoder man page clearly tells that it should. It supposedly wasn't
28 > existing at that point, right?
29
30 Correct, I did not understand that one, either.
31
32 > > mencoder -v ../vob/title1.vob -alang en -vf
33 > > crop=720:352:0:62,spp,scale,hqdn3d=2:1:2 -ovc x264 -x264encopts
34 > > subq=5:4x4mv:8x8dct:frameref=3:me=2:bframes=4:b_pyramid:pass=2:psnr:bitra
35 > >te=4450:threads=3 -oac faac -faacopts object=0:tns:quality=100 -ofps
36 > > 24000/1001 -o pass2.avi
37 >
38 > Oh, 3 threads now. Again: Did you try using only one thread? Are all
39 > those additional libraries you might have compiled into mplayer
40 > thread-safe? BTW: Is there a reason why in pass one you're using a
41 > cropped, scaled version of the movie and in pass two a _not_ scaled
42 > version? This will probably result in different blocks and will
43 > probably have (minor) bad influence on b/w calculation...
44
45 Just following the URL. I haven't a clue what i'm doing with all this stuff, i
46 find it very confusing.
47
48 > > However there is a problem with pass 2. I have tried this on two
49 > > seperate systems, and the exact same thing happens:
50 > > [...]
51 > > Segmentation fault
52 >
53 > Segfaults are not that uncommon if you have problems with interfering
54 > threads. If you have a little time, you may also want to do an "emerge
55 > -e mplayer" to sort out problems that are due to compiler change and
56 > similar. BTW: Are you overriding the mplayer ebuild's own CFLAG
57 > settings?
58
59 Sure, maybe I'll do the emptytree some day. Sounds like it would be easiest to
60 not use threads and in fact disable it in the x2whatever encoder, i would
61 hate to have to stick with that though as I do have two cpus... better than
62 segfaults tough.
63
64 I am using custom cflags on that, though I've never had a problem with that.
65
66 I think what I'll try is disabling threading support in the apps, try again.
67 If that fails, move away from custom-cflags in mplayer.
68
69 So many factors :) Thanks.
70
71 --
72 "When you walk across the fields with your mind pure and holy, then from
73 all the stones, and all growing things, and all animals, the sparks of
74 their soul come out and cling to you. And then they are purified, and
75 become a holy fire in you." -- Ancient Hasidic Saying
76 --
77 gentoo-user@g.o mailing list