約 3,140,155 件
https://w.atwiki.jp/parepan/pages/232.html
準備 H264とAVC形式への変換を使いたいので、以下を事前にインストール sudo apt-get insatll libfaac-dev sudo apt-get insyall libx264-dev イントール手順 # wget http //ffmpeg.org/releases/ffmpeg-0.6.tar.gz 2011.09時点の最新はffmpeg-0.8.2.tar.gz #tar xvfzffmpeg-0.6.tar.gz # cd ffmpeg-0.6 # ./configure --enable-libx264 --enable-gpl --enable-libfaac --enable-nonfree # make # make install 動画ファイル(sample.flv)から指定時間(120.005秒)の画像ファイル(sampel.jpg)を作成する。 # ffmpeg -ss 120.005 -vframe 1 -i sample.flv -f image2 sample.jpg 動画をMPEG-4/AVC形式に変換 ビットレート固定・・・jwplayerで再生した場合、画質が荒い ffmpeg -y -i inputfile -f mp4 -vcodec libx264 -acodec libfaac -vb 256k -ab 64k -g 150 -qcomp 0.7 -qmin 10 -qmax 51 -qdiff 4 -subq 6 -me_range 16 -i_qfactor 0.714286 outputfile.mp4 ビットレート固定・・・jwplayerで再生した場合、ある程度、きれいな画質で再生させたが、再生速度の遅延がある。 生データをVLCで再生した場合の再生速度遅延は発生していない事を確認した。 ffmpeg -y -i inputfile -f mp4 -vcodec libx264 -acodec libfaac -cqp 23 -aq 100 -g 150 -qcomp 0.7 -qmin 10 -qmax 51 -qdiff 4 -subq 6 -me_range 16 -i_qfactor 0.714286 outputfile.mp4 以下の設定で再生速度遅延は解消された。 ffmpeg -y -i inputfile -f mp4 -vcodec libx264 -acodec libfaac -r 10 -cqp 23 -aq 100 -g 150 -qcomp 0.7 -qmin 10 -qmax 51 -qdiff 4 -subq 6 -me_range 16 -i_qfactor 0.71 outputfile.mp4 -r オリジナルのフレームレート×早回しの倍数。例:オリジナルが29.97(fps) のものを10倍早回しにしたければ、299.7 を指定。 値が小さいほどコマ落ちしました。「10」あたりでそれなりの画質で再生されました。-cpq -bのかわりに-cqpを使ってみたらビットレートが変化しました。 値としては0から50位で動くようです。 -cqp 48だと290kbpsになりましたが、かなり汚い画像になってしまいました。 20から30位が実用的と思われます。 手元の動画で以下のようになりました。 -cqp 48→ 290kbps -cqp 45→ 411kbps -cqp 35→ 1438kbps -cqp 30→ 2624kbps -cqp 23→ 6118kbps -cqp 20→ 8811kbps ■一般に、ビットレートを大きくすると画質・音質は向上するがファイルサイズが大きくなり、ビットレートを小さくするとファイルサイズは小さくなるが画質・音質が落ちる JW-PlayerMP4を再生する場合の最適な設定値を色々と試した結果、以下の内容となりました。 ffmpeg -y -i inputfile -f mp4 -vcodec libx264 -acodec libfaac -r 10 -cqp 30 -aq 100 -g 150 -qcomp 0.7 -qmin 10 -qmax 51 -qdiff 4 -subq 6 -me_range 16 -i_qfactor 0.71 outputfile.mp4 -r 10 -cqp 30 が劣化が少なく、ビットレート、再生速度ともに我慢て゜きるくらいの画質です。 ただし、Red5ストリーミングサーバなのに、先出し、後出しの途中再生ができない。 動画を東芝のREGZAが認識できるMPEG2形式に変換する例 ffmpeg -i inputfile -target ntsc-svcd -ab 128k -aspect 16 9 -s 720x480 outputfile.mpg MP4形式の動画から再エンコード無しでFLV形式に変換 ffmpeg -i inputfile.mp4 -vcodec copy -acodec copy -q 1.0 outputfile.flv 上の二つは画質劣化が大きいです。採集的には以下のコマンドで作成したファイルが綺麗に再生さりました。「-sameq」パラメータを追加すると元データ画質そのままでFLVファイルの作成が可能です。但しファイルサイズが3.2倍程度に大きくなります ffmpeg -i inputfile.mp4 -sameq -ar 44100 -vcodec flv outputfile.flv 関連サイト ffmpeg wikipediaffmpegのビデオオプション ubuntu ffmpeg libx264 を有効にしてビルドするffmpegインストール手順
https://w.atwiki.jp/zinujyo/pages/9.html
・FFMpegは無料で使用できる高性能エンコーダです。 公式サイト(http //ffmpeg.zeranoe.com/builds/) ・最新のFFMpegnにMP3、FDK-AACの機能を追加した実行ファイル(exe)を簡単にビルド(作成)したい! そんな時は↓ ・オレ流FFMpegビルドツールの巻(http //www.sakura-zaka.net/ffmpeg/) ※注意:ユーザー名が日本語だとうまくビルドできないそうですのでいぬさんのコミュニティの掲示板に対処法が書かれていますので参照願います。 いぬラジ(http //com.nicovideo.jp/community/co105867) 13/12/13 下記情報は古い情報です、いぬさんのHPの説明をよく読んで挑戦してみてください。 このサイトにある『FFMpegビルド用オールインワンツール Ver 1.2.1 Shared版(実行ファイルが分割複数)』をダウンロードしてサイトの手順にしたがうだけで最新のFFMpegと高性能な音声コーデックを簡単に作成できます。 ※ビルドには1時間ほど掛かりますので時間のある時に実行するか、実行したままほかって置いてOKです。 ※ビルド中暇ですので、他に必要なツールのインストールを同時に行うと暇つぶしになります。 ビルドが終了すると 「\MSYS\home\[ユーザ名]\b_build」にフォルダが作成されています。 buildフォルダに以下5つのファイルが作成されます。 ・ffmpeg.exe ・libaccplus-2.dll ・libfdk-aac-0.dll ・libmp3lame-0.dll ・libvo-aacenc-0.dll 上記ファイルを適当なフォルダに移動してください。 ※*.dllはffmpeg.exeと同じフォルダに置いてください。 ・拡張子がわからない場合は、コントロールパネル>フォルダーオプション>表示タブ>下の方にある、登録されている拡張子は表示しないのチャックを外してください。 ・または、ウインドウ上の名前や更新日付が表示されている所の種類が「アプリケーション拡張」と表示されているファイルです。 ・別の作り方(aacplus入りffmpeg.exeの作り方) ニコニコ動画研究所(http //looooooooop.blog35.fc2.com/blog-entry-930.html) ・FFMpegで困ったら頼れるニコ生コミュニティ FFmpegで生放送(http //com.nicovideo.jp/community/co1553748)
https://w.atwiki.jp/mpegonmac/pages/67.html
エンコードするプログラムのひとつ。QuickTimeと相性はあまりよくない。FFmpegXなどで用いられる。再生には、VLCやMPlayerが使われることが多いっぽい。 参考:FFmpegXのWiki 専門的なこと 長所 mencoderより軽い(エンコードが速い)気がする。 短所 用語辞典に戻る
https://w.atwiki.jp/how_to_use_ffmpegx/pages/11.html
ffmpegXとは ffmpegXは20以上のUnixのオープンソースソフトウェア(ターミナルからコマンドラインで使う)の詰め合わせ。 これにMac OS XのGUIを付けたもの。 主要なものは: ffmpeg (http //ffmpeg.sf.net/):高速な映像/音声エンコーダ mpeg2enc (http //mjpeg.sf.net/MacOS/):オープンソース mpeg-2 エンコーダ兼マルチプレクサ mencoder (http //sf.net/projects/mplayerosx):字幕をサポートするmpeg-4エンコーダ 背景 国内でもDivX.aviに対応したDVDプレイヤが買えるが、北米ではそのへんの電器屋で大手のDVDプレイヤと並んでいるものらしい。CD-Rドライブの一つも買えば、DivXや3ivxなどのエンコードソフトが付いているようだ。公式掲示版を眺めていると、どうやら「Macでも簡単にDVDバックアップができるソフト!」として重宝されているもより。 性質 20以上のツールの詰め合わせってとこがク・セ・も・の ffmpegXは本来ffmpegのGUIだったところへずんずん内蔵ソフトを追加していったものらしく、指定しても意味のないオプションや、同じ指定でも動作が異なる箇所があります。バージョン次第で同じオプションの動作が地味に変わる事もあります。たぶん、初めてffmpegXに触れる方は、不可解に思う事があるでしょう。
https://w.atwiki.jp/zinujyo/pages/8.html
1.FFMpegのビルド これが無きゃ始まらない!FFMpegの本体の作成 ↓ 2.FFMPEG Launcherのインストール FFMpegをそのまま使うのは難しい、じゃあツールを使えばいいじゃない! ↓ 3.SCFF DSFのインストール データカウンタを画面に表示したい!液晶とリールを2分割して表示したいなどを実現するためのデスクトップキャプチャ ↓ 4.アマミキのインストール 棒読みちゃんの声をクリアに動画に載せたい!じゃあステレオミキサーだ! ↓ 5.SCFF DSFの設定 配信する画面レイアウトを決めよう ↓ 6.FFMPEG Launcherの設定 サービスタイム?ゴールデンタイム?ビットレート?プロファイル?コマケェ事はいいんだよ! ↓ 7.ニコ生で配信前に録画してテスト FFMpegにはエラーがつきもの、配信前に画質やレイアウトを確認しよう! ↓ 8.ニコ生で配信のテスト ニコ生サーバーを通してどうなるかテスト ↓ 9.ニコ生パチスロ高画質配信! ヒャッハー!高画質配信だぜ!
https://w.atwiki.jp/mynote/pages/39.html
Fedora Core 6 (fc6)にffmepgのインストール 参照:http //tama-studio.com/xhnewbb+viewtopic.topic_id+134.htm sourceforge.netからffmpegのダウンロード http //prdownloads.sourceforge.net/ffmpeg/ffmpeg-0.4.8.tar.gz 少し考えた挙げ句、FC5 で提供されている compat-gcc-32-3.2.3-55.fc5 を試す これで無事動作を確認!!! ※要変更 wget ftp:// → wget ftp // [root@fedora6 ~]# wget ftp://ftp.riken.go.jp/Linux/fedora/core/5/i386/os/Fedora/RPMS/compat-gcc-32-3.2.3-55.fc5.i386.rpm [root@fedora6 ~]# rpm -ivh compat-gcc-32-3.2.3-55.fc5.i386.rpm prdownloads.sourceforge.net より ffmpeg-0.4.8.tar.gz をダウンロード [root@fedora6 ~]# tar zxvf ffmpeg-0.4.8.tar.gz [root@fedora6 ~]# cd ffmpeg-0.4.8 解凍後オプションを付けて [root@fedora6 ffmpeg-0.4.8]# ./configure --cc=gcc32 [root@fedora6 ffmpeg-0.4.8]# make [root@fedora6 ffmpeg-0.4.8]# make install Macにffmpegをインストール finkでsvnをインストールしておく svnでffmpegを落とす(cvs版は廃止になったポイので) 後はmake installでおk これだけなのに二日もかかったよorz (ffmpegを知る- ffmpegはcvsで落とすらしい- cvsって何?- cvsで落とせないよ- 今はcvsよりsvnだよ- svnって何?- やっと落とせた)って感じでした ffmpegの参照ページ http //www.nurs.or.jp/~calcium/wiki/index.php?ffmpeg%20usage http //www6.atwiki.jp/how_to_use_ffmpegx/pages/1.html http //wwww.vis.ne.jp/mt/archives/000687.html シミュレーションにおいての使い方 Gnuplot PLplot で画像を出力(画像は奇麗で編集のできるPS,EPS形式がいいでしょう) ImageMagickのmogrify -format jpg *.eps等で奇麗なEPS形式をそのままjpgかpngに jpgかpng形式にできたらffmpegの登場![$ffmpeg -i %5d.jpg out.mpg][$ffmpeg -i %5d.jpg out.avi]で動画を作成 [%5d]は00000.jpg,00001.jpg等の事Fortranのソレと変わりません、ここで重要?なのがちゃんとファイルを連番にしておくという事。 後オプションは 日本語サイトhttp //www.himco.jp/articles/pdf/FFmpegDoc.swf $ ffmpeg -i %5d.jpg test2.mpg FFmpeg version SVN-r9081, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration libavutil version 49.4.0 libavcodec version 51.40.4 libavformat version 51.12.1 built on May 21 2007 02 58 03, gcc 4.0.1 (Apple Computer, Inc. build 5367) Input #0, image2, from %5d.jpg Duration 00 00 04.0, start 0.000000, bitrate N/A Stream #0.0 Video mjpeg, yuvj420p, 518x362, 25.00 fps(r) Output #0, mpeg, to test2.mpg Stream #0.0 Video mpeg1video, yuv420p, 518x362, q=2-31, 200 kb/s, 25.00 fps(c) Stream mapping Stream #0.0 - #0.0 Press [q] to stop encoding frame= 101 fps= 0 q=12.6 Lsize= 216kB time=4.0 bitrate= 442.4kbits/s video 213kB audio 0kB global headers 0kB muxing overhead 1.396829% よく使うオプション ffmpeg -i %3d.gif -me full -qscale 1 -t 30 -r 20 -s 640x480 comp3.mpeg qscaleってのが画質みたい「1が最高品質」 Windowsでは・・・? Windowsでは親切な人たちがWindows版FFmpegバイナリを提供してくれていますので、それを使用しましょう。 http //www.xucker.jpn.org/pc/ffmpegnew.html で、バイナリファイルの場所を指定してやり(下の図では同じディレクトリに置いてあります。)オプションをつけて実行。 名前がそろっていない場合はそろえる!XX%4d.jpgの%4のところを連番にしてやりましょう。 ffmpeg -i %3d.gif -me full -qscale 1 -t 30 -r 20 -s 640x480 comp3.mpg ついでにx264もインストールしようと思ったんですが、./configureでXcode2.4.1が必要だと言われて弾かれたので、また今度。 000 ~/x264 xxx$ ./configure Your version of nasm is too old. Please install Xcode 2.4.1 or later. 何にもわからん人用に:流れ的には X11とXcodeをMac付属のCDからインストール finkのインストール(Fink Commanderも) finkでsvnのインストール svnでffmpegをダウンロード($ svn co svn //svn.mplayerhq.hu/ffmpeg/trunk ffmpeg) ffmpegディレクトリに移動 ./configure sudo make sudo make install ffmpeg uninstall編 cd ffmpeg sudo make uninstall make clean これでまた./configureにオプション等を付けてインストールできる utmcg5 ~ xxx$ svn co svn //svn.mplayefrhq.hu/ffmpeg/trunk ffmpeg utmcg5 ~ xxx$ ls utmcg5 ~ xxx$ cd ffmpeg/ utmcg5 ~/ffmpeg xxx$ ls utmcg5 ~/ffmpeg xxx$ ./configure utmcg5 ~/ffmpeg xxx$ sudo make utmcg5 ~/ffmpeg xxx$ sudo make install utmcg5 ~/ffmpeg xxx$ which ffmpeg utmcg5 ~ xxx$ svn co svn //svn.mplayerhq.hu/ffmpeg/trunk ffmpeg A ffmpeg/configure A ffmpeg/Doxyfile A ffmpeg/ffmpeg.c A ffmpeg/vhook A ffmpeg/vhook/imlib2.c A ffmpeg/vhook/drawtext.c A ffmpeg/vhook/fish.c A ffmpeg/vhook/null.c A ffmpeg/vhook/Makefile A ffmpeg/vhook/ppm.c A ffmpeg/vhook/watermark.c A ffmpeg/Changelog A ffmpeg/clean-diff A ffmpeg/libavutil A ffmpeg/libavutil/mathematics.c A ffmpeg/libavutil/adler32.h A ffmpeg/libavutil/x86_cpu.h A ffmpeg/libavutil/integer.h A ffmpeg/libavutil/mathematics.h A ffmpeg/libavutil/crc.c A ffmpeg/libavutil/avutil.h A ffmpeg/libavutil/crc.h A ffmpeg/libavutil/md5.c A ffmpeg/libavutil/intfloat_readwrite.c A ffmpeg/libavutil/md5.h A ffmpeg/libavutil/lls.c A ffmpeg/libavutil/intfloat_readwrite.h A ffmpeg/libavutil/Makefile A ffmpeg/libavutil/lls.h A ffmpeg/libavutil/tree.c A ffmpeg/libavutil/softfloat.c A ffmpeg/libavutil/aes128.c A ffmpeg/libavutil/tree.h A ffmpeg/libavutil/intreadwrite.h A ffmpeg/libavutil/softfloat.h A ffmpeg/libavutil/aes.c A ffmpeg/libavutil/aes128.h A ffmpeg/libavutil/rational.c A ffmpeg/libavutil/aes.h A ffmpeg/libavutil/rational.h A ffmpeg/libavutil/mem.c A ffmpeg/libavutil/log.c A ffmpeg/libavutil/internal.h A ffmpeg/libavutil/bswap.h A ffmpeg/libavutil/fifo.c A ffmpeg/libavutil/log.h A ffmpeg/libavutil/fifo.h A ffmpeg/libavutil/adler32.c A ffmpeg/libavutil/common.h A ffmpeg/libavutil/integer.c A ffmpeg/libavcodec A ffmpeg/libavcodec/dvbsubdec.c A ffmpeg/libavcodec/mjpeg.c A ffmpeg/libavcodec/ffv1.c A ffmpeg/libavcodec/dvdsubdec.c A ffmpeg/libavcodec/alpha A ffmpeg/libavcodec/alpha/regdef.h A ffmpeg/libavcodec/alpha/simple_idct_alpha.c A ffmpeg/libavcodec/alpha/mpegvideo_alpha.c A ffmpeg/libavcodec/alpha/asm.h A ffmpeg/libavcodec/alpha/motion_est_alpha.c A ffmpeg/libavcodec/alpha/dsputil_alpha.c A ffmpeg/libavcodec/alpha/dsputil_alpha_asm.S A ffmpeg/libavcodec/alpha/motion_est_mvi_asm.S A ffmpeg/libavcodec/flashsv.c A ffmpeg/libavcodec/vp3data.h A ffmpeg/libavcodec/nuv.c A ffmpeg/libavcodec/vcr1.c A ffmpeg/libavcodec/vqavideo.c A ffmpeg/libavcodec/zmbv.c A ffmpeg/libavcodec/indeo2.c A ffmpeg/libavcodec/ac3dec.c A ffmpeg/libavcodec/mpegaudiodectab.h A ffmpeg/libavcodec/jpeg_ls.c A ffmpeg/libavcodec/wmadata.h A ffmpeg/libavcodec/bytestream.h A ffmpeg/libavcodec/smacker.c A ffmpeg/libavcodec/truemotion1data.h A ffmpeg/libavcodec/sparc A ffmpeg/libavcodec/sparc/dsputil_vis.c A ffmpeg/libavcodec/sparc/vis.h A ffmpeg/libavcodec/vc1data.h A ffmpeg/libavcodec/avs.c A ffmpeg/libavcodec/cljr.c A ffmpeg/libavcodec/cookdata.h A ffmpeg/libavcodec/pnm.c A ffmpeg/libavcodec/bitstream_filter.c A ffmpeg/libavcodec/opt.c A ffmpeg/libavcodec/qdm2data.h A ffmpeg/libavcodec/svq1_vlc.h A ffmpeg/libavcodec/lzo.c A ffmpeg/libavcodec/opt.h A ffmpeg/libavcodec/i386 A ffmpeg/libavcodec/i386/idct_mmx_xvid.c A ffmpeg/libavcodec/i386/mpegvideo_mmx.c A ffmpeg/libavcodec/i386/vp3dsp_mmx.c A ffmpeg/libavcodec/i386/motion_est_mmx.c A ffmpeg/libavcodec/i386/fdct_mmx.c A ffmpeg/libavcodec/i386/dsputil_h264_template_mmx.c A ffmpeg/libavcodec/i386/idct_mmx.c A ffmpeg/libavcodec/i386/fft_3dn2.c A ffmpeg/libavcodec/i386/dsputil_mmx.c A ffmpeg/libavcodec/i386/mmx.h A ffmpeg/libavcodec/i386/dsputil_mmx_avg.h A ffmpeg/libavcodec/i386/h264dsp_mmx.c A ffmpeg/libavcodec/i386/vp3dsp_sse2.c A ffmpeg/libavcodec/i386/dsputil_mmx_rnd.h A ffmpeg/libavcodec/i386/simple_idct_mmx.c A ffmpeg/libavcodec/i386/snowdsp_mmx.c A ffmpeg/libavcodec/i386/mathops.h A ffmpeg/libavcodec/i386/fft_3dn.c A ffmpeg/libavcodec/i386/cavsdsp_mmx.c A ffmpeg/libavcodec/i386/cputest.c A ffmpeg/libavcodec/i386/fft_sse.c A ffmpeg/libavcodec/i386/mpegvideo_mmx_template.c A ffmpeg/libavcodec/resample.c A ffmpeg/libavcodec/vp3.c A ffmpeg/libavcodec/lzo.h A ffmpeg/libavcodec/dv.c A ffmpeg/libavcodec/sonic.c A ffmpeg/libavcodec/lzw.c A ffmpeg/libavcodec/libgsm.c A ffmpeg/libavcodec/idcinvideo.c A ffmpeg/libavcodec/qdrw.c A ffmpeg/libavcodec/mpcdata.h A ffmpeg/libavcodec/mpegvideo.c A ffmpeg/libavcodec/lzw.h A ffmpeg/libavcodec/h263data.h A ffmpeg/libavcodec/shorten.c A ffmpeg/libavcodec/xl.c A ffmpeg/libavcodec/mpegvideo.h A ffmpeg/libavcodec/truemotion1.c A ffmpeg/libavcodec/mdct.c A ffmpeg/libavcodec/rv10.c A ffmpeg/libavcodec/cabac.c A ffmpeg/libavcodec/faac.c A ffmpeg/libavcodec/mpeg12.c A ffmpeg/libavcodec/cavsdata.h A ffmpeg/libavcodec/qpeg.c A ffmpeg/libavcodec/h263dec.c A ffmpeg/libavcodec/cabac.h A ffmpeg/libavcodec/ppc A ffmpeg/libavcodec/ppc/gcc_fixes.h A ffmpeg/libavcodec/ppc/dsputil_altivec.h A ffmpeg/libavcodec/ppc/vc1dsp_altivec.c A ffmpeg/libavcodec/ppc/float_altivec.c A ffmpeg/libavcodec/ppc/gmc_altivec.c A ffmpeg/libavcodec/ppc/mathops.h A ffmpeg/libavcodec/ppc/types_altivec.h A ffmpeg/libavcodec/ppc/mpegvideo_ppc.c A ffmpeg/libavcodec/ppc/h264_template_altivec.c A ffmpeg/libavcodec/ppc/mpegvideo_altivec.c A ffmpeg/libavcodec/ppc/fft_altivec.c A ffmpeg/libavcodec/ppc/dsputil_ppc.c A ffmpeg/libavcodec/ppc/fdct_altivec.c A ffmpeg/libavcodec/ppc/idct_altivec.c A ffmpeg/libavcodec/ppc/h264_altivec.c A ffmpeg/libavcodec/ppc/dsputil_ppc.h A ffmpeg/libavcodec/ppc/dsputil_altivec.c A ffmpeg/libavcodec/ppc/snow_altivec.c A ffmpeg/libavcodec/vmnc.c A ffmpeg/libavcodec/xvmcvideo.c A ffmpeg/libavcodec/jfdctfst.c A ffmpeg/libavcodec/vp6data.h A ffmpeg/libavcodec/xvid_internal.h A ffmpeg/libavcodec/rpza.c A ffmpeg/libavcodec/motion_est.c A ffmpeg/libavcodec/indeo3.c A ffmpeg/libavcodec/h263.c A ffmpeg/libavcodec/mpegaudiodec.c A ffmpeg/libavcodec/snow.c A ffmpeg/libavcodec/dct-test.c A ffmpeg/libavcodec/tta.c A ffmpeg/libavcodec/svq1.c A ffmpeg/libavcodec/snow.h A ffmpeg/libavcodec/flashsvenc.c A ffmpeg/libavcodec/cavs.c A ffmpeg/libavcodec/simple_idct.c A ffmpeg/libavcodec/mmvideo.c A ffmpeg/libavcodec/kmvc.c A ffmpeg/libavcodec/simple_idct.h A ffmpeg/libavcodec/ac3tab.h A ffmpeg/libavcodec/w32thread.c A ffmpeg/libavcodec/flicvideo.c A ffmpeg/libavcodec/zmbvenc.c A ffmpeg/libavcodec/mpegaudio.c A ffmpeg/libavcodec/asv1.c A ffmpeg/libavcodec/fraps.c A ffmpeg/libavcodec/msmpeg4data.h A ffmpeg/libavcodec/cscd.c A ffmpeg/libavcodec/bmp.c A ffmpeg/libavcodec/mpegaudio.h A ffmpeg/libavcodec/amr.c A ffmpeg/libavcodec/mathops.h A ffmpeg/libavcodec/ps2 A ffmpeg/libavcodec/ps2/mpegvideo_mmi.c A ffmpeg/libavcodec/ps2/idct_mmi.c A ffmpeg/libavcodec/ps2/dsputil_mmi.c A ffmpeg/libavcodec/ps2/mmi.h A ffmpeg/libavcodec/dsputil.c A ffmpeg/libavcodec/g726.c A ffmpeg/libavcodec/ulti_cb.h A ffmpeg/libavcodec/xan.c A ffmpeg/libavcodec/eval.c A ffmpeg/libavcodec/qtrle.c A ffmpeg/libavcodec/truemotion2.c A ffmpeg/libavcodec/allcodecs.c A ffmpeg/libavcodec/dsputil.h A ffmpeg/libavcodec/h264dsp.c A ffmpeg/libavcodec/error_resilience.c A ffmpeg/libavcodec/faad.c A ffmpeg/libavcodec/rtjpeg.c A ffmpeg/libavcodec/wmv2.c A ffmpeg/libavcodec/eval.h A ffmpeg/libavcodec/vc1acdata.h A ffmpeg/libavcodec/interplayvideo.c A ffmpeg/libavcodec/rtjpeg.h A ffmpeg/libavcodec/utils.c A ffmpeg/libavcodec/imgresample.c A ffmpeg/libavcodec/truespeech_data.h A ffmpeg/libavcodec/imcdata.h A ffmpeg/libavcodec/truespeech.c A ffmpeg/libavcodec/dvdata.h A ffmpeg/libavcodec/rangecoder.c A ffmpeg/libavcodec/vp5data.h A ffmpeg/libavcodec/motion_est_template.c A ffmpeg/libavcodec/8bps.c A ffmpeg/libavcodec/adx.c A ffmpeg/libavcodec/msmpeg4.c A ffmpeg/libavcodec/imgconvert_template.h A ffmpeg/libavcodec/rangecoder.h A ffmpeg/libavcodec/golomb.c A ffmpeg/libavcodec/h264.c A ffmpeg/libavcodec/tiertexseqv.c A ffmpeg/libavcodec/golomb.h A ffmpeg/libavcodec/png.c A ffmpeg/libavcodec/apiexample.c A ffmpeg/libavcodec/roqvideo.c A ffmpeg/libavcodec/mpeg12data.h A ffmpeg/libavcodec/vp56data.c A ffmpeg/libavcodec/os2thread.c A ffmpeg/libavcodec/Makefile A ffmpeg/libavcodec/fft-test.c A ffmpeg/libavcodec/liba52 A ffmpeg/libavcodec/liba52/bitstream.h A ffmpeg/libavcodec/liba52/tables.h A ffmpeg/libavcodec/liba52/imdct.c A ffmpeg/libavcodec/liba52/bit_allocate.c A ffmpeg/libavcodec/liba52/downmix.c A ffmpeg/libavcodec/liba52/mm_accel.h A ffmpeg/libavcodec/liba52/crc.c A ffmpeg/libavcodec/liba52/a52_internal.h A ffmpeg/libavcodec/liba52/resample.c A ffmpeg/libavcodec/liba52/a52_util.h A ffmpeg/libavcodec/liba52/resample_mmx.c A ffmpeg/libavcodec/liba52/bitstream.c A ffmpeg/libavcodec/liba52/parse.c A ffmpeg/libavcodec/liba52/resample_c.c A ffmpeg/libavcodec/liba52/a52.h A ffmpeg/libavcodec/vp56data.h A ffmpeg/libavcodec/alac.c A ffmpeg/libavcodec/faandct.c A ffmpeg/libavcodec/jrevdct.c A ffmpeg/libavcodec/oggvorbis.c A ffmpeg/libavcodec/mlib A ffmpeg/libavcodec/mlib/dsputil_mlib.c A ffmpeg/libavcodec/cavsdsp.c A ffmpeg/libavcodec/x264.c A ffmpeg/libavcodec/sp5x.h A ffmpeg/libavcodec/faandct.h A ffmpeg/libavcodec/mpegaudiotab.h A ffmpeg/libavcodec/mdec.c A ffmpeg/libavcodec/imc.c A ffmpeg/libavcodec/4xm.c A ffmpeg/libavcodec/avcodec.h A ffmpeg/libavcodec/lcl.c A ffmpeg/libavcodec/vp5.c A ffmpeg/libavcodec/ac3.h A ffmpeg/libavcodec/imgconvert.c A ffmpeg/libavcodec/h261data.h A ffmpeg/libavcodec/indeo3data.h A ffmpeg/libavcodec/smc.c A ffmpeg/libavcodec/xvidff.c A ffmpeg/libavcodec/tiff.c A ffmpeg/libavcodec/raw.c A ffmpeg/libavcodec/vc1.c A ffmpeg/libavcodec/vorbis_enc.c A ffmpeg/libavcodec/bitstream.c A ffmpeg/libavcodec/cook.c A ffmpeg/libavcodec/flacenc.c A ffmpeg/libavcodec/wnv1.c A ffmpeg/libavcodec/parser.c A ffmpeg/libavcodec/ratecontrol.c A ffmpeg/libavcodec/xvid_rc.c A ffmpeg/libavcodec/libtheoraenc.c A ffmpeg/libavcodec/bitstream.h A ffmpeg/libavcodec/dsicinav.c A ffmpeg/libavcodec/vp56.c A ffmpeg/libavcodec/parser.h A ffmpeg/libavcodec/ratecontrol.h A ffmpeg/libavcodec/audioconvert.c A ffmpeg/libavcodec/a52dec.c A ffmpeg/libavcodec/qdm2.c A ffmpeg/libavcodec/svq1_cb.h A ffmpeg/libavcodec/vorbis.c A ffmpeg/libavcodec/flac.c A ffmpeg/libavcodec/vp56.h A ffmpeg/libavcodec/dtsdec.c A ffmpeg/libavcodec/h264enc.c A ffmpeg/libavcodec/vorbis.h A ffmpeg/libavcodec/cinepak.c A ffmpeg/libavcodec/fdctref.c A ffmpeg/libavcodec/sh4 A ffmpeg/libavcodec/sh4/dsputil_align.c A ffmpeg/libavcodec/sh4/idct_sh4.c A ffmpeg/libavcodec/sh4/qpel.c A ffmpeg/libavcodec/sh4/dsputil_sh4.c A ffmpeg/libavcodec/mpc.c A ffmpeg/libavcodec/fft.c A ffmpeg/libavcodec/mp3lameaudio.c A ffmpeg/libavcodec/h261.c A ffmpeg/libavcodec/msrle.c A ffmpeg/libavcodec/dpcm.c A ffmpeg/libavcodec/armv4l A ffmpeg/libavcodec/armv4l/mpegvideo_arm.c A ffmpeg/libavcodec/armv4l/simple_idct_armv5te.S A ffmpeg/libavcodec/armv4l/jrevdct_arm.S A ffmpeg/libavcodec/armv4l/mathops.h A ffmpeg/libavcodec/armv4l/dsputil_iwmmxt_rnd.h A ffmpeg/libavcodec/armv4l/mpegvideo_armv5te.c A ffmpeg/libavcodec/armv4l/dsputil_arm.c A ffmpeg/libavcodec/armv4l/mpegvideo_iwmmxt.c A ffmpeg/libavcodec/armv4l/dsputil_arm_s.S A ffmpeg/libavcodec/armv4l/dsputil_iwmmxt.c A ffmpeg/libavcodec/armv4l/simple_idct_arm.S A ffmpeg/libavcodec/cyuv.c A ffmpeg/libavcodec/pthread.c A ffmpeg/libavcodec/ra144.c A ffmpeg/libavcodec/loco.c A ffmpeg/libavcodec/huffyuv.c A ffmpeg/libavcodec/svq3.c A ffmpeg/libavcodec/tscc.c A ffmpeg/libavcodec/ws-snd1.c A ffmpeg/libavcodec/vorbis_data.c A ffmpeg/libavcodec/targa.c A ffmpeg/libavcodec/ra144.h A ffmpeg/libavcodec/vc1dsp.c A ffmpeg/libavcodec/wmadec.c A ffmpeg/libavcodec/motion_test.c A ffmpeg/libavcodec/ra288.c A ffmpeg/libavcodec/mace.c A ffmpeg/libavcodec/jfdctint.c A ffmpeg/libavcodec/gif.c A ffmpeg/libavcodec/aasc.c A ffmpeg/libavcodec/ra288.h A ffmpeg/libavcodec/mpeg4data.h A ffmpeg/libavcodec/vp6.c A ffmpeg/libavcodec/dvdsubenc.c A ffmpeg/libavcodec/ulti.c A ffmpeg/libavcodec/vmdav.c A ffmpeg/libavcodec/indeo2data.h A ffmpeg/libavcodec/pcm.c A ffmpeg/libavcodec/vp3dsp.c A ffmpeg/libavcodec/beosthread.c A ffmpeg/libavcodec/gifdec.c A ffmpeg/libavcodec/h264data.h A ffmpeg/libavcodec/adpcm.c A ffmpeg/libavcodec/dvbsub.c A ffmpeg/libavcodec/h264idct.c A ffmpeg/libavcodec/msvideo1.c A ffmpeg/libavcodec/vorbis_enc_data.h A ffmpeg/libavcodec/resample2.c A ffmpeg/libavcodec/ac3enc.c A ffmpeg/libavcodec/wavpack.c A ffmpeg/libavcodec/bfin A ffmpeg/libavcodec/bfin/dsputil_bfin.c A ffmpeg/pktdumper.c A ffmpeg/output_example.c A ffmpeg/CREDITS A ffmpeg/version.sh A ffmpeg/libpostproc A ffmpeg/libpostproc/postprocess_template.c A ffmpeg/libpostproc/postprocess.c A ffmpeg/libpostproc/postprocess_internal.h A ffmpeg/libpostproc/postprocess_altivec_template.c A ffmpeg/libpostproc/mangle.h A ffmpeg/libpostproc/postprocess.h A ffmpeg/libpostproc/Makefile A ffmpeg/tests A ffmpeg/tests/videogen.c A ffmpeg/tests/rotozoom.regression.ref A ffmpeg/tests/test.conf A ffmpeg/tests/tiny_psnr.c A ffmpeg/tests/dsptest.c A ffmpeg/tests/libav.regression.ref A ffmpeg/tests/lena.pnm A ffmpeg/tests/regression.sh A ffmpeg/tests/rotozoom.c A ffmpeg/tests/audiogen.c A ffmpeg/tests/ffserver.regression.ref A ffmpeg/tests/Makefile A ffmpeg/tests/server-regression.sh A ffmpeg/tests/ffmpeg.regression.ref A ffmpeg/doc A ffmpeg/doc/faq.texi A ffmpeg/doc/ffmpeg-doc.texi A ffmpeg/doc/soc.txt A ffmpeg/doc/optimization.txt A ffmpeg/doc/snow.txt A ffmpeg/doc/TODO A ffmpeg/doc/ffserver.conf A ffmpeg/doc/texi2pod.pl A ffmpeg/doc/ffmpeg_powerpc_performance_evaluation_howto.txt A ffmpeg/doc/hooks.texi A ffmpeg/doc/ffplay-doc.texi A ffmpeg/doc/Makefile A ffmpeg/doc/ffserver-doc.texi A ffmpeg/cmdutils.c A ffmpeg/INSTALL A ffmpeg/COPYING A ffmpeg/build_avopt A ffmpeg/ffinstall.nsi A ffmpeg/cmdutils.h A ffmpeg/Makefile A ffmpeg/berrno.h A ffmpeg/qt-faststart.c A ffmpeg/cws2fws.c A ffmpeg/unwrap-diff A ffmpeg/README A ffmpeg/common.mak A ffmpeg/ffplay.c A ffmpeg/xvmc_render.h A ffmpeg/ffserver.c A ffmpeg/libavformat A ffmpeg/libavformat/img2.c A ffmpeg/libavformat/dv1394.h A ffmpeg/libavformat/utils.c A ffmpeg/libavformat/cutils.c A ffmpeg/libavformat/nut.c A ffmpeg/libavformat/isom.c A ffmpeg/libavformat/crc.c A ffmpeg/libavformat/ipmovie.c A ffmpeg/libavformat/ffm.c A ffmpeg/libavformat/nuv.c A ffmpeg/libavformat/dsicin.c A ffmpeg/libavformat/nut.h A ffmpeg/libavformat/isom.h A ffmpeg/libavformat/os_support.c A ffmpeg/libavformat/idroq.c A ffmpeg/libavformat/http.c A ffmpeg/libavformat/matroska.c A ffmpeg/libavformat/electronicarts.c A ffmpeg/libavformat/adtsenc.c A ffmpeg/libavformat/mpjpeg.c A ffmpeg/libavformat/os_support.h A ffmpeg/libavformat/yuv.c A ffmpeg/libavformat/gxf.c A ffmpeg/libavformat/avi.h A ffmpeg/libavformat/smacker.c A ffmpeg/libavformat/udp.c A ffmpeg/libavformat/gxf.h A ffmpeg/libavformat/avs.c A ffmpeg/libavformat/rtpproto.c A ffmpeg/libavformat/mxf.c A ffmpeg/libavformat/Makefile A ffmpeg/libavformat/oggparsevorbis.c A ffmpeg/libavformat/flv.h A ffmpeg/libavformat/oggparseflac.c A ffmpeg/libavformat/dvenc.c A ffmpeg/libavformat/mp3.c A ffmpeg/libavformat/mpegts.c A ffmpeg/libavformat/mpegts.h A ffmpeg/libavformat/avisynth.c A ffmpeg/libavformat/rtp.c A ffmpeg/libavformat/x11grab.c A ffmpeg/libavformat/mtv.c A ffmpeg/libavformat/dc1394.c A ffmpeg/libavformat/4xm.c A ffmpeg/libavformat/qtpalette.h A ffmpeg/libavformat/asf.c A ffmpeg/libavformat/dv.c A ffmpeg/libavformat/gxfenc.c A ffmpeg/libavformat/beosaudio.cpp A ffmpeg/libavformat/rtp.h A ffmpeg/libavformat/grab.c A ffmpeg/libavformat/img.c A ffmpeg/libavformat/asf-enc.c A ffmpeg/libavformat/vocenc.c A ffmpeg/libavformat/asf.h A ffmpeg/libavformat/dv.h A ffmpeg/libavformat/rm.c A ffmpeg/libavformat/yuv4mpeg.c A ffmpeg/libavformat/nsvdec.c A ffmpeg/libavformat/tcp.c A ffmpeg/libavformat/movenc.c A ffmpeg/libavformat/mpeg.c A ffmpeg/libavformat/raw.c A ffmpeg/libavformat/sierravmd.c A ffmpeg/libavformat/wc3movie.c A ffmpeg/libavformat/libnut.c A ffmpeg/libavformat/grab_bktr.c A ffmpeg/libavformat/sol.c A ffmpeg/libavformat/avio.c A ffmpeg/libavformat/ogg2.c A ffmpeg/libavformat/swf.c A ffmpeg/libavformat/mov.c A ffmpeg/libavformat/avio.h A ffmpeg/libavformat/ogg2.h A ffmpeg/libavformat/psxstr.c A ffmpeg/libavformat/vocdec.c A ffmpeg/libavformat/avienc.c A ffmpeg/libavformat/au.c A ffmpeg/libavformat/aiff.c A ffmpeg/libavformat/rtp_h264.c A ffmpeg/libavformat/mm.c A ffmpeg/libavformat/oggparseogm.c A ffmpeg/libavformat/oggparsetheora.c A ffmpeg/libavformat/framehook.c A ffmpeg/libavformat/westwood.c A ffmpeg/libavformat/flvenc.c A ffmpeg/libavformat/flic.c A ffmpeg/libavformat/daud.c A ffmpeg/libavformat/rtp_h264.h A ffmpeg/libavformat/mpc.c A ffmpeg/libavformat/framehook.h A ffmpeg/libavformat/jpeg.c A ffmpeg/libavformat/mpegtsenc.c A ffmpeg/libavformat/segafilm.c A ffmpeg/libavformat/v4l2.c A ffmpeg/libavformat/tta.c A ffmpeg/libavformat/avidec.c A ffmpeg/libavformat/wv.c A ffmpeg/libavformat/tiertexseq.c A ffmpeg/libavformat/audio.c A ffmpeg/libavformat/flvdec.c A ffmpeg/libavformat/allformats.c A ffmpeg/libavformat/gif.c A ffmpeg/libavformat/rtp_internal.h A ffmpeg/libavformat/allformats.h A ffmpeg/libavformat/barpainet.h A ffmpeg/libavformat/rtspcodes.h A ffmpeg/libavformat/ogg.c A ffmpeg/libavformat/mmf.c A ffmpeg/libavformat/file.c A ffmpeg/libavformat/amr.c A ffmpeg/libavformat/gifdec.c A ffmpeg/libavformat/nutdec.c A ffmpeg/libavformat/sgi.c A ffmpeg/libavformat/avformat.h A ffmpeg/libavformat/base64.c A ffmpeg/libavformat/idcin.c A ffmpeg/libavformat/riff.c A ffmpeg/libavformat/voc.c A ffmpeg/libavformat/rtsp.c A ffmpeg/libavformat/base64.h A ffmpeg/libavformat/dv1394.c A ffmpeg/libavformat/aviobuf.c A ffmpeg/libavformat/riff.h A ffmpeg/libavformat/voc.h A ffmpeg/libavformat/rtsp.h A ffmpeg/libavformat/wav.c A ffmpeg/ffserver.h A ffmpeg/MAINTAINERS U ffmpeg Fetching external item into ffmpeg/libswscale A ffmpeg/libswscale/yuv2rgb.c A ffmpeg/libswscale/swscale.c A ffmpeg/libswscale/swscale_internal.h A ffmpeg/libswscale/yuv2rgb_mlib.c A ffmpeg/libswscale/swscale_altivec_template.c A ffmpeg/libswscale/cs_test.c A ffmpeg/libswscale/swscale.h A ffmpeg/libswscale/yuv2rgb_altivec.c A ffmpeg/libswscale/rgb2rgb_template.c A ffmpeg/libswscale/yuv2rgb_init.c A ffmpeg/libswscale/rgb2rgb.c A ffmpeg/libswscale/swscale-example.c A ffmpeg/libswscale/yuv2rgb_template.c A ffmpeg/libswscale/swscale_template.c A ffmpeg/libswscale/rgb2rgb.h A ffmpeg/libswscale/Makefile U ffmpeg/libswscale Checked out external at revision 22013. Checked out revision 7707. utmcg5 ~ xxx$ cd ffmpeg/ utmcg5 ~/ffmpeg xxx$ ls COPYINGCREDITSChangelog DoxyfileINSTALLMAINTAINERS MakefileREADMEberrno.h build_avopt*clean-diff*cmdutils.c cmdutils.hcommon.makconfigure* cws2fws.cdoc/ffinstall.nsi ffmpeg.cffplay.cffserver.c ffserver.hlibavcodec/libavformat/ libavutil/libpostproc/libswscale/ output_example.cpktdumper.cqt-faststart.c tests/unwrap-diff*version.sh* vhook/xvmc_render.h utmcg5 ~/ffmpeg xxx$ ./configure install prefix /usr/local source path /Users/xxx/ffmpeg C compiler cc make make .align is power-of-two yes ARCH x86_32 (generic) big-endian no MMX enabled yes CMOV enabled no CMOV is fast no gprof enabled no debug symbols yes strip symbols yes optimize yes static yes shared no postprocessing support no software scaler enabled no video hooking yes Imlib2 support no FreeType support yes network support yes IPv6 support yes threading support no SDL support no Sun medialib support no AVISynth enabled no liba52 support no liba52 dlopened no libdts support no libfaac enabled no libfaad enabled no faadbin enabled no libgsm enabled no libmp3lame enabled no libnut enabled no libogg enabled no libtheora enabled no libvorbis enabled no x264 enabled no XviD enabled no zlib enabled yes AMR-NB float support no AMR-NB fixed support no AMR-WB float support no AMR-WB IF2 support no License LGPL Creating config.mak and config.h...
https://w.atwiki.jp/how_to_use_ffmpegx/pages/5.html
3. Video tab ここでやること: 映像圧縮方式の選択(使用するエンジン、作成するコンテナ形式、映像ビットレート、解像度など) 3. Video tab3.1. Video Codec3.1.1.Video Codec 3.2. ビットレート計算機 3.3. Video parameters 3.4. その他のオプション 3.1. Video Codec かなり不正確な図なので細部を信用しないように。 ffmpegXは内部に「エンジン」をいくつか内蔵している。 各エンジンは扱えるコデック(映像/音声)とコンテナに得手不得手がある。 Video tabとAudio tabでそれぞれコデックを選ぶと、整合性の無い組み合わせでも指定できてしまう。 Summary tabのクイックプリセットで、目的のエンジン、コデック(映像/音声)、コンテナの組み合わせをいっぺんに済ませる事ができるので、まずそちらで目的の形式を選び、このタブでは「Bitrate calculator」と「Video parametors」の調節にとどめるのが吉。 3.1.1.Video Codec エンコードに使う「エンジン」と出力する形式を指定。前から順番に、ファイルフォーマット(MPEG4)、コンテナ形式と拡張子(AVI)、エンジン(mencoder)。選択肢は以下の通り。 MPEG4 [.AVI] (ffmpeg)"libavcodec mpeg-4"として知られるコデック。DivX 4 /5再生機と互換性がある。エンジンのffmpegは、ffmpegオープンソースプロジェクト製の大変高速なエンジンで、Altivec に最適化済み。MPEG-4 コデックの中でも最高画質の一つでコンスタントに進化している。速度第一ならこれ。 MPEG4 [.AVI] (mencoder)同じく "libavcodec mpeg-4"コデックを mencoder エンジンで使う。ffmpegと比べると、より先進的なエンコードオプション、NTSC素材での映像/音声同期 の確実さ、フィルタ、字幕、自動クロップなどに優れる。反面、速度はffmpegよりかなり落ちる。これらの進んだ機能や、画質第一ならこっち。 注意点:ffmpegXの mencoder.AVIが作るのは AVI 1.0。最大サイズ 2GBまでという制限がある。 XviD [.AVI] (mencoder)XviD コデックは現在すべてのプラットフォームで良く見られる mpeg-4 コデック。 注意点:ffmpegXの mencoder.AVIが作るのは AVI 1.0。最大サイズ 2GBまでという制限がある。 DivX 3 [.AVI] (ffmpeg)libavcodec ファミリーに移植されたDivX3コデック。画質は上位コデックに劣る。このコデックはDivX3しか再生できない環境との互換性のために有る。 DivX 3 [.AVI] (mencoder)上に同じ。mencoderエンジン使用 MsMPEG4v2 [.AVI] (ffmpeg)古いコデック MsMPEG4v1 [.AVI] (ffmpeg)さらに古いコデック MPEG1 [.MPG] (ffmpeg)MPEG-1 はVCD規格のフォーマット。CDRに焼いてVCD-互換の DVD プレイヤでTVで見る事ができる。パソコンでしか見る事が無いなら MPEG-4のほうが同じ画質でより小さなサイズ、ビットレートにできる。ffmpegのMPEG-1エンコーダは非常に画質も良く、速度も早い。 MPEG1 [.MPG] (mpeg2enc)mpeg2enc エンジンはVCDのために完璧な MPEG-1規格にそったエンコードを行う。 MPEG2 [.MPG] (ffmpeg)ffmpeg エンジンの "fast mpeg-2" エンコードは長足の進歩を遂げた。2パスとVBR をサポートし、非常に早い。SVCD と DVD 作成もサポート。 MPEG2 [.MPG] (mpeg2enc)MPEG-2 は SVCD, CVD (CDRに焼いてSVCD-CVD 互換の DVD プレイヤでTVで見る事ができる) DVDの標準形式。mpeg2enc MPEG-2 エンジンは、Altivec に最適化され、多数のオプションを備える。 CVD とSVCD 作成に非常に良い。 Passthrough (ffmpeg)素材の映像をエンコードせず、出力ファイルに単純コピーする。映像はそのままに、音声だけ変換したい際に使う。 H.263 [.3GP] (ffmpeg)ffmpeg エンジンの "H263 (3GP)" エンコードは、スマートフォンや互換性のあるハンドヘルド用。搭載メモリの少ない機器向けに、非常に低いビットレートに最適化されている。"3GP" クイックプリセットはデフォルト設定。最適な画質を得るには、再生する携帯のスペックに応じて設定を変え、ffmpegX プリセットファイルに保存する事。Bluetoothがあれば、Apple Bluetooth File Exchange 経由で簡単に.3gp ファイルを対象機器に送る事が出来る。注意点:携帯によってはビデオ再生ソフトのインストールが必要。 (自分の携帯会社のサイトで調べる事)。これとは別に、Smartmovieプレイヤーを持った携帯向けには、単にDivX/XviD コデックで適切なサイズとビットレートでエンコードするだけで済む。 (これも携帯用設定をプリセットに保存しておく事)。 DV [.DV] (ffmpeg)ffmpeg エンジンの "DV" ビデオは、PALとNTSCフレームレートをサポートする標準の DV コデック。音声は PCM 。かならず素材ファイルを先に指定し、次にクイックプリセットを選んで設定を変更しない事:画像サイズ変更不可、ビットレート計算機でのビットレート指定も不可。 XviD [.AVI] (ffmpeg)ffmpeg エンジンから使う "XviD"コデックは mencoder XviDと同じ。利点は速度でmencoder XviDより最大で300%早い。速度第一、mencoderの字幕、やフィルタ機能が要らない場合むけ。 MPEG4 [.MOV] (ffmpeg)ffmpeg AVI MPEG4とコデックは同じ。MOVコンテナに出力する。これでQuicktime Player やFinal Cut Proなど、他のQuicktime アプリケーションで再生、編集可能になる。追加の DivX コデックは不要。 (注意点: MOV フォーマットは PCやQuicktime非互換の DivX-ハードウェアプレイヤで再生できない事があり得る)。デフォルト設定でAAC音声のMPEG4.MOVを作るには、"MOV mpeg-4" クイックプリセットを選ぶ。mpeg/vob ファイルを編集可能なまま小さくしたい際や、テラバイトのストレージ抜きでアーカイブ化する際に使う。また、巨大な .DV キャプチャを編集可能なまま非常に小さくしたい際なども同様。 (DVを変換する際は "Deinterlace" を使う事)。 PC/DivX ハードウェアプレイヤとの互換性よりも、Quicktime MOV コンテナで残してQuicktimeで再生し、Quicktime の優れた機能とその上のアプリケーションの利点を享受したい際などに使う。 XviD [.MOV] (ffmpeg)上に同じ。コデックがXviD MPEG4 [.MP4] (ffmpeg)ffmpeg AVI MPEG4とコデックは同じ。コンテナにMPEG-4 .MP4 を使う。AAC 音声と共に使う事。 XviD4 [.MP4] (ffmpeg)ffmpeg AVI XviDとコデックは同じ。コンテナにMPEG-4 .MP4 を使う。AAC 音声と共に使う事。 MPEG-TS [.TS] (ffmpeg)ffmpeg mpeg-2とコデックは同じ。コンテナにmpeg transport stream (.TS) を使う。MP2 音声と共に使う事。(試験的実装の為、ハードウェアデコーダで再生できないかも知れない)。 H264 [.MP4] (mencoder)H.264/Advanced Video Codec、コンテナはMP4、音声はAAC 。素晴らしい画質とmpeg-4よりも小さなファイルサイズ。なお、ffmpegXが使うコデックはx264。 ビデオエンコードのオンオフ。素材の音声だけ抜き出したい時に使う。ffmpeg のみで動作。 3.2. ビットレート計算機 ビットレート計算機は映像ビットレートの計算に使う。 ここに入力したvideo bitrateの値が、映像部分をエンコードする際に使われる。例えば 1000 kbit/sec なら、1秒ぶんの映像に1000 kbit 消費する。(概ね 24〜 30 枚の映像になる。枚数は framerate で指定する。従って、同じビットレートでもフレームレートが低ければ画質は向上する)。 しかし、エンコーダが必ずこの数値をコンスタントに守るわけでは無い。実際の結果数値は、エンコードエンジンのレートコントロールシステム、他のエンコード設定などの影響を受ける。例えば VBR モードでは実際のビットレートは素材映像の内容によって大きく変動する。 "Best":先に Video Size (通常は素材と同じか縮小)と、 Framerate を選んでから押す。そこから"Best"な値を出して Video Bitrae 欄に入れる。 "Rate":指定された長さ(min)の映像が指定されたCD枚数やファイルサイズ(MB)に収まるように Video Bitrae を計算(音声ビットレートも計算に含まれる)。必ず、 "Best" の数値と比べ、かけ離れた数値を使わないようにする事(上でも下でも)。 "Time":上記の反対。指定されたCD枚数やファイルサイズ(MB)に何分入るかを、現在の設定を元に計算する(音声含む)。 "Best" に続けて "Time"を押すと、ベストのビットレートでエンコード可能なmin数が解る。 "Size":入力されたビットレートと継続時間(素材の長さ)から出力結果ファイルのサイズ(MB)を計算。 "Img":ビットレートとフレームレート、アスペクトレシオを元にVideo Sizeを計算する。(素材映像より大きくしたり、手持ちの再生機器の画面サイズより大きくしないこと)。 "Auto":選択したCD容量を無駄無く満たすビットレートと解像度をbppを使って算出、入力する。Audio tabで指定した音声ビットレートも含む。もしも横幅が480以下になったら、画質はSVCD品質より下がる。240以下になったらVCD以下。したがって、こうした場合はメディアサイズを増やすべきだろう(1CDのつもりだったら2枚にするとか)また、解像度は素材映像より決して大きくしない方が良い。 "Auto" と "Img"はmpeg-4 ベースのフォーマット (DivX, XviD)専用で、mpeg-1/2 ベースのフォーマットには使えない (VCD, CVD, SVCD, DVD)。これらの解像度は規格通りでなければならない。 Video bitrateの数字には色がつく。赤:ビットレート低すぎ。ビットレートを上げるか、解像度を縮小する。 緑:適正範囲。ビットレートも解像度もOK。 青:ビットレート高すぎ。緑との画質差が無い。無駄。ビットレートを下げるか、解像度を拡大(素材より大きくならないように)する。 3.3. Video parameters 出力映像の解像度、アスペクト比(縦横比)、フレームレートの指定。通常のTV放送は640x480(4:3)にするのが一般的。上下に黒帯の入った映画は16:9。この場合、黒帯はクロップする。フレームレートは通常NTSC(29.97fps)。NTSC FILM(23.976fps)は映画やアニメ向き。 Video Size:幅 x 高さ。単位pixel。16の倍数でなければ、大半のコデックで適正に動作しない。 Auto Size:幅を元に高さを自動計算。MPEG2を出力する場合、16:9にするとアスペクト比のフラグも書き込む。(図は横幅640を元に映画向けのシネスコサイズにしたところ。) Framerate:出力映像のフレームレートを指定。PAL - NTSC間の変換は音ズレを生みやすい。 3.4. その他のオプション DVDやらない為、未経験 Title,Chap,Angle:mencoderエンジンでVIDEO_TSの入力パラメータを指定。 名前 コメント
https://w.atwiki.jp/kobapan/pages/159.html
FFmpeg/ディレクトリ内のmp4からmp3を作る一括変換 FFmpeg/DVDをmpg動画ファイルに変換 FFmpeg/動画ファイルから静止画を切り出す FFmpeg/動画ファイルを一部カット FFmpeg/クロップ-領域を指定して動画出力 FFmpeg/音声形式の各種変換 参考 FFmpeg Documentation Convert videos with ffmpeg Debian/ffmpeg(完全判)インストール
https://w.atwiki.jp/takeone/pages/9.html
ffmpeg 公式:ffmpeg オープンソースの音声・動画変換ソフト。linux版、windows版、mac版などがあり、単体ではコマンドラインから利用する。 多くの動画、音声フォーマットに対応しており、様々なマルチメディア・ソフトの変換エンジンとして利用されている ソース svn等 ffmpeg-mt(multithread) windowsビルド Zeranoe FFMpeg お気に入りの動画を携帯で見よう マニュアル等 ffmpeg Documentation 最新FFmpeg ffmpegは常に改変が加えられており、その過程でオプションの指定の仕方が変わることもしばしばなので、注意が必要。 mp3→libmp3lame,xvid→libxvid等 また、現状バイナリ配布されるffmpegは、ライセンス上の問題によりlibfaacなど、使えなくなっている機能があることにも注意。 これらを有効にするには、ソースからビルドする必要があり、これによりライセンスの問題もクリアされる。 windows環境では、自力で一からビルド方法を調べていくのは敷居が高いので、オレ流FFMpegビルドツールのような便利なツールを利用するといい。 Ubuntu9.10でlibfaacを有効化してビルドする方法は"Ubuntu 9.10 についてのあれこれ"参照 基本的な使い方 ffmpeg -i input.avi output.mp4 最もシンプルにはこれでOK サイズやフレームレート、アスペクト比などは元動画と同様に、コーデックやビットレートはデフォルトの値が使用される。 つまり、出力ファイルに拡張子を指定すれば、一応の動画が出来る どのような動画が出来るかは、MediaInfo等で確認を。 ffmpegで一つ注意したいことは、各オプションを記述する位置。 どこに記述するかで、エラーが発生したり、思うような動作を行ってくれないことがある。 例えば、動画のフレームレートを変更しようと ffmpeg.exe -r 24000/1001 -i input.avi output.mp4 のように記述するとエラーになる ffmpeg.exe -i input.avi -r 24000/1001 output.mp4 のように、入力ファイルの後に記述必要がある 大体は ffmpeg.exe コマンド全体レベルのオプション 入力に関するオプション -i 入力ファイル 出力に関するオプション 出力ファイル のように記述すればよい 入力ファイルが複数あるときは、少し面倒になるが、実際のところ入力オプションに関しては殆ど指定することはないので、省いて考えてよい 要するに、出力に関するオプションは、入力ファイルの後に記述しておくということだけ覚えておけばよい。 例 ffmpeg.exe -y -i input1.ts -i input2.m4a -c v libx264 -c a copy output.mp4 なぜコマンドラインを使うか なぜなら、スクリプト(例えばwindowsにおけるバッチファイル)で利用出来るから。 例えば、以下のものをメモ帳で記述し、ffmpeg.exeと同じフォルダにsample.batとして保存する。 ffmpeg.exe -i "%~1" "%~dpn1_new.mp4" ここに動画ファイルをドラッグ&ドロップするだけで、動画ファイルが生成される。(※ファイル名によってはエラーになる場合がある) 上は単純な例だが、バッチファイルを利用すれば、いちいち対話的にウィンドウを操作することなく、決まった処理を簡単に行うことが出来る。 また、ffmpegと他のコマンドを組み合わせれば、もっと複雑な処理をさせることも出来て、一度に行える作業の幅が広がるというわけ。
https://w.atwiki.jp/apple_click/pages/13.html
ffmpegのインストール portをインストール http //www.macports.org/install.php ffmpegをインストールする前に。 http //ffmpeg.darwinports.com/ ffmpegのインストール % sudo port install lame % sudo port install x264 % sudo port install faac % sudo port install faad2 % sudo port install a52dec % sudo port install ffmpeg +faac +faad +a52 +x264 よく使うオプション $ffmpeg -i in.mp3 -ac 1 -ar 8000 -ab 32 out.mp3 $awk {print "ffmpeg -i " $9 " -ac 1 -ar 16000 -ab 32 " $9 ".mp3"} ls.txt zigen3rd-no-mac-pro ~ zigen3rd$ sudo port install lame Password Computing dependencies for lame Dependencies to be installed ncurses ncursesw Fetching ncursesw Attempting to fetch ncurses-5.7.tar.gz from ftp //ftp.dti.ad.jp/pub/GNU/ncurses Verifying checksum(s) for ncursesw Extracting ncursesw Applying patches to ncursesw Configuring ncursesw Building ncursesw Staging ncursesw into destroot Installing ncursesw @5.7_1 Activating ncursesw @5.7_1 Cleaning ncursesw Fetching ncurses Verifying checksum(s) for ncurses Extracting ncurses Applying patches to ncurses Configuring ncurses Building ncurses Staging ncurses into destroot Installing ncurses @5.7_1 Activating ncurses @5.7_1 Cleaning ncurses Fetching lame Attempting to fetch lame-3.98.4.tar.gz from http //jaist.dl.sourceforge.net/lame Verifying checksum(s) for lame Extracting lame Configuring lame Building lame Staging lame into destroot Installing lame @3.98.4_0 Activating lame @3.98.4_0 Cleaning lame zigen3rd-no-mac-pro ~ zigen3rd$ zigen3rd-no-mac-pro ~ zigen3rd$ sudo port install x264 Computing dependencies for x264 Dependencies to be installed yasm gettext expat libiconv gperf Fetching expat Attempting to fetch expat-2.0.1.tar.gz from http //jaist.dl.sourceforge.net/expat Verifying checksum(s) for expat Extracting expat Configuring expat Building expat Staging expat into destroot Installing expat @2.0.1_1 Activating expat @2.0.1_1 Cleaning expat Fetching gperf Attempting to fetch gperf-3.0.4.tar.gz from ftp //ftp.dti.ad.jp/pub/GNU/gperf Verifying checksum(s) for gperf Extracting gperf Configuring gperf Building gperf Staging gperf into destroot Installing gperf @3.0.4_0 Activating gperf @3.0.4_0 Cleaning gperf Fetching libiconv Attempting to fetch libiconv-1.13.1.tar.gz from ftp //ftp.dti.ad.jp/pub/GNU/libiconv Verifying checksum(s) for libiconv Extracting libiconv Applying patches to libiconv Configuring libiconv Building libiconv Staging libiconv into destroot Installing libiconv @1.13.1_0 Activating libiconv @1.13.1_0 Cleaning libiconv Fetching gettext Attempting to fetch gettext-0.18.1.1.tar.gz from ftp //ftp.dti.ad.jp/pub/GNU/gettext Verifying checksum(s) for gettext Extracting gettext Applying patches to gettext Configuring gettext Building gettext Staging gettext into destroot Installing gettext @0.18.1.1_2 Activating gettext @0.18.1.1_2 Cleaning gettext Fetching yasm Attempting to fetch yasm-1.1.0.tar.gz from http //distfiles.macports.org/yasm Verifying checksum(s) for yasm Extracting yasm Configuring yasm Building yasm Staging yasm into destroot Installing yasm @1.1.0_0 Activating yasm @1.1.0_0 Cleaning yasm Fetching x264 Attempting to fetch x264-snapshot-20100603-2245.tar.bz2 from http //distfiles.macports.org/x264 Verifying checksum(s) for x264 Extracting x264 Configuring x264 Building x264 Staging x264 into destroot Installing x264 @20100603_0 Activating x264 @20100603_0 Cleaning x264 zigen3rd-no-mac-pro ~ zigen3rd$ zigen3rd-no-mac-pro ~ zigen3rd$ sudo port install faac Password Computing dependencies for faac Dependencies to be installed autoconf help2man p5-locale-gettext perl5 perl5.8 m4 automake libtool Fetching perl5.8 Attempting to fetch perl-5.8.9.tar.bz2 from http //www.cpan.org/src/ Verifying checksum(s) for perl5.8 Extracting perl5.8 Applying patches to perl5.8 Configuring perl5.8 Building perl5.8 Staging perl5.8 into destroot Installing perl5.8 @5.8.9_3 Activating perl5.8 @5.8.9_3 Cleaning perl5.8 Fetching perl5 Verifying checksum(s) for perl5 Extracting perl5 Configuring perl5 Building perl5 Staging perl5 into destroot Installing perl5 @5.8.9_0 Activating perl5 @5.8.9_0 Cleaning perl5 Fetching p5-locale-gettext Attempting to fetch gettext-1.05.tar.gz from ftp //ftp.cpan.org/pub/CPAN/modules/by-module/Locale Verifying checksum(s) for p5-locale-gettext Extracting p5-locale-gettext Applying patches to p5-locale-gettext Configuring p5-locale-gettext Building p5-locale-gettext Staging p5-locale-gettext into destroot Installing p5-locale-gettext @1.05_3 Activating p5-locale-gettext @1.05_3 Cleaning p5-locale-gettext Fetching help2man Attempting to fetch help2man-1.38.2.tar.gz from ftp //ftp.dti.ad.jp/pub/GNU/help2man Verifying checksum(s) for help2man Extracting help2man Configuring help2man Building help2man Staging help2man into destroot Installing help2man @1.38.2_0 Activating help2man @1.38.2_0 Cleaning help2man Fetching m4 Attempting to fetch m4-1.4.15.tar.bz2 from ftp //ftp.dti.ad.jp/pub/GNU/m4 Verifying checksum(s) for m4 Extracting m4 Configuring m4 Building m4 Staging m4 into destroot Installing m4 @1.4.15_2 Activating m4 @1.4.15_2 Cleaning m4 Fetching autoconf Attempting to fetch autoconf-2.68.tar.bz2 from ftp //ftp.dti.ad.jp/pub/GNU/autoconf Verifying checksum(s) for autoconf Extracting autoconf Configuring autoconf Building autoconf Staging autoconf into destroot Installing autoconf @2.68_1 Activating autoconf @2.68_1 Cleaning autoconf Fetching automake Attempting to fetch automake-1.11.1.tar.bz2 from ftp //ftp.dti.ad.jp/pub/GNU/automake Verifying checksum(s) for automake Extracting automake Configuring automake Building automake Staging automake into destroot Installing automake @1.11.1_0 Activating automake @1.11.1_0 Cleaning automake Fetching libtool Attempting to fetch libtool-2.4.tar.gz from ftp //ftp.dti.ad.jp/pub/GNU/libtool Verifying checksum(s) for libtool Extracting libtool Configuring libtool Building libtool Staging libtool into destroot Installing libtool @2.4_0 Activating libtool @2.4_0 Cleaning libtool Fetching faac Attempting to fetch faac-1.28.tar.gz from http //jaist.dl.sourceforge.net/faac Verifying checksum(s) for faac Extracting faac Configuring faac Building faac Staging faac into destroot Installing faac @1.28_2 Activating faac @1.28_2 Cleaning faac zigen3rd-no-mac-pro ~ zigen3rd$ zigen3rd-no-mac-pro ~ zigen3rd$ sudo port install faad2 Password Computing dependencies for faad2 Fetching faad2 Attempting to fetch faad2-2.7.tar.gz from http //jaist.dl.sourceforge.net/faac Verifying checksum(s) for faad2 Extracting faad2 Configuring faad2 Building faad2 Staging faad2 into destroot Installing faad2 @2.7_0 Activating faad2 @2.7_0 Cleaning faad2 zigen3rd-no-mac-pro ~ zigen3rd$ zigen3rd-no-mac-pro ~ zigen3rd$ sudo port install a52dec Computing dependencies for a52dec Fetching a52dec Attempting to fetch a52dec-0.7.4.tar.gz from http //distfiles.macports.org/a52dec Verifying checksum(s) for a52dec Extracting a52dec Configuring a52dec Building a52dec Staging a52dec into destroot Installing a52dec @0.7.4_0 Activating a52dec @0.7.4_0 Cleaning a52dec zigen3rd-no-mac-pro ~ zigen3rd$ zigen3rd-no-mac-pro ~ zigen3rd$ port install ffmpeg +faac +faad +a52 +x264 +lame Error Insufficient privileges to write to MacPorts install prefix. zigen3rd-no-mac-pro ~ zigen3rd$ zigen3rd-no-mac-pro ~ zigen3rd$ zigen3rd-no-mac-pro ~ zigen3rd$ sudo port install ffmpeg +faac +faad +a52 +x264 +lame Computing dependencies for ffmpeg Building ffmpeg Staging ffmpeg into destroot Installing ffmpeg @0.6.1_0 Activating ffmpeg @0.6.1_0 ** ** This build of ffmpeg includes nonfree code as follows ** ** libfaac ** ** The following libraries and binaries may not be redistributed ** ** ffmpeg ** libavcodec ** libavdevice ** libavfilter ** libavformat ** libavutil ** ** To remove this restriction use variant +no_nonfree ** Cleaning ffmpeg zigen3rd-no-mac-pro ~ zigen3rd$