Gentoo Archives: gentoo-user

From: Nick Rout <nick@×××××××.nz>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] mencoder did nothing all night at 100% CPU!
Date: Fri, 11 Aug 2006 05:15:59
Message-Id: 20060811170220.FE44.NICK@rout.co.nz
In Reply to: [gentoo-user] mencoder did nothing all night at 100% CPU! by Iain Buchanan
1 If you want to encode to dvd format I highly recommend any2vob or its
2 cousin any2dvd
3
4 Not in portage AFAIK, but the author provides ebuilds.
5
6 There is a long thread on forums.gentoo.org about any2vob. Here is the
7 web page for the script:
8
9 http://sourceforge.net/projects/any2dvd/
10
11 http://forums.gentoo.org/viewtopic-t-117709-highlight-any2vob.html
12
13
14
15
16 On Fri, 11 Aug 2006 07:36:32 +0930
17 Iain Buchanan wrote:
18
19 > Hi all,
20 >
21 > I'm trying out mencoder to try a few different codecs and formats for 1.
22 > dvd authoring and 2. just compressing to keep on my HD.
23 >
24 > This is what I tried last night:
25 >
26 > mencoder 2006.06.24_09-26-48.dv -o 2006.06.24_09-26-48.avi -ovc lavc -oac lavc
27 >
28 > that was ok, GREAT file size (original 350MB dv went down to 13MB), but
29 > crappy quality - I could see all the compression "squares". Then I
30 > tried:
31 >
32 > mencoder 2006.06.24_09-26-48.dv -o 2006.06.24_09-26-48.avi -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:vmax_b_frames=2:vb_strategy=1:precmp=2:cmp=2:subcmp=2:preme=2:qns=2 -oac lavc
33 >
34 > which was better quality, and still a great file size, but I could still
35 > see some quit noticeable compression artifacts.
36 >
37 > THEN I thought, well if I'm going to encode for DVD, lets try:
38 >
39 > $ mencoder 2006.06.24_09-26-48.dv -of mpeg -ovc lavc -lavcopts vcodec=mpeg2video -oac pcm -o 2006.06.24_09-26-48.mpeg
40 >
41 > which went straight to 100% CPU. I then went to bed, and when I got up
42 > in the morning 7 1/2 hours later, it was in the same spot at 100% cpu!
43 > The file size was 0 bytes. Heres the output:
44 >
45 > $ mencoder 2006.06.24_09-26-48.dv -of mpeg -ovc lavc -lavcopts
46 > vcodec=mpeg2video -oac pcm -o 2006.06.24_09-26-48.mpeg
47 > MEncoder 1.0pre8-3.4.6 (C) 2000-2006 MPlayer Team
48 > CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model:
49 > 2, Stepping: 9)
50 > MMX supported but disabled
51 > MMX2 supported but disabled
52 > CPUflags: Type: 15 MMX: 0 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
53 > Compiled with runtime CPU detection.
54 > 93 audio & 211 video codecs
55 > success: format: 0 data: 0x0 - 0x15fd6500
56 > RAWDV file format detected.
57 > VIDEO: [DVSD] 720x576 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
58 > [V] filefmt:22 fourcc:0x44535644 size:720x576 fps:25.00
59 > ftime:=0.0400
60 > ==========================================================================
61 > Opening audio decoder: [libdv] Raw DV Audio Decoder
62 > AUDIO: 32000 Hz, 2 ch, s16le, 28800.0 kbit/2812.50% (ratio:
63 > 3600000->128000)
64 > Selected audio codec: [libdv] afm: libdv (raw DV audio decoder (libdv))
65 > ==========================================================================
66 > PACKET SIZE: 2048 bytes, deltascr: 245760
67 > Opening video filter: [expand osd=1]
68 > Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
69 > ==========================================================================
70 > Opening video decoder: [dshow] DirectShow video codecs
71 > Decoder supports the following YUV formats: YUY2 UYVY
72 > Decoder is capable of YUV output (flags 0x9)
73 > VDec: vo config request - 720 x 576 (preferred colorspace: Packed YUY2)
74 > [PP] Using codec's postprocessing, max q = 4.
75 > Could not find matching colorspace - retrying with -vf scale...
76 > Opening video filter: [scale]
77 > VDec: using Packed YUY2 as output csp (no 0)
78 > Movie-Aspect is undefined - no prescaling applied.
79 >
80 > SwScaler: BICUBIC scaler, from Packed YUY2 to Planar YV12 using C
81 > videocodec: libavcodec (720x576 fourcc=3267706d [mpg2])
82 > Selected video codec: [qdv] vfm: dshow (Sony Digital Video (DV))
83 > ==========================================================================
84 > Limiting audio preload to 0.4s.
85 > Increasing audio density to 4.
86 > Writing header...
87 > Killed
88 >
89 > (I killed it :) So, firstly, why didn't that work?
90 >
91 > And secondly, how should I encode if I want to write the movie to a DVD,
92 > and have really good quality (close to the original dv)?
93 >
94 > Lastly, how about storing on disk - what codec should I use there? As I
95 > said, I didn't like the quality of the first two attempts, so something
96 > a bit nicer, (at the expense of file size) would be good.
97 >
98 >
99 > Well, there are some big asks in this email - I appreciate anyone
100 > looking into it and offering tips. Thanks!
101 >
102 > (PS I've been reading:
103 > http://gentoo-wiki.com/HOWTO_Mencoder_Introduction_Guide
104 > http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-dvd-mpeg4.html#menc-feat-dvd-mpeg4-muxing-avi-limitations
105 > http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-enc-libavcodec.html
106 > http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-mpeg.html
107 > thanks.)
108 > --
109 > Iain Buchanan <iaindb at netspace dot net dot au>
110 >
111 > Four fifths of the perjury in the world is expended on tombstones, women
112 > and competitors.
113 > -- Lord Thomas Dewar
114 >
115 > --
116 > gentoo-user@g.o mailing list
117
118 --
119 Nick Rout <nick@×××××××.nz>
120
121 --
122 gentoo-user@g.o mailing list