# basename /etc/sysconfig/network-scripts/ifcfg-eth0
ifcfg-eth0
# dirname /etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts
あら便利
Fedora14でvimrcどこだよとおもったら,
$HOMEにはデフォルトで存在しなそう.
/usr/share/vim/vim73/vimrc_example.vim
からもらってきて$HOMEに.vimrcとして保存
set tabstop=4
set number
だけ追加.
# rpm --import http://ATrpms.net/RPM-GPG-KEY.atrpms
# vi /etc/yum.repos.d/atrpms.repo
[atrpms]
name=Fedora Core $releasever - $basearch - ATrpms
baseurl=http://dl.atrpms.net/f$releasever-$basearch/atrpms/stable
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1
# yum -y install ffmpeg
yumだと依存関係を勝手にやってくれるのでらく.
ソースからコンパイルしようとしたけど,依存関係がめんどくさくてやめた.
tsからx.264にエンコードできた.
$ ffmpeg -version
ffmpeg version 0.7-rc1, Copyright (c) 2000-2011 the FFmpeg developers
built on Jun 11 2011 19:13:02 with gcc 4.5.1 20100924 (Red Hat 4.5.1-4)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-frei0r --enable-libopencv --enable-libdc1394 --enable-libdirac --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --disable-stripping
libavutil 50. 40. 1 / 50. 40. 1
libavcodec 52.120. 0 / 52.120. 0
libavformat 52.108. 0 / 52.108. 0
libavdevice 52. 4. 0 / 52. 4. 0
libavfilter 1. 77. 0 / 1. 77. 0
libswscale 0. 13. 0 / 0. 13. 0
libpostproc 51. 2. 0 / 51. 2. 0
ffmpeg 0.7-rc1
libavutil 50. 40. 1 / 50. 40. 1
libavcodec 52.120. 0 / 52.120. 0
libavformat 52.108. 0 / 52.108. 0
libavdevice 52. 4. 0 / 52. 4. 0
libavfilter 1. 77. 0 / 1. 77. 0
libswscale 0. 13. 0 / 0. 13. 0
libpostproc 51. 2. 0 / 51. 2. 0
参考
http://blog.santalinux.net/?p=291