https://forum.synology.com/enu/viewtopic.php?f=37&t=64609
- ipkg update
- ipkg install optware-devel
- ipkg install git
- ipkg install gcc
- ipkg install bash
- git clone git://git.videolan.org/x264
- cd x264
- sed -i 's/^#!.*$/#!\/opt\/bin\/bash/g' configure version.sh
- sh configure --prefix=/opt --enable-shared --disable-asm
- make
- make install
- git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
- cd ffmpeg
- sed -i 's/^#!.*$/#!\/opt\/bin\/bash/g' configure
- ./configure --enable-shared --enable-gpl --enable-memalign-hack --enable-libmp3lame --enable-version3 --enable-nonfree --enable-libx264 --enable-libfaac --disable-armv6 --disable-armv6t2 --disable-ffplay --disable-ffserver --prefix=/opt --disable-neon --disable-asm --enable-avcodec --arch=arm --cpu=armv5te --enable-pthreads --disable-decoder=zmbv --target-os=linux --enable-armv5te
- cp /opt/lib/libx264.so.* /lib
- make
- make install
제가 아직 많이 미숙하지만 윗 글을 보고 진행중이 였습니다.
libx264 까진 어떻게 잘 설치가 되었습니다.
이제 문제는 ffmpeg에서 시작되었습니다. 15번 코드부터 처음엔 unknown option --enable-memalign-hack 이게떠서 찾아보니 윈도우 경우에만 사용된다는
http://greenday96.blogspot.com/2013/07/mingw-ffmpeg-x264-mingw-ffmpeg-with.html
위의 링크의 글을 보게 되었고 그 옵션을 지웠습니다.
- ./configure --enable-shared --enable-gpl --enable-libmp3lame --enable-version3 --enable-nonfree --enable-libx264 --enable-libfaac --disable-armv6 --disable-armv6t2 --disable-ffplay --disable-ffserver --prefix=/opt --disable-neon --disable-asm --enable-avcodec --arch=arm --cpu=armv5te --enable-pthreads --disable-decoder=zmbv --target-os=linux --enable-armv5te
이어서
- root@JJONG_NAS:~/opt/ffmpeg# ./configure --enable-shared --enable-gpl --enable-memalign-hack --enable-libmp3lame --enable-version3 --enable-nonfree --enable-libx264 --enable-libfaac --disable-armv6 --disable-armv6t2 --disable-ffplay --disable-ffserver --prefix=/opt --disable-neon --disable-asm --enable-avcodec --arch=arm --cpu=armv5te --enable-pthreads --disable-decoder=zmbv --target-os=linux --enable-armv5te
Unknown option "--enable-memalign-hack".
See ./configure --help for available options.
root@JJONG_NAS:~/opt/ffmpeg# ./configure --enable-shared --enable-gpl --enable-libmp3lame --enable-version3 --enable-nonfree --enable-libx264 --enable-libfaac --disable-armv6 --disable-armv6t2 --disable-ffplay --disable-ffserver --prefix=/opt --disable-neon --disable-asm --enable-avcodec --arch=arm --cpu=armv5te --enable-pthreads --disable-decoder=zmbv --target-os=linux --enable-armv5te
Unknown option "--enable-libfaac".
See ./configure --help for available options.root@JJONG_NAS:~/opt/ffmpeg# ./configure --enable-shared --enable-gpl --enable-libmp3lame --enable-version3 --enable-nonfree --enable-libx264 --disable-armv6 --disable-armv6t2 --disable-ffplay --disable-ffserver --prefix=/opt --disable-neon --disable-asm --enable-avcodec --arch=arm --cpu=armv5te --enable-pthreads --disable-decoder=zmbv --target-os=linux --enable-armv5te
Unknown option "--disable-ffserver".
See ./configure --help for available options.root@JJONG_NAS:~/opt/ffmpeg# ./configure --enable-shared --enable-gpl --enable-libmp3lame --enable-version3 --enable-nonfree --enable-libx264 --disable-armv6 --disable-armv6t2 --disable-ffplay --prefix=/opt --disable-neon --disable-asm --enable-avcodec --arch=arm --cpu=armv5te --enable-pthreads --disable-decoder=zmbv --target-os=linux --enable-armv5te
gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
***********@******.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
위 처럼 unknown이 발생할때마다 옵션을 하나씩 제거해보았는 데 결국 C compiler test failed. 뜨고 위의 에러를 보고
- ./configure --enable-shared --enable-gpl --enable-libmp3lame --enable-version3 --enable-nonfree --enable-libx264 --disable-armv6 --disable-armv6t2 --disable-ffplay --prefix=/opt --disable-neon --disable-asm --enable-avcodec --arch=arm --cpu=armv5te --enable-pthreads --disable-decoder=zmbv --target-os=linux --enable-armv5te --enable-cross-compile
를 추가해서 해도
- root@JJONG_NAS:~/opt/ffmpeg# ./configure --enable-shared --enable-gpl --enable-libmp3lame --enable-version3 --enable-nonfree --enable-libx264 --disable-armv6 --disable-armv6t2 --disable-ffplay --prefix=/opt --disable-neon --disable-asm --enable-avcodec --arch=arm --cpu=armv5te --enable-pthreads --disable-decoder=zmbv --target-os=linux --enable-armv5te --enable-cross-compile
gcc is unable to create an executable file.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
***********@******.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
이런 상황인데 어케 해야 하나요? 전에 g530으로 NAS 돌리다 이제 자동으로 x264로 인코딩하는 환경을 만들려고 하는데 막막하네요...
조언 부탁드립니다.
gcc helloworld.c -o helloworld ÇßÀ»¶§, ÄÄÆÄÀϺÎÅÍ µÇ´ÂÁö È®ÀÎÀ» ÇϽô°Ô...
±×¸®°í --cpu=armv5te ¾Ï¾¾ÇÇÀ¯ ¾²½Ã³ª¿ä ?? g530À̸é ÀÎÅÚ ¾¾ÇÇÀ¯ ¾Æ´Ñ°¡¿ä ???
±×¸®°í Áö±Ý ¸®´ª½º ¹èÆ÷ÆÇ ÀÏ¹Ý ÇǾ¾¿¡ °Á ¼³Ä¡ÇÏ½Å°Í ¾Æ´Ñ°¡¿ä ?? --enable-cross-compile ÇÏ½Ã¸é ¾ÈµÉÅÙµ¥¿ä... Å©·Î½º ºôµå ȯ°æÀÌ ¾Æ´Ï°Åµç¿ä.
Compiling x264 and ffmpeg / auto-video conversion (ARM only) ¶ó°í Âü°íÇÑ ¹®¼¿¡´Â ¾²¿©ÀÖ½À´Ï´Ù ¤»
º»ÀÎ ÄÄȯ°æ Çϵå¿þ¾î ¼ÒÇÁÆ®¿þ¾î µÑ´Ù ¿Ã·ÁºÁ ÁÖ¼¼¿ä ¤»
Intel Xeon E3-1240v2
3.4Ghz
4Core (1cpu/4core|8Threads)
ram 2Gb -> ÇöÁ¦ 8±â°¡ Ãß°¡·Î ¿À´ÂÁß
DSM 6.2.-23739
ÀÔ´Ï´Ù.
»ç½Ç ÀÌ°Å Æ÷±âÇÏ°í chroot·Î devian ¿Ã·Á¼ volume1 ¸¶¿îÆ® ½ÃÅ°°í ÀÛ¾÷ ÇÏ·Á ÇßÀ¸³ª... ÀÌ°Ô ¿©±â¼µµ locale err°¡ ¶ß³×¿ä ¤Ð,.¤Ð
Àü¿¡ ¼¼ÆÃÇÑ g530Àº ¸·ÆÇ¿¡ libx264 °¡ ÀߵǾú´Âµ¥ À̰͵µ ÇÑÂü »ðÁúÇÏ´Ù°¡ Àß µÈ°Å¿¡¿ä... ¹æ¹ýÀ» ±î¸Ô¾î°¡Áö±¸...
±×°É·ÎÇÏ¸é ±× ¹¹Áö?? -c:v libx264ÇÏ¸é ¿¡·¯°¡ ¹ß»ýÇÏ´õ±º¿ä...
ffmpeg [¿£ÅÍ] ÃÄ º¸¼¼¿ä.
¾Æ·¡ ºÎºÐ¿¡¼
~~~ --enable-libx264 --enable-libx265 ~~~ ¿©±â ºÎºÐó·³ enable·Î µÇ¾î ÀÖ´ÂÁö È®ÀÎÇØ º¸½Ã¸é µÉ °Å °°½À´Ï´Ù.
º¸Åë...ÀÌ·¸°Ô µÇ¾î ÀÖÀ¸¸é Á¤»óÀûÀ¸·Î ÀÎÄÚµù ´Ù µË´Ï´Ù.
¸¸¾à¿¡, µÇ¾î ÀÖÀ½¿¡µµ ¿¡·¯°¡ ¹ß»ýÇѴٰųª Çϸé...¸Õ°¡ ²¿¿©ÀÖ³ªº¸³×¿ä.
------
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 4.9.3 (crosstool-NG 1.20.0) 20150311 (prerelease)
configuration: --target-os=linux --cross-prefix=/spksrc/toolchains/syno-x64-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --prefix=/var/packages/ffmpeg/target --extra-cflags=-I/spksrc/spk/ffmpeg/work-x64-6.1/install/var/packages/ffmpeg/target/include --extra-ldflags=-L/spksrc/spk/ffmpeg/work-x64-6.1/install/var/packages/ffmpeg/target/lib --extra-libs='-lxml2 -ldl' --pkg-config=/usr/bin/pkg-config --ranlib=/spksrc/toolchains/syno-x64-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ranlib --enable-cross-compile --enable-rpath --enable-pic --enable-shared --enable-gpl --enable-fontconfig --enable-libass --enable-libbluray --enable-avresample --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libsoxr --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-gnutls --disable-debug --disable-doc --disable-static --arch=x86_64 --enable-thumb --enable-vaapi
libx264ÀÎÄÚµùÀº ½ÃÇ»¸¦ »ç¿ëÇÏ´Â ¼ÒÇÁÆ® ÀÎÄÚµùÀÌ¶ó¼ ½ÃÇ» ¼º´ÉÀÌ ¸¹ÀÌ Áß¿äÇÕ´Ï´Ù...
³ª½º¿¡¼ µ¿¿µ»ó ÀÎÄÚµùÀº °¡±ÞÀû ÇÇÇϽðųª ...ÀÚÀÛ ³ª½º¶ó¸é °í±Þ ½ÃÇ»·Î °¥¾ÆŸ¼¼¿ä. ¤¾¤¾¤¾
¾Æ´Ï¶ó¸é...ÇǾ¾·Î ¶¯°Ü¼ ÀÎÄÚµù µ¹¸®½Ã´Â°Ô ¼Ó ÆíÇÒ°Ì´Ï´Ù.
ÀÌ¹Ì ÄÄÆÄÀÏµÈ ÆÐÅ°Áö¸¦ Àß Ã£¾Æº¸½Ã±â ¹Ù¶ø´Ï´Ù.