windows:ffmpeg

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
windows:ffmpeg [2021/06/05 05:06] – [mp4 - H.264] ともやんwindows:ffmpeg [2023/04/15 23:06] (現在) – [VP9 & AOMedia Video 1 (AV1) 対応な ffmpeg をインストール] ともやん
行 1: 行 1:
 ====== ffmpeg - オーディオ/ビデオ 記録・変換・再生 コマンド ====== ====== ffmpeg - オーディオ/ビデオ 記録・変換・再生 コマンド ======
-<WRAP #logo>+<WRAP logo>
 {{windows:ffmpeg_logo_new.svg?370|ffmpeg Logo}} {{windows:ffmpeg_logo_new.svg?370|ffmpeg Logo}}
 </WRAP> </WRAP>
行 14: 行 14:
 </code> </code>
  
-<WRAP prewrap 100% #result>+<WRAP prewrap 100% result>
 <code> <code>
 Installing 'ffmpeg' (4.2.2) [64bit] Installing 'ffmpeg' (4.2.2) [64bit]
行 29: 行 29:
  
 ===== VP9 & AOMedia Video 1 (AV1) 対応な ffmpeg をインストール ===== ===== VP9 & AOMedia Video 1 (AV1) 対応な ffmpeg をインストール =====
 +<wrap em>※現在は既に scoop の main bucket も [[git>BtbN/FFmpeg-Builds|BtbN/FFmpeg-Builds]] に向いているので、自分で bucket の json を書き換える必要はなくなりました🤤</wrap>\\
 [[wpjp>VP9|VP9 - Wikipedia]]\\ [[wpjp>VP9|VP9 - Wikipedia]]\\
 [[https://github.com/BtbN/FFmpeg-Builds/releases/|]] より ffmpeg をインストールする。\\ [[https://github.com/BtbN/FFmpeg-Builds/releases/|]] より ffmpeg をインストールする。\\
  
-<WRAP prewrap 100% #mincode>+<WRAP prewrap 100% mincode>
 <code javascript ~\scoop\buckets\main\bucket\ffmpeg.json> <code javascript ~\scoop\buckets\main\bucket\ffmpeg.json>
 { {
行 74: 行 75:
 </WRAP> </WRAP>
  
-ちなみに、scoop 標準の ffmpeg だと <wrap em>Invalid argument</wrap> になりました😅\\+\\ 
 +ちなみに、**checkver.ps1** で最新化することが出来る🤤\\ 
 +<WRAP prewrap 100%><code powershell> 
 +$ ~/scoop/apps/scoop/current/bin/checkver.ps1 <pkg name> -u -Dir <bucket dir> 
 +</code></WRAP> 
 + 
 +<WRAP ncolor_result><html><pre> 
 +<b class=HIG>$</b> <b class=HIY>~/scoop/apps/scoop/current/bin/checkver.ps1</b> ffmpeg <b class=WHI>-u -Dir</b> ~/scoop/buckets/main/bucket 
 +ffmpeg: <b class=HIR>4.4-19</b> (scoop version is 4.3.2) <b class=HIC>autoupdate available</b> 
 +<b class=HIB>Autoupdating ffmpeg</b> 
 +<b class=YEL>Downloading</b> <b class=HIG>ffmpeg-n4.4-19-g8d172d9409-win64-gpl-4.4.zip</b> <b class=YEL>to compute hashes!</b> 
 +ffmpeg-n4.4-19-g8d172d9409-win64-gpl-4.4.zip (94.9 MB) [=================>                              ]  34% 
 +</pre></html></WRAP> 
 +... 
 +<WRAP ncolor_result><html><pre> 
 +ffmpeg-n4.4-19-g8d172d9409-win64-gpl-4.4.zip (94.9 MB) [================================================] 100% 
 +<b class=YEL>Computed hash:</b> <b class=HIG>ba5e6a3a29ee90c90a573a39f536f64d48e31eacce3e5b6a31ce96079ef65ac7</b> 
 +<b class=GRN>Writing updated ffmpeg manifest</b> 
 +</pre></html></WRAP> 
 + 
 +bucket の json 定義が最新化される🤤\\ 
 +<WRAP prewrap 100% mincode><code javascript ~\scoop\buckets\main\bucket\ffmpeg.json> 
 +
 +    "version": "4.4-19", 
 +    "description": "A complete, cross-platform solution to record, convert and stream audio and video.", 
 +    "homepage": "https://ffmpeg.org", 
 +    "license": "GPL-3.0-or-later", 
 +    "architecture":
 +        "64bit":
 +            "url": "https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2021-06-07-13-12/ffmpeg-n4.4-19-g8d172d9409-win64-gpl-4.4.zip", 
 +            "hash": "ba5e6a3a29ee90c90a573a39f536f64d48e31eacce3e5b6a31ce96079ef65ac7", 
 +            "extract_dir": "ffmpeg-n4.4-19-g8d172d9409-win64-gpl-4.4" 
 +        } 
 +    }, 
 +    "env_add_path": "bin", 
 +    "checkver":
 +        "github": "https://github.com/BtbN/FFmpeg-Builds", 
 +        "regex": "/autobuild-(?<time>[\\d-]+)/ffmpeg-n(?<version>[\\d.]+)-(?<commit>\\d+)-g(?<hash>[a-z\\d]+)-win64-gpl-[\\d.]+\\.zip", 
 +        "replace": "${version}-${commit}" 
 +    }, 
 +    "autoupdate":
 +        "architecture":
 +            "64bit":
 +                "url": "https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-$matchTime/ffmpeg-n$version-g$matchHash-win64-gpl-$majorVersion.$minorVersion.zip", 
 +                "extract_dir": "ffmpeg-n$version-g$matchHash-win64-gpl-$majorVersion.$minorVersion" 
 +            } 
 +        } 
 +    } 
 +
 +</code></WRAP> 
 + 
 +パッケージを更新する😁\\ 
 +<WRAP ncolor_result><html><pre> 
 +<b class=HIG>$</b> <b class=HIY>scoop</b> update ffmpeg 
 +<b class=HIY>ffmpeg: 4.3.2 -> 4.4-19</b> 
 +<b class=HIB>Updating one outdated app:</b> 
 +Updating 'ffmpeg' (4.3.2 -> 4.4-19) 
 +Downloading new version 
 +Loading ffmpeg-n4.4-19-g8d172d9409-win64-gpl-4.4.zip from cache 
 +Checking hash of <b class=HIC>ffmpeg-n4.4-19-g8d172d9409-win64-gpl-4.4.zip</b> ... <b class=HIG>ok.</b> 
 +Uninstalling 'ffmpeg' (4.3.2) 
 +Unlinking ~\scoop\apps\ffmpeg\current 
 +Installing 'ffmpeg' (4.4-19) [64bit] 
 +Loading ffmpeg-n4.4-19-g8d172d9409-win64-gpl-4.4.zip from cache 
 +Extracting <b class=HIC>ffmpeg-n4.4-19-g8d172d9409-win64-gpl-4.4.zip</b> ... <b class=HIG>done.</b> 
 +Linking ~\scoop\apps\ffmpeg\current => ~\scoop\apps\ffmpeg\4.4-19 
 +<b class=GRN>'ffmpeg' (4.4-19) was installed successfully!</b> 
 +</pre></html></WRAP> 
 + 
 +ちなみに、以前は scoop 標準の ffmpeg だと <wrap em>Invalid argument</wrap> になりました😅\\
 **WebM - VP9**\\ **WebM - VP9**\\
