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