libx264 Çì³î·ÎÁö...

   Á¶È¸ 3937   Ãßõ 0    

 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로 인코딩하는 환경을 만들려고 하는데 막막하네요...

조언 부탁드립니다.













ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
¸Ç¶¥ ÇìµùÇÏÁö ¸¶½Ã±¸¿ä, readme ÆÄÀÏ °°Àº°Í ¿­¾î¼­ configure ¿É¼ÇÀ» Àо½Ã°í ¼±ÅÃ/»èÁ¦ ÇÏ´Â°Ô ¿ì¼±ÀÔ´Ï´Ù.

gcc helloworld.c -o helloworld ÇßÀ»¶§, ÄÄÆÄÀϺÎÅÍ µÇ´ÂÁö È®ÀÎÀ» ÇϽô°Ô...


±×¸®°í --cpu=armv5te ¾Ï¾¾ÇÇÀ¯ ¾²½Ã³ª¿ä ?? g530À̸é ÀÎÅÚ ¾¾ÇÇÀ¯ ¾Æ´Ñ°¡¿ä ???

±×¸®°í Áö±Ý ¸®´ª½º ¹èÆ÷ÆÇ ÀÏ¹Ý ÇǾ¾¿¡ °Á ¼³Ä¡ÇÏ½Å°Í ¾Æ´Ñ°¡¿ä ??  --enable-cross-compile ÇÏ½Ã¸é ¾ÈµÉÅÙµ¥¿ä... Å©·Î½º ºôµå ȯ°æÀÌ ¾Æ´Ï°Åµç¿ä.

Compiling x264 and ffmpeg / auto-video conversion (ARM only) ¶ó°í Âü°íÇÑ ¹®¼­¿¡´Â ¾²¿©ÀÖ½À´Ï´Ù ¤»
     
Á¤Á¾Çö 2019-12
À¸... Á˼ÛÇÕ´Ï´Ù. ffmpeg¸¦ Á¢ÇÔÀ¸·Î½á óÀ½ ½ÃÀÛÇÑ°Å¶ó¼­ ¾ÆÁ÷ Á¤º¸¸¦ ¸¹ÀÌ ¸ø¾ò¾ú±â¿¡ ÀÌ·± ±ÛÀ» ¿Ã¸®´Â°Å °°½À´Ï´Ù.. Á» ´õ ã¾Æº¸°Ú½À´Ï´Ù.
          
¾îÀÌÄí Á˼ÛÇÒ°Í ±îÁö¾ß ¾ø½À´Ï´Ù :)

º»ÀÎ ÄÄȯ°æ Çϵå¿þ¾î ¼ÒÇÁÆ®¿þ¾î µÑ´Ù ¿Ã·ÁºÁ ÁÖ¼¼¿ä ¤»
               
Á¤Á¾Çö 2019-12
ds3615xs
Intel Xeon E3-1240v2
3.4Ghz
4Core (1cpu/4core|8Threads)
ram 2Gb -> ÇöÁ¦ 8±â°¡ Ãß°¡·Î ¿À´ÂÁß
DSM 6.2.-23739
ÀÔ´Ï´Ù.
»ç½Ç ÀÌ°Å Æ÷±âÇÏ°í chroot·Î devian ¿Ã·Á¼­ volume1 ¸¶¿îÆ® ½ÃÅ°°í ÀÛ¾÷ ÇÏ·Á ÇßÀ¸³ª... ÀÌ°Ô ¿©±â¼­µµ locale err°¡ ¶ß³×¿ä ¤Ð,.¤Ð
Àü¿¡ ¼¼ÆÃÇÑ g530Àº ¸·ÆÇ¿¡ libx264 °¡ ÀߵǾú´Âµ¥ À̰͵µ ÇÑÂü »ðÁúÇÏ´Ù°¡ Àß µÈ°Å¿¡¿ä... ¹æ¹ýÀ» ±î¸Ô¾î°¡Áö±¸...
               
Á¤Á¾Çö 2019-12
ÇöÁ¦ ȸ»ç¶ó¼­ ´äÀåÀÌ ´ÊÀºÁ¡ ¾çÇØ ºÎŹµå¸³´Ï´Ù.
ÀÎÅÚcpu¿¡ Çì³îÀÌ½Ã¸é ½Ã³î·ÎÁö DSM - ÆÐÅ°Áö ¼¾ÅÍ - ÆÐÅ°Áö ¼Ò½º - Ãß°¡¿¡¼­ http://packages.synocommunity.com ³Ö¾îÁÖ°í....Ä¿¹Â´ÏƼ¿¡ ÀÖ´Â ffmpeg ¼³Ä¡ÇÏ¸é ´Ù µË´Ï´Ù.
     
Á¤Á¾Çö 2019-12
Àú¸¸ ±×·±Áö ¸ð¸£°Ú´Âµ¥///
±×°É·ÎÇÏ¸é ±× ¹¹Áö?? -c:v libx264ÇÏ¸é ¿¡·¯°¡ ¹ß»ýÇÏ´õ±º¿ä...
          
½Ã³î¿¡ ssh·Î Á¢¼ÓÇؼ­ Å͹̳ο¡¼­
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
               
Á¤Á¾Çö 2019-12
Àú°Å Àο¡ÀÌºí µÇ¾ú´Âµ¥ À½... ÀÌ°Å Àü¿¡ g530¤¡ ¾µ´ëµµ Á¤¸» »ðÁú ¸¹ÀÌ ÇÏ´Ù°¡ Àú¹øÁÖ Âë¿¡ µÇ´Â°Å È®ÀÎ ÇÏ¿´À¸³ª 2½Ã°£ Â¥¸® ¿µÈ­ ÇÑÆíÀ» ÀÎÄÚµùÇϴµ¥ 10½Ã°£ÀÌ °É·Á¼­... °¥¾Æź°Çµ¥... ³Ê¹« ¾î·Æ³×¿ä ¤Ì.¤Ì
                    
G530¿¡¼­ ÀÎÄÚµù ¼º´ÉÀ» ¾ó¸¶³ª ¹Ù¶ó½Ã´ÂÁö ¸ð¸£°Ú½À´Ï´Ù...;
libx264ÀÎÄÚµùÀº ½ÃÇ»¸¦ »ç¿ëÇÏ´Â ¼ÒÇÁÆ® ÀÎÄÚµùÀÌ¶ó¼­ ½ÃÇ» ¼º´ÉÀÌ ¸¹ÀÌ Áß¿äÇÕ´Ï´Ù...
³ª½º¿¡¼­ µ¿¿µ»ó ÀÎÄÚµùÀº °¡±ÞÀû ÇÇÇϽðųª ...ÀÚÀÛ ³ª½º¶ó¸é °í±Þ ½ÃÇ»·Î °¥¾ÆŸ¼¼¿ä. ¤¾¤¾¤¾
¾Æ´Ï¶ó¸é...ÇǾ¾·Î ¶¯°Ü¼­ ÀÎÄÚµù µ¹¸®½Ã´Â°Ô ¼Ó ÆíÇÒ°Ì´Ï´Ù.
                         
Á¤Á¾Çö 2019-12
¾Æ Áö±ÝÀº xeon 1240v2·Î ¿Ã¶ó¿Ô½À´Ï´Ù!
À­ºÐ ¸»´ë·Î Á÷Á¢ ÄÄÆÄÀϱîÁö ÇÒÀÏÀÌ ¾øÀ»µí Çѵ¥¿ä?

ÀÌ¹Ì ÄÄÆÄÀÏµÈ ÆÐÅ°Áö¸¦ Àß Ã£¾Æº¸½Ã±â ¹Ù¶ø´Ï´Ù.
     
Á¤Á¾Çö 2019-12
ÀÌ»óÇÏ°Ô Àü¿¡ ¾²´ø ½Ã½ºÅÛµµ ÆÐÅ°Áö·Î¸¸À¸·Ð ffmpeg¿¡ libx264¸¸ ³ÖÀ¸¸é ¿¡·¯¸¦ »Õ´õ¶ó±¸¿ä...


QnA
Á¦¸ñPage 3936/5691
2014-05   5016482   Á¤ÀºÁØ1
2015-12   1551938   ¹é¸Þ°¡
2019-05   3938   Á¦¿ÂÇÁ·Î
2020-11   3937   ¹Ý±â±â±â±â
2017-12   3937   À嵿°Ç2014
2021-04   3937   ºÀ·¡
2017-01   3937   alice
2017-04   3937   ½Öcpu
2015-05   3937   ȲÁø¿ì
2018-07   3937   ºí·ç¿µ»ó
2017-11   3937   »êäºñºö¹ä
2017-01   3937   ¼º±â»ç
- (4)
2014-05   3937   ittutti
2014-12   3937   ´©ÀÚº£½º
2018-03   3937   ÀϹÝÀ¯Àú
2015-08   3937   ±èÃæȯ
2018-09   3937   °­Çѱ¸
2015-02   3937   ¹«ÀÚ¸®¾Æ
2017-10   3937   µÞºÏ¼Ò³â
2018-06   3936   ghost
2015-08   3936   iron19
2015-07   3936   ±è½ÂÇö1