View Single Post
Old 28th February 2016, 12:54   #20  |  Link
hydra3333
Registered User
 
Join Date: Oct 2009
Location: crow-land
Posts: 540
Thank you. I fluked mp4: yes, with this
Code:
# x264 cloned by now, and gpac is already built in mp4box_gpac
cd x264
mkdir ./gpac
chmod 777 ./gpac
echo " ------------------------- copying gpac include files ... "
cp -R -v ../mp4box_gpac/include/gpac/* ./gpac
echo " ------------------------- copying gpac_static.a file ... "
cp -v ../mp4box_gpac/bin/gcc/libgpac_static.a ../mp4box_gpac/bin/gcc/gpac_static.a
export LDFLAGS=-L../mp4box_gpac/bin/gcc/
export CFLAGS="$CFLAGS -I./gpac"
# now get on with the cross-compile
The resulting x264.exe reports a funny error though,
Code:
".\x264.exe" --thread-input --threads 8 --profile high --level 4.1 --preset fast --interlaced --tff --no-cabac --crf 18 --sar 64:45 -o "temp.h264" "input.mpg"
raw [error]: raw input requires a resolution.
x264 [error]: could not open input file `input.mpg' via any method!
As mentioned above, it looks like I also need to compile libav libraries for lavf-support and add that to LDFLAGS and CFLAGS and see if that makes a difference.
Or, since by that time I've cross-compiled ffmpeg, find out how to "link to" libavformat.a and .h files (or something like that) which hopefully may be cross-compiled as a part of ffmpeg.
I took a look at a ./configure file to see how it "detects" however it is beyond my skills for the time being.
I'll goggle pkg-config to find out what that is and hope it is compatible with Ubuntu based mingw cross-compiling.

I'll also goggle jb_alvarado's media-autobuild_suite as well as config.log.

linux newbie: and I'll also need to goggle how to put multiple paths in each of "LDFLAGS=-L" and "CFLAGS= -I" unless you can suggest it

Last edited by hydra3333; 28th February 2016 at 13:12.
hydra3333 is offline   Reply With Quote