I am trying to build x264 from source on Ubuntu 32bit in order to convert a sequence of jpg or png images into mp4 video: x264 site, sample images
The downloaded binaries is able to convert the sequence into an mkv video (or few other formats) when I run this command:
./x264dist ~/Dev/x264emp/img/FLYOVER%4d.JPG -o abc.mkv
x264dist
is the renamed name of the binary I download from the site.
However, when I grab the source and compile with simple configure:
$ ./configure --enable-shared --enable-static --enable-pic
platform: X86
system: LINUX
cli: yes
libx264: internal
shared: yes
static: yes
asm: yes
interlaced: yes
avs: avxsynth
lavf: no
ffms: no
mp4: no
gpl: yes
thread: posix
opencl: yes
filters: crop select_every
debug: no
gprof: no
strip: no
PIC: yes
bit depth: 8
chroma format: all
then $ make
. Then I use the binaries to run the exactly same command as above but there is this error:
./x264 ~/Dev/x264emp/img/FLYOVER%4d.JPG -o abc.mkv
raw [error]: raw input requires a resolution.
x264 [error]: could not open input file `/home/tmd/Dev/x264emp/img/FLYOVER%4d.JPG' via any method!
It seems like it can't read any input at all. But at least I am still able to run --help
on that binaries.
Then I realized that the downloaded binaries is 3.5Mb
while my custom compilation results in 1.5Mb
binaries.
So I just want to know what are the build configurations used by the official build, and/or is there any dependency I am missing that leads to this problem.
The reason I am trying to build myself because I want to port the x264 lib into Javascript using Emscripten. There has been a solution using FFmpeg but it seems like I don't need the whole video processing library but only a simple H264 codec. So I need to solve the configure/compile/linking problem to port it rightly.
Possibly similar https://stackoverflow.com/questions/19445075/how-to-configure-x264-build-before-running-make-on-os-x