【Linux】FFMpegã®åã¤ã³ã¹ãã¼ã«ã§libx264ãæå¹ã«
åã«FFMpegãã¤ã³ã¹ãã¼ã«ãã¾ããã、FFMpegã®ãã¼ã¸ã§ã³ãä¸ãã£ã¦ãããã¨ã ãåã¤ã³ã¹ãã¼ã«ããã¨ãã®ã¡ã¢。ç°å¢ã¯CentOS 5.2
ã³ã¼ããã¯ã®ã¤ã³ã¹ãã¼ã«ã¯åã®è¨äºãåèã«。
ã¾ãææ°ã®ffmpegããã¦ã³ãã¼ããã¦ãã¦configureãããã¨ãããæããã。
--enable-liba52
ã®ãªãã·ã§ã³ããªããªã£ãããã。ãã®ãªãã·ã§ã³ãåé¤ãã¦ã³ã³ãã¤ã«ãããä¸å¿ç¡äºå®äºãããã©、mp4ã®ãã¡ã¤ã«ãå¤æããã¨ãã«å¤§éã®ã¨ã©ã¼ãåºåããã。
ã¨ããããH.264ã®ã³ã¼ããã¯ãã¤ã³ã¹ãã¼ã«ãã¦ã³ã³ãã¤ã«ããªããã¦ã¿ã。
x264ãã³ã³ãã¤ã«ããããã«å¿
è¦ãªãã¼ã«ãã¤ã³ã¹ãã¼ã«。
$ yum install nasm yasm-devel
yasm-develãyumã«ãªãå ´åã¯RPMForgeã追å ãã¨ã。åã®è¨äºãåç §。
x264ã¯ãããããã¦ã³ãã¼ã。解åãã¦configure
$ tar xjvf x264-snapshot-20090224-2245.tar.bz2
$ cd x264-snapshot-20090224-2245
$ ./configure --enable-shared
Platform: X86
System: LINUX
asm: yes
avis input: no
mp4 output: yes
pthread: yes
debug: no
gprof: no
PIC: no
shared: yes
visualize: no
$ make
$ make install
ããã§/usr/local/libã«libx264.soãã¤ã³ã¹ãã¼ã«ããã。次ã¯FFMpegã«libx264ã®ãªãã·ã§ã³ãã¤ãã¦ã³ã³ãã¤ã«。
$ ./configure --enable-libamr-nb --enable-libamr-wb --enable-libmp3lame --enable-libfaad --enable-libfaac --enable-libx264 --enable-gpl --enable-nonfree --enable-shared
$ make
$ make install
ã©ã¤ãã©ãªã®èªã¿è¾¼ã¿
$ ldconfig
ãããããªãã¨
cannot open shared object file: No such file or directory
ã¨æããã。
ã¤ã³ã¹ãã¼ã«ã¯ç¡äºçµãã£ããã©、ç¸å¤ãããMP4ãã¡ã¤ã«ãå¤æããã¨ã¨ã©ã¼ãåºåããã。ãããªæã
channel element 1.1 is not allocated
Error while decoding stream #0.1
ä»ã®FFMpegã®ãã¼ã¸ã§ã³ã ã¨é§ç®ã¿ãããªã®ã§(FFMpegã®ãã°?)、åã®ãã¼ã¸ã§ã³ã«æ»ããã¨ã«。ãããªã¨ãvmwareã®snapshotã®æ©è½ãã¨ã¦ãããããã。