FFMPEG USAGE

少しずつ日本語化してます。ご協力をお願いします。 詳しい方、どんな効果があるとかオプションの引数の型とか付け足してくれるとありがたいです。 参考資料:ffmpeg Documentation 利用可能なフォーマット、コーデック、プロトコル fileformat.txt(-formats の出力ママです)

使い方: ffmpeg [[infile options] -i infile]... {[outfile options] outfile}...

メインオプション

-Lライセンスを表示
-hヘルプを表示
-versionバージョンを表示
-formats利用可能なフォーマット、コーデック、プロトコルを表示 fileformat.txt
-f fmt強制的にfmtで指定したフォーマットを適用する
-img img_fmt強制的にimg_fmtで指定したイメージフォーマットを適用する
-i filenameインプットファイル名
-y同名ファイルがあった場合アウトプットファイルを上書きする
-t duration変換する時間(長さ)を指定する(hh:mm:ss.ms 又は、s)
-fs limit_sizeファイルサイズを制限する
-ss time_off変換開始時間をセットする(hh:mm:ss.ms 又は、s)
-itsoffset time_offインプットファイルのオフセットを指定する(±hh:mm:ss.ms 又は、±s)
-title stringタイトルをセットする
-timestamp timeタイムスタンプをセットする
-author string著作者名
-copyright string著作権表示
-comment stringコメント
-v verboseログの量をコントロール(?)バーボーズモード
-target typeターゲットのファイルタイプを指定 ("vcd", "svcd", "dvd", "dv", "pal-vcd", "ntsc-svcd", ...)
-dframes number変換するフレーム数を指定する
-hqハイクオリティセッティングを有効にする

ビデオオプション

-b bitrateビデオビットレートの設定 (kbit/秒)
-vframes number変換するビデオフレーム数
-r rateフレームレートの設定(fps、値、小数部または簡略名)
-s sizeフレームサイズの設定(WxHか簡略名)
-aspect aspectアスペクト比の設定(4:3、16:9、または1.3333、1.7777)
-fixaspect固定アスペクト比(変換君では元ソースのピクセル数比(←注意!)を固定しつつ足りない時は余白を追加)
-croptop size上部からピクセル単位でカット (偶数で!)-sの前に入れればトリミング出来る
-cropbottom size下部からピクセル単位でカット (偶数で!)画面キャプチャし、縦横比固定でトリミングすれば
-cropleft size左端からピクセル単位でカット (偶数で!)数値を求められるが、キャプチャした画像が元ソースと
-cropright size右端からピクセル単位でカット (偶数で!)同じピクセル数でないと誤差が起きるので注意!
-padtop size上部からピクセル単位で余白追加 (偶数で!)-fixaspectが上手く機能しない時は
-padbottom size下部からピクセル単位で余白追加 (偶数で!)コレで補完すると良い
-padleft size左端からピクセル単位で余白追加 (偶数で!)例:176x144を
-padright size右端からピクセル単位で余白追加 (偶数で!)176x132 -padtop 6 -padbottom 6
-padcolor color余白の色指定 (Hex 000000 thru FFFFFF)
-vnビデオなし
-bt toleranceset video bitrate tolerance (in kbit/s)
-maxrate bitrate最大ビデオビットレートの設定 (kbit/秒)
-minrate bitrate最小ビデオビットレートの設定 (kbit/秒)
-bufsize sizeset ratecontrol buffer size (in kByte)
-vcodec codecビデオコーデックを指定 (変換なしの場合は'copy')
-sameqソースと同じクオリティで変換 (implies VBR)
-pass n2passのとき1pass目か2pass目かを指定(1 or 2)
-passlogfile file2passのときログファイル名を指定

高度なビデオオプション

-pix_fmt formatピクセルフォーマットの設定
-g gop_sizeset the group of picture size
-intraIフレームのみを利用する。動き予測を無効にする。
変換速度は速くなるが、画像の品質は下がる(同じ品質の場合はファイルサイズが大きくなる)。
-qscale q動画の量子化係数を固定する (VBR)
-qmin q動画の量子化係数の最小値を設定する:Default = 2 (VBR)
-qmax q動画の量子化係数の最大値を設定する:Default = 31(VBR)
-lmin lambdamin video lagrange factor (VBR)
-lmax lambdamax video lagrange factor (VBR)
-mblmin qmin macroblock quantiser scale (VBR)
-mblmax qmax macroblock quantiser scale (VBR)
-qdiff qmax difference between the quantiser scale (VBR)
-qblur blurvideo quantiser scale blur (VBR)
-qsquish squishhow to keep quantiser between qmin and qmax (0 = clip, 1 = use differentiable function)
-qcomp compressionvideo quantiser scale compression (VBR)
-rc_init_cplx complexityinitial complexity for 1-pass encoding
-b_qfactor factorqp factor between p and b frames
-i_qfactor factorqp factor between p and i frames
-b_qoffset offsetqp offset between p and b frames
-i_qoffset offsetqp offset between p and i frames
-ibias biasintra quant bias
-pbias biasinter quant bias
-rc_eq equationset rate control equation
-rc_override overriderate control override for specific intervals
-me method動き予測の手法を設定する
-dct_algo algoset dct algo
-idct_algo algoset idct algo
-me_thresholdmotion estimaton threshold
-mb_thresholdmacroblock threshold
-er nset error resilience
-ec bit_maskset error concealment
-bf framesBフレームを利用する。参照するフレーム数(1〜8)
数字が大きいほど変換速度は遅くなるが画像の品質は上がる(同じ品質の場合はファイルサイズが小さくなる)。
-mbd modemacroblock decision
-mbcmp cmp functionmacroblock compare function
-ildctcmp cmp functionildct compare function
-subcmp cmp functionsubpel compare function
-cmp cmp functionfullpel compare function
-precmp cmp functionpre motion estimation compare function
-premepre motion estimation
-lelim elimsingle coefficient elimination threshold for luminance (negative values also consider DC coefficient)
-celim elimsingle coefficient elimination threshold for chrominance (negative values also consider DC coefficient)
-lumi_maskluminance masking
-dark_maskdarkness masking
-scplx_maskspatial complexity masking
-tcplx_masktemporal complexity masking
-p_maskinter masking
-4mvマクロブロック毎に four motion vector を利用する。
変換速度は遅くなるが画像の品質は上がる(同じ品質の場合はファイルサイズが小さくなる)。 (MPEG4)
-obmcuse overlapped block motion compensation (h263+)
-lfuse loop filter (h263+)
-partdata partitioning を使用する。携帯動画では使用しません。-ps オプションと組み合わせて使用します (MPEG4)
-bug paramworkaround not auto detected encoder bugs
-strict strictnesshow strictly to follow the standards
-deinterlaceインタレースの解除。本来のデータを間引くことになるので使用には注意が必要。
-ildctforce interlaced dct support in encoder (MPEG2/MPEG4)
-ilmeforce interlaced me support in encoder (MPEG2/MPEG4)
-psnrcalculate PSNR of compressed frames
-vstatsエンコード情報をファイルに出力
-vhook moduleinsert video processing module
-aicenable Advanced intra coding (h263+)
-aivenable Alternative inter vlc (h263+)
-umvenable Unlimited Motion Vector (h263+)
-ssmenable Slice Structured mode (h263+)
-altenable alternate scantable (MPEG2/MPEG4)
-qprd
-cbp
-trell格子量子化を有効にする。
変換速度は遅くなるが画像の品質は上がる(同じ品質の場合はファイルサイズが小さくなる)。
-mv0try to encode each MB with MV=<0,0> and choose the better one (has no effect if mbd=0)
-naqnormalize adaptive quantization
-cgopclosed gop
-sgopstrict gop
-nooutskip bitstream encoding
-scan_offsetenable SVCD Scan Offset placeholder
-qpel1/4画素精度(クォーターペル精度)動き補償を有効にする。
変換速度は遅くなるが画像の品質は上がる(同じ品質の場合はファイルサイズが小さくなる)。
-intra_matrix matrixspecify intra matrix coeffs
-inter_matrix matrixspecify inter matrix coeffs
-toptop=1/bottom=0/auto=-1 field first
-nrノイズリダクション(性能は不明)
-qns量子化ノイズ(A/D,D/A変換ノイズ)をシャープに
-sc_threshold thresholdシーンチェンジ検出精度(詳細不明) threshold(スレッショルド)=閾値
-me_range rangelimit motion vectors range (1023 for DivX player)
-dc precisionintra_dc_precision
-codercoder type
-contextcontext model
-predprediction method
-vprofileprofile
-vlevellevel
-nssewweight
-subq
-lowres
-vtag fourcc/tagビデオのfourcc/tag(コーデックなどで決められている4文字の名前みたいなもの)を強制する。中身とタグがちがってると再生できなくなるので通常はいじらないが吉
-skip_threshold thresholdフレームスキップの閾値
-skip_factor factorframe skip factor
-skip_exp exponentframe skip exponent
-skip_cmp compare functionframe skip compare function

オーディオオプション

-aframes number変換するオーディオフレーム数
-ab bitrateオーディオビットレート (in kbit/s)
-ar rateサンプリング周波数 (in Hz)
-ac channelsオーディオチャンネル数
-anオーディオなし
-acodec codecオーディオコーデックを指定 (変換なしのときは'copy')
-vol volumeボリューム調整 (100=通常)

高度なオーディオオプション

-atag fourcc/tagオーディオ部分のfourcc/tagを書き換える。例えば-atag samrとすると中身aacでもamr_nbのタグになり再生機器をごまかせる可能性がある。ほとんどの場合中身とタグが違うと再生できなくなると思う。

オーディオ・ビデオの乗っ取りオプション

-vd deviceset video grab device
-vc channelset video grab channel (DV1394 only)
-tvstd standardset television standard (NTSC, PAL (SECAM))
-ad deviceset audio device
-grab formatrequest grabbing using
-gd deviceset grab device

高度なオプション

-map file:streamset input stream mapping
-map_meta_data outfile:infileset meta data information of outfile from infile
-debugprint specific debug info
-vismvvisualize motion vectors
-benchmarkadd timings for benchmarking
-dumpdump each input packet
-hexwhen dumping packets, also dump the payload
-bitexactonly use bit exact algorithms (for codec testing)
-reread input at native frame rate
-looploop (current only works with images)
-threads countthread count
-vsync intビデオ同期方法(引数:整数。これを使ってるのみたことない)
-async intオーディオ同期方法(引数:整数。1とか1000とかがよく使われる模様)
-copytscopy timestamps
-shortestfinish encoding within shortest input
-ps sizeset packet size in bits
-error rateerror rate
-muxrate rateset mux rate
-packetsize sizeset packet size
-muxdelay secondsset the maximum demux-decode delay
-muxpreload secondsset the initial demux-decode delay
-muxab bitrateset the audio bitrate in mux tag (in kbit/s)
-muxvb bitrateset the video bitrate in mux tag (in kbit/s)

ご意見板



トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS