ThomasJSmart
Programmer
- Sep 16, 2002
- 634
Having some problems encoding video to x264 video format with mencoder.
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
Code:
Mencoder config:
...
Checking for x264 ... yes
...
Enabled optional drivers:
...
Codecs: x264...
Code:
/mencoder -ovc help
MEncoder 1.0rc1-3.4.6 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Celeron(R) CPU 3.06GHz (Family: 15, Model: 4, Stepping: 1)
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
Available codecs:
copy - frame copy, without re-encoding. Doesn't work with filters.
frameno - special audio-only file for 3-pass encoding, see DOCS.
raw - uncompressed video. Use fourcc option to set format explicitly.
nuv - nuppel video
lavc - libavcodec codecs - best quality!
x264 - H.264 encoding
Code:
which x264
/usr/bin/x264
sudo find / -name x264.h
/usr/include/x264.h
Code:
mencoder input.avi -o output.avi -ovc x264 -oac faac
MEncoder 1.0rc1-3.4.6 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Celeron(R) CPU 3.06GHz (Family: 15, Model: 4, Stepping: 1)
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
success: format: 0 data: 0x0 - 0x1282000
AVI file format detected.
VIDEO: [DX50] 720x480 24bpp 25.000 fps 790.7 kbps (96.5 kbyte/s)
[V] filefmt:3 fourcc:0x30355844 size:720x480 fps:25.00 ftime:=0.0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 64.0 kbit/4.54% (ratio: 8000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Couldn't find video filter 'x264'.
Failed to open the encoder.
Exiting...
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!