PDA

View Full Version : Can't work with Mencoder & Ubuntu64


mod
6th November 2006, 22:04
While I'm still trying to make a working build of Avidemux (here (http://forum.doom9.org/showthread.php?p=896127#post896127)) I'm not able to work with Mencoder.
This is the problem:

mod@mod-laptop:~/Desktop/STORAGE/movie$ mencoder movie.vob -ovc xvid -vf crop=688:432:18:76 -xvidencopts fixed_quant=3 threads=2 -aid 128 -oac copy -o movie.avi
MEncoder 2:0.99+1.0pre8-0ubuntu8 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz (Family: 6, Model: 15, Stepping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0 data: 0x0 - 0x2643000
MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 9800.0 kbps (1225.0 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x576 fps:25.00 ftime:=0.0400
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe) 48000 Hz 448.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
xvid: using library version 1.1.0 (build xvid-1.1.0)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [crop w=688 h=432 x=18 y=76]
Crop: 688 x 432, 18 ; 76
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
audiocodec: framecopy (format=2000 chans=2 rate=48000 bits=16 B/s=56000 sample-1)
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
videocodec: XviD (688x432 fourcc=44495658 [XVID])
xvid: par=0/0 (vga11), displayed=978x432, sampled=688x432
xvid: Fixed Quant Rate Control -- quantizer=37/10=3.70
Pos: 0.0s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
1 duplicate frame(s)!
Writing header...
ODML: vprp aspect is 16384:7237.
Setting audio delay to 0.040s.
Writing header...
ODML: vprp aspect is 16384:7237.
Setting audio delay to 0.040s.
Illegal instruction (core dumped)s Trem: 0min 0mb A-V:0.004 [0:0]


CPU: Core2Duo T5500
HW: Asus A6JE 008H

I searched with google for this problem but I didn't find any solution. Also tried other builds but same result.

Does anyone here have a solution?

Thanks a lot for the help :)

nm
7th November 2006, 14:36
-xvidencopts fixed_quant=3 threads=2
This should be -xvidencopts fixed_quant=3:threads=2

The problem could be in XviD libraries that do not get changed along with the Mencoder build. Does encoding with lavc work properly?

mod
8th November 2006, 12:47
Thanks for the reply.
The parsing of cline was correct also in the other way.
Sorry if I didn't say, Mencoder doesn't encode not only with xvid but also with other formats.

nm
8th November 2006, 15:07
I'm guessing this could be a problem with your new CPU and either GCC optimization flags or assembly code used by MPlayer/Mencoder. You could probably track the illegal instruction with gdb and the dumped core file (run "ulimit -c unlimited" before running Mencoder if there is no core file) or by running Mencoder within gdb. See A.6.6 in http://www.mplayerhq.hu/DOCS/HTML/en/bugreports_what.html

It is likely that your Mencoder binary doesn't contain debugging symbols and therefore gdb output is not really useful. To examine the problem properly, you need to build your own Mencoder, preferably the latest SVN version, with debugging symbols (./configure --enable-debug=3; make). If you get the same crash with your own compile, you should file a bug report directly to MPlayer/Mencoder users mailing list, following http://www.mplayerhq.hu/DOCS/HTML/en/bugreports.html.

It is also very much possible that the Ubuntu64 packages are simply broken, but you should be able to find that out by compiling the programs yourself.

mod
9th November 2006, 01:48
I have to correct myself: atm I can encode with x264 (the problem is only with video, audio has always worked ok), tomorrow I will try other codecs, maybe I can find the "broken" part.