[MPlayer-users] Compile MEncoder with x264 in libavcodec

Mark Himsley mark at mdsh.com
Wed May 7 08:27:18 CEST 2008

Reimar Döffinger wrote:
> On Tue, May 06, 2008 at 08:56:46PM +0700, ajaxas wrote:
>> On Tue, 6 May 2008 15:36:52 +0200
>> Reimar Döffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de> wrote:
>>> On Mon, May 05, 2008 at 05:28:04PM +0100, Mark Himsley wrote:
>>>> I've been compiling Mplayer and MEncoder on Linux every now-and-then. I 
>>>> don't remember having to do anything too special to get x264 into 
>>>> libavcodec but currently ./configure --enable-menu results in:
>>>> [SNIP]
>>>> Checking for x264 ... yes (in libavcodec: no)
>>>> [SNIP]
>>> This is not happening for me, and after looking at the configure code I
>>> can't see how this can happen. Are you sure you have a proper configure
>>> and not some bad hacks in it?
>> I got the same result by running original ./configure without any options passed.
> Oh. Diego broke it...

Diego thinks he's fixed it (according to the SVN log) and when running 
`./configure --enable-menu` but I now get:

Result is: yes (in libavcodec: )

So compile mplayer/mencoder and running my script to convert a folder of 
MPEG2 videos to MP4 H.264 I get a segfault...

MEncoder dev-SVN-r26678-4.2.3 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.20GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Configuration: --enable-menu
get_path('font/font.desc') -> '/home/mdsh/.mplayer/font/font.desc'
font: can't open file: /home/mdsh/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
[file] File size is 1562800128 bytes
STREAM: [file] DoctorWho-S30E05-[BBC1_03-May-2008_18-20].mpg
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
success: format: 0  data: 0x0 - 0x5d267000
LAVF_check: MPEG PS format
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename 
DoctorWho-S30E05-[BBC1_03-May-2008_18-20].mpg ext: .mpg
Checking for Nullsoft Streaming Video
Checking for MOV
Checking for VIVO
header block 1 size: 0
AVS: avs_check_file - attempting to open file 
AVS: File is too big, aborting...
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 66812, FOUND 47, packet_size= 0, SEEMS A TS? 0
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=0 size=1140851708
LMLM4 Stream Format not found
system stream synced at 0xD (13)!
==> Found video stream: 0
==> Found audio stream: 0
MPEG-PS file format detected.
Searching for sequence header... OK!
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  4350.0 kbps (543.8 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.000  ftime:=0.0400
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using SSE optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer II, 48000 Hz 256 kbit Stereo, BPF: 768
Channels: 2, copyright: No, original: No, CRC: Yes, emphasis: 0
AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
[file] File size is 0 bytes
STREAM: [file] DoctorWho-S30E05-[BBC1_03-May-2008_18-20].mp4
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
./convert-mpg2.sh: line 7: 32674 Segmentation fault      "$MENCODER" -v 
"$i" -o "$d" -aspect 1050:576 -ofps 25.00 -noskip -mc 0 -vfm ffmpeg -vf 
kerndeint=18:0:0:1:0,crop=688:568:16:4,scale=480:272,harddup -ovc lavc 
-oac lavc -lavcopts 
-of lavf -lavfopts format=ipod


More information about the MPlayer-users mailing list