忍者ブログ
  • 2024.08
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 2024.10
[PR]
×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

【2024/09/09 05:15 】 |
FFmpegのオプション
お久しぶりです。誰も見てないけど。
CentOSのインストールで苦戦してたの懐かしい。
ちなみにCentOSはぶっ飛びましたw 現在はSlackwareが入ってます。

で、本題ですが、これまでの流れはまったく関係ありません。
FFmpegのオプションをメモします。具体的には、
"C:\Program Files\FFmpeg\bin\ffmpeg.exe" -h full
とコマンドを打って表示されるヘルプを中途半端に訳す。
見たい人は続きを見てください。誰も見てないけど。
1/10追記
http://ffmpeg.org/documentation.html
こんなページがあった。
ffmpeg version N-48459-g498e1c6
built on Jan  4 2013 17:28:27 with gcc 4.7.2 (GCC)


Print help / information / capabilities:
以下、このソフトのヘルプ/情報/性能を表示するオプション:

-L             show license
-h topic       show help
-? topic       show help
-help topic    show help
--help topic   show help
-version       show version

-formats       show available formats  使用可能なファイル形式を調べる
-codecs        show available codecs   〃    コーデック 〃
-decoders      show available decoders 〃    エンコーダ 〃
-encoders      show available encoders 〃    デコーダ  〃

-bsfs          show available bit stream filters はい質問!ビットストリームって何ですか?

-protocols     show available protocols            転送方式(TCPとかHTTPとか)
-filters       show available filters              転送データにかけるフィルタ?
-pix_fmts      show available pixel formats        映像の画素の形式(RGBとか)
-layouts       show standard channel layouts       音声の個数(5.1chなど)
-sample_fmts   show available audio sample formats 音声の形式?(8ビット符号なしとか)


Global options (affect whole program instead of just one file:
グローバルオプション(ひとつのファイルだけでなくプログラム全体に作用します:

-loglevel loglevel  set libav* logging level livavcodecなどを使うときに残すログを設定?
-v loglevel         set libav* logging level 〃
-report             generate a report     入力ファイルの情報などを表示

-max_alloc bytes    set maximum size of a single allocated block メモリ使用するときに、ひとかたまりの最大サイズを指定

-y    overwrite output files        生成ファイル名が同じ場合に上書きする
-n    do not overwrite output files 〃               しない

-stats    print progress report during encoding 圧縮処理の進行状況を表示

-bits_per_raw_sample number    set the number of bits per raw sample 謎(ぇ

-vol volume    change audio volume (256=normal) 音量を調整する。使用は推奨されてないみたいな?代わりに音量に関するフィルタがあるらしい。


Advanced global options:
-benchmark        add timings for benchmarking エンコード終了時にCPUの実行時間やメモリ消費などを表示
-benchmark_all    add timings for each task    こちらはエンコード中にもいろいろ表示する
-progress url     write program-readable progress information 処理の状況を指定したファイルなどに書き込む

-stdin    enable or disable interaction on standard input 標準入力を有効にする?明示的に無効にする場合は-nostdinを使う。

-timelimit limit    set max runtime in seconds 設定した時間が過ぎたら終了する

-dump    dump each input packet データのやり取りの状況などを記録する
-hex     when dumping packets, also dump the payload やり取りしていたデータ自体を記録する

-vsync    video sync method 映像の動機を取るとか?パラメータの指定が必要?
-async    audio sync method 音声〃
-adrift_threshold threshold    audio drift threshold 音声が飛ぶときの閾値?

-copyts    copy timestamps
処理の発生した時間をコピーする
-copytb mode    copy input stream time base when stream copying
処理の基準とする時間軸を指定する?
-dts_delta_threshold threshold    timestamp discontinuity delta threshold
処理の切れ目の閾値?
-dts_error_threshold threshold    timestamp error delta threshold
処理をエラーとする閾値?

-xerror error    exit on error  指定したエラーが起きたら処理を終了

-filter_complex graph_description  create a complex filtergraph
複数のフィルタを使う?
-debug_ts    print timestamp debugging info
デバッグ情報も含めて処理の発生した時間を表示する

-intra    deprecated use -g 1  -g 1の使用を無視する
-vdt n    discard threshold  閾値を無視する
-psnr    calculate PSNR of compressed frames
フレームの圧縮前後での質とノイズの比を計算する

-vstats              dump video coding statistics to file
動画圧縮の際にvstats_作成時刻.logというファイル名で統計情報を記録する
-vstats_file file    dump video coding statistics to file
動画圧縮の際に指定したファイル名で統計情報を記録する

-dc precision    intra_dc_precision  DC予測の指定?
-qphist    show QP histogram  各フレームの?圧縮状況のヒストグラムを表示


Per-file main options:
ファイルごとに必要となる主なオプション

-f fmt    force format  ファイルフォーマットを強制する

-c codec      codec name
-codec codec  codec name
コーデックを指定する(例えば -c:v libx264 など)

-pre preset    preset name  プリセットを指定する
-map_metadata outfile[,metadata]:infile[,metadata]  set metadata information of outfile from infile
入力ファイルのメタデータを出力ファイルに設定する?

-t duration    record or transcode "duration" seconds of audio/video
再生時間を指定した長さに制限する
-fs limit_size      set the limit file size in bytes
ファイルサイズを指定した大きさに制限する

-ss time_off    set the start time offset
入力ファイルに指定した場合、指定した時間までシークしてからエンコードする?
出力ファイルに指定した場合、デコードしながら指定した時間までシークする?

-timestamp time    set the recording timestamp ('now' to set the current time)
エンコードした時間を指定し出力ファイルに記録する

-metadata string=string  add metadata
メタデータを追加する

-target type    specify target file type ("vcd", "svcd", "dvd", "dv", "dv50", "pal-vcd", "ntsc-svcd", ...)
CDやDVDなどの対象となる記憶媒体を指定する
-frames number    set the number of frames to record
フレーム数を指定した枚数に制限する

-filter filter_list    set stream filterchain  フィルターを設定する
-reinit_filter    reinit filtergraph on input parameter changes
入力が変化した場合にフィルターを再度初期化する


ちょっとずつ書き足していけば良いと思う。人間だもの。


Advanced per-file options:
-map [-]input_file_id[:stream_specifier][,sync_file_id[:stream_s  set input stream mapping
-map_channel file.stream.channel[:syncfile.syncstream]  map an audio channel from one stream to another
-map_chapters input_file_index  set chapters mapping
-itsoffset time_off  set the input ts offset
-itsscale scale     set the input ts scale
-dframes number     set the number of data frames to record
-re                 read input at native frame rate
-shortest           finish encoding within shortest input
-copyinkf           copy initial non-keyframes
-copypriorss        copy or discard frames before start time
-tag fourcc/tag     force codec tag/fourcc
-q q                use fixed quality scale (VBR)
-qscale q           use fixed quality scale (VBR)
-profile profile    set profile
-attach filename    add an attachment to the output file
-dump_attachment filename  extract an attachment into a file
-muxdelay seconds   set the maximum demux-decode delay
-muxpreload seconds  set the initial demux-decode delay
-bsf bitstream_filters  A comma-separated list of bitstream filters
-fpre filename      set options from indicated preset file
-dcodec codec       force data codec ('copy' to copy stream)

Video options:
-vframes number     set the number of video frames to record
-r rate             set frame rate (Hz value, fraction or abbreviation)
-s size             set frame size (WxH or abbreviation)
-aspect aspect      set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)
-bits_per_raw_sample number  set the number of bits per raw sample
-vn                 disable video
-vcodec codec       force video codec ('copy' to copy stream)
-timecode hh:mm:ss[:;.]ff  set initial TimeCode value.
-pass n             select the pass number (1 to 3)
-vf filter list     video filters
-b bitrate          video bitrate (please use -b:v)
-dn                 disable data

Advanced Video options:
-pix_fmt format     set pixel format
-intra              deprecated use -g 1
-vdt n              discard threshold
-rc_override override  rate control override for specific intervals
-passlogfile prefix  select two pass log file name prefix
-deinterlace        this option is deprecated, use the yadif filter instead
-psnr               calculate PSNR of compressed frames
-vstats             dump video coding statistics to file
-vstats_file file   dump video coding statistics to file
-intra_matrix matrix  specify intra matrix coeffs
-inter_matrix matrix  specify inter matrix coeffs
-top                top=1/bottom=0/auto=-1 field first
-dc precision       intra_dc_precision
-vtag fourcc/tag    force video tag/fourcc
-qphist             show QP histogram
-force_fps          force the selected framerate, disable the best supported framerate selection
-streamid streamIndex:value  set the value of an outfile streamid
-force_key_frames timestamps  force key frames at specified timestamps
-vpre preset        set the video options to the indicated preset

Audio options:
-aframes number     set the number of audio frames to record
-aq quality         set audio quality (codec-specific)
-ar rate            set audio sampling rate (in Hz)
-ac channels        set number of audio channels
-an                 disable audio
-acodec codec       force audio codec ('copy' to copy stream)
-vol volume         change audio volume (256=normal)
-af filter list     audio filters

Advanced Audio options:
-atag fourcc/tag    force audio tag/fourcc
-sample_fmt format  set sample format
-channel_layout layout  set channel layout
-absf audio bitstream_filters  deprecated
-apre preset        set the audio options to the indicated preset

Subtitle options:
-s size             set frame size (WxH or abbreviation)
-sn                 disable subtitle
-scodec codec       force subtitle codec ('copy' to copy stream)
-stag fourcc/tag    force subtitle tag/fourcc
-fix_sub_duration   fix subtitles duration
-spre preset        set the subtitle options to the indicated preset


PR
【2013/01/07 02:32 】 | FFmpeg | 有り難いご意見(0)
<<C++習得してみようかな | ホーム | 無題>>
有り難いご意見
貴重なご意見の投稿














<<前ページ | ホーム | 次ページ>>