-<WRAP prewrap 100%> +<WRAP prewrap 100%><code>
-<code>+
 $ ffmpeg -i ElectricSheep_test001.gif -c vp9 -b:v 0 -crf 41 ElectricSheep_test001.webm $ ffmpeg -i ElectricSheep_test001.gif -c vp9 -b:v 0 -crf 41 ElectricSheep_test001.webm
-</code> +</code></WRAP> 
-</WRAP> +<WRAP prewrap 100% result_long><code>
-<WRAP prewrap 100% #result_long> +
-<code>+
 ffmpeg version n4.3.1-221-gd08bcbffff Copyright (c) 2000-2021 the FFmpeg developers ffmpeg version n4.3.1-221-gd08bcbffff Copyright (c) 2000-2021 the FFmpeg developers
   built with gcc 9.3-win32 (GCC) 20200320   built with gcc 9.3-win32 (GCC) 20200320
行 101: 行 168:
 [NULL @ 0000028c2c748100] Unable to find a suitable output format for '0' [NULL @ 0000028c2c748100] Unable to find a suitable output format for '0'
 0: Invalid argument 0: Invalid argument
-</code> +</code></WRAP>
-</WRAP>+
  
 バージョンアップしたら、ffmpeg.json の url を書き換えます。\\ バージョンアップしたら、ffmpeg.json の url を書き換えます。\\
 url を書き換えただけだと、ダウンロード時の破損チェック (<wrap em>ERROR Hash check failed!</wrap>) に引っかかるので、その場合は json の hash を **Actual:** の内容に書き換えます。\\ url を書き換えただけだと、ダウンロード時の破損チェック (<wrap em>ERROR Hash check failed!</wrap>) に引っかかるので、その場合は json の hash を **Actual:** の内容に書き換えます。\\
-<WRAP prewrap 100% #result> +<WRAP prewrap 100% result><code>
-<code>+
 $ scoop install ffmpeg $ scoop install ffmpeg
 Installing 'ffmpeg' (4.3.2) [64bit] Installing 'ffmpeg' (4.3.2) [64bit]
行 120: 行 185:
 Please try again or create a new issue by using the following link and paste your console output: Please try again or create a new issue by using the following link and paste your console output:
 https://github.com/ScoopInstaller/Main/issues/new?title=ffmpeg%404.3.2%3a+hash+check+failed https://github.com/ScoopInstaller/Main/issues/new?title=ffmpeg%404.3.2%3a+hash+check+failed
-</code> +</code></WRAP>
-</WRAP>+
  
 ===== ffmpeg によるエンコード ===== ===== ffmpeg によるエンコード =====
行 132: 行 196:
 </WRAP> </WRAP>
 <html> <html>
-<div id="ncolor_result">+<div class="ncolor_result">
 <pre> <pre>
 ffmpeg version n4.3.2 Copyright (c) 2000-2021 the FFmpeg developers ffmpeg version n4.3.2 Copyright (c) 2000-2021 the FFmpeg developers
行 181: 行 245:
 </WRAP> </WRAP>
 <html> <html>
-<div id="ncolor_result_long">+<div class="ncolor_result_long">
 <pre> <pre>
 ffmpeg version n4.3.2 Copyright (c) 2000-2021 the FFmpeg developers ffmpeg version n4.3.2 Copyright (c) 2000-2021 the FFmpeg developers
行 636: 行 700:
 </WRAP> </WRAP>
 <html> <html>
-<div id="ncolor_result_long">+<div class="ncolor_result_long">
 <pre> <pre>
 ffmpeg version n4.3.2 Copyright (c) 2000-2021 the FFmpeg developers ffmpeg version n4.3.2 Copyright (c) 2000-2021 the FFmpeg developers
行 679: 行 743:
 </code> </code>
 </WRAP> </WRAP>
-<WRAP prewrap 100% #result>+<WRAP prewrap 100% result>
 <code powershell> <code powershell>
  
行 702: 行 766:
 </code> </code>
 </WRAP> </WRAP>
-<WRAP prewrap 100% #result>+<WRAP prewrap 100% result>
 <code> <code>
 Installing 'ffmpeg' (4.3.1) [64bit] Installing 'ffmpeg' (4.3.1) [64bit]
行 712: 行 776:
 [[https://nico-lab.net/zeranoe_close|Zeranoe ffmpeg、9月18日に閉鎖へ | ニコラボ]]\\ [[https://nico-lab.net/zeranoe_close|Zeranoe ffmpeg、9月18日に閉鎖へ | ニコラボ]]\\
 [[https://twitter.com/Zeranoe/status/1300596971934224385|@Zeranoe / Twitter]]\\ [[https://twitter.com/Zeranoe/status/1300596971934224385|@Zeranoe / Twitter]]\\
-<WRAP prewrap 100% #mincode>+<WRAP prewrap 100% mincode>
 <code> <code>
 http://ffmpeg.zeranoe.com will close on Sep 18, 2020, and all builds will be removed. If you're using Zeranoe @FFmpeg Builds in your product, please ensure that you have a hosting strategy in place by the 18th. Thank you to everyone who supported the project along the way! http://ffmpeg.zeranoe.com will close on Sep 18, 2020, and all builds will be removed. If you're using Zeranoe @FFmpeg Builds in your product, please ensure that you have a hosting strategy in place by the 18th. Thank you to everyone who supported the project along the way!
行 733: 行 797:
 そのため、正規の配布パッケージを異なるファイルをキャッシュに格納しても、破損しているものと判断されて削除してしまいます。\\ そのため、正規の配布パッケージを異なるファイルをキャッシュに格納しても、破損しているものと判断されて削除してしまいます。\\
 ちなみに、ハッシュチェックが通らない場合は以下のようなエラーとなります。\\ ちなみに、ハッシュチェックが通らない場合は以下のようなエラーとなります。\\
-<WRAP prewrap 100% #result>+<WRAP prewrap 100% result>
 <code> <code>
 Installing 'ffmpeg' (4.3.1) [64bit] Installing 'ffmpeg' (4.3.1) [64bit]
行 760: 行 824:
 **※compute_hash 関数の使用方法は compute_hash [ファイル名] [アルゴリズム] です。**\\ **※compute_hash 関数の使用方法は compute_hash [ファイル名] [アルゴリズム] です。**\\
  
-<WRAP prewrap 100% #result>+<WRAP prewrap 100% result>
 <code> <code>
 aad816cd86d29f43f25d64094a4b5c23b47d28e9f5bb93720b0368bf331737c6 aad816cd86d29f43f25d64094a4b5c23b47d28e9f5bb93720b0368bf331737c6
行 768: 行 832:
 そして、<html><code>~\scoop\buckets\main\bucket\ffmpeg.json</code></html>の **sha256** ハッシュ値を修正する。\\ そして、<html><code>~\scoop\buckets\main\bucket\ffmpeg.json</code></html>の **sha256** ハッシュ値を修正する。\\
 **architecture -> 64bit -> hash** の既存定義をコメントアウトして、再計算したハッシュ値で定義し直す。\\ **architecture -> 64bit -> hash** の既存定義をコメントアウトして、再計算したハッシュ値で定義し直す。\\
-<WRAP prewrap 100% #mincode>+<WRAP prewrap 100% mincode>
 <code javascript> <code javascript>
 { {
行 820: 行 884:
 </code> </code>
 </WRAP> </WRAP>
-<WRAP prewrap 100% #result>+<WRAP prewrap 100% result>
 <code powershell> <code powershell>
 Uninstalling 'ffmpeg' (4.3.1). Uninstalling 'ffmpeg' (4.3.1).
行 832: 行 896:
 </code> </code>
 </WRAP> </WRAP>
-<WRAP prewrap 100% #result>+<WRAP prewrap 100% result>
 <code powershell> <code powershell>
 Installing 'ffmpeg' (4.3.1) [64bit] Installing 'ffmpeg' (4.3.1) [64bit]
行 851: 行 915:
 [[https://qiita.com/scleen_x_x/items/d72fdfba30b64c938af4|おさえておきたいffmpeg高速化のまとめ:CPU使用率100%、Load Averageがぁあぁぁぁというときに ヽ(゚ー゚*ヽ)(ノ*゚ー゚)ノわぁい - Qiita]]\\ [[https://qiita.com/scleen_x_x/items/d72fdfba30b64c938af4|おさえておきたいffmpeg高速化のまとめ:CPU使用率100%、Load Averageがぁあぁぁぁというときに ヽ(゚ー゚*ヽ)(ノ*゚ー゚)ノわぁい - Qiita]]\\
 [[https://yuelab82.hatenablog.com/entry/ffmpeg_av1|ffmpeg4.0のAV1使ってみた - exits]]\\ [[https://yuelab82.hatenablog.com/entry/ffmpeg_av1|ffmpeg4.0のAV1使ってみた - exits]]\\
 +[[qita>Dooteeen/items/c55223c26a42776f7101|Scoopを使ったWindows環境構築のススメ - Hyper!!! - Qiita]]\\
 +[[https://www.digital-den.jp/simplelife/archives/3755|QSV対応ffmpegでエンコードー最適パラメータ設定 – Simple Life in the digital age]]\\
 +[[qita>CyberRex/items/960bbd0f348ad8dca544|FFmpegでよく使う例、コーデックをまとめてみた(2021年版) - Qiita]]\\
 +[[qita>7shi/items/407ad24a5d9ad89be2e5|なるべく小さい音声ファイルを作る - Qiita]]\\
  
  • windows/ffmpeg.1622837183.txt.gz
  • 最終更新: 2021/06/05 05:06
  • by ともやん