差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
windows:ffmpeg [2021/06/08 14:17] – ともやん | windows:ffmpeg [2024/06/15 11:18] (現在) – [WebM - AV1] ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
====== ffmpeg - オーディオ/ | ====== ffmpeg - オーディオ/ | ||
- | < | + | <WRAP logo> |
{{windows: | {{windows: | ||
</ | </ | ||
行 14: | 行 14: | ||
</ | </ | ||
- | <WRAP prewrap 100% #result> | + | <WRAP prewrap 100% result> |
< | < | ||
Installing ' | Installing ' | ||
行 29: | 行 29: | ||
===== VP9 & AOMedia Video 1 (AV1) 対応な ffmpeg をインストール ===== | ===== VP9 & AOMedia Video 1 (AV1) 対応な ffmpeg をインストール ===== | ||
+ | <wrap em> | ||
[[wpjp> | [[wpjp> | ||
[[https:// | [[https:// | ||
- | <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: | ||
</ | </ | ||
- | < | + | \\ |
- | <div id=ncolor_result> | + | ちなみに、**checkver.ps1** で最新化することが出来る🤤\\ |
- | <pre> | + | <WRAP prewrap 100%><code powershell> |
- | <b class=HIG> | + | $ ~/ |
- | ffmpeg: 4.4-19 (scoop version is 4.3.2) autoupdate available | + | </code></WRAP> |
- | Autoupdating ffmpeg | + | |
- | Downloading ffmpeg-n4.4-19-g8d172d9409-win64-gpl-4.4.zip to compute hashes! | + | |
- | ffmpeg-n4.4-19-g8d172d9409-win64-gpl-4.4.zip (94.9 MB) [=================> | + | |
- | </pre> | + | |
- | </ | + | |
- | </html> | + | |
+ | <WRAP ncolor_result>< | ||
+ | <b class=HIG> | ||
+ | ffmpeg: <b class=HIR> | ||
+ | <b class=HIB> | ||
+ | <b class=YEL> | ||
+ | ffmpeg-n4.4-19-g8d172d9409-win64-gpl-4.4.zip (94.9 MB) [=================> | ||
+ | </ | ||
+ | ... | ||
+ | <WRAP ncolor_result>< | ||
+ | ffmpeg-n4.4-19-g8d172d9409-win64-gpl-4.4.zip (94.9 MB) [================================================] 100% | ||
+ | <b class=YEL> | ||
+ | <b class=GRN> | ||
+ | </ | ||
- | ちなみに、scoop 標準の ffmpeg だと <wrap em> | + | bucket の json 定義が最新化される🤤\\ |
+ | <WRAP prewrap 100% mincode>< | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | パッケージを更新する😁\\ | ||
+ | <WRAP ncolor_result>< | ||
+ | <b class=HIG> | ||
+ | <b class=HIY> | ||
+ | <b class=HIB> | ||
+ | Updating ' | ||
+ | Downloading new version | ||
+ | Loading ffmpeg-n4.4-19-g8d172d9409-win64-gpl-4.4.zip from cache | ||
+ | Checking hash of <b class=HIC> | ||
+ | Uninstalling ' | ||
+ | Unlinking ~\scoop\apps\ffmpeg\current | ||
+ | Installing ' | ||
+ | Loading ffmpeg-n4.4-19-g8d172d9409-win64-gpl-4.4.zip from cache | ||
+ | Extracting <b class=HIC> | ||
+ | Linking ~\scoop\apps\ffmpeg\current => ~\scoop\apps\ffmpeg\4.4-19 | ||
+ | <b class=GRN>' | ||
+ | </ | ||
+ | |||
+ | ちなみに、以前は | ||
**WebM - VP9**\\ | **WebM - VP9**\\ | ||
- | <WRAP prewrap 100%> | + | <WRAP prewrap 100%>< |
- | < | + | |
$ 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 | ||
- | </ | + | </ |
- | </ | + | < |
- | < | + | |
- | < | + | |
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 | ||
行 114: | 行 168: | ||
[NULL @ 0000028c2c748100] Unable to find a suitable output format for ' | [NULL @ 0000028c2c748100] Unable to find a suitable output format for ' | ||
0: Invalid argument | 0: Invalid argument | ||
- | </ | + | </ |
- | </ | + | |
バージョンアップしたら、ffmpeg.json の url を書き換えます。\\ | バージョンアップしたら、ffmpeg.json の url を書き換えます。\\ | ||
url を書き換えただけだと、ダウンロード時の破損チェック (<wrap em>ERROR Hash check failed!</ | url を書き換えただけだと、ダウンロード時の破損チェック (<wrap em>ERROR Hash check failed!</ | ||
- | <WRAP prewrap 100% #result> | + | <WRAP prewrap 100% result>< |
- | < | + | |
$ scoop install ffmpeg | $ scoop install ffmpeg | ||
Installing ' | Installing ' | ||
行 133: | 行 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:// | https:// | ||
- | </ | + | </ |
- | </ | + | |
===== ffmpeg によるエンコード ===== | ===== ffmpeg によるエンコード ===== | ||
==== WebM - VP9 ==== | ==== WebM - VP9 ==== | ||
- | < | + | < |
- | < | + | <WRAP color_command> |
$ 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 | ||
- | </ | + | </ |
- | </ | + | <WRAP color_result><html>< |
- | <html> | + | |
- | <div id=" | + | |
- | <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 | ||
built with gcc 9.3-win32 (GCC) 20200320 | built with gcc 9.3-win32 (GCC) 20200320 | ||
行 178: | 行 226: | ||
frame= 2230 fps=2.9 q=0.0 Lsize= | frame= 2230 fps=2.9 q=0.0 Lsize= | ||
video: | video: | ||
- | </ | + | </ |
- | </div> | + | </WRAP> |
- | </html> | + | |
==== mp4 - H.264 ==== | ==== mp4 - H.264 ==== | ||
- | < | + | < |
**mp4**\\ | **mp4**\\ | ||
- | < | + | <WRAP color_command> |
$ ffmpeg -i ElectricSheep_test001.gif -b:v 0 -crf 25 -f mp4 -vcodec libx264 -pix_fmt yuv420p ElectricSheep_test001.mp4 | $ ffmpeg -i ElectricSheep_test001.gif -b:v 0 -crf 25 -f mp4 -vcodec libx264 -pix_fmt yuv420p ElectricSheep_test001.mp4 | ||
- | </ | + | </code></ |
**mp4 (トリミングフィルター)**\\ | **mp4 (トリミングフィルター)**\\ | ||
- | < | + | <WRAP color_command> |
$ ffmpeg -i ElectricSheep_test001.gif -vf " | $ ffmpeg -i ElectricSheep_test001.gif -vf " | ||
- | </ | + | </ |
- | </ | + | <WRAP color_result_long><html>< |
- | <html> | + | |
- | <div id=" | + | |
- | <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 | ||
built with gcc 9.3-win32 (GCC) 20200320 | built with gcc 9.3-win32 (GCC) 20200320 | ||
行 638: | 行 682: | ||
<b class=CYN> | <b class=CYN> | ||
<b class=CYN> | <b class=CYN> | ||
- | </ | + | </ |
- | </div> | + | </WRAP> |
- | </html> | + | |
==== WebM - AV1 ==== | ==== WebM - AV1 ==== | ||
- | < | + | < |
- | < | + | <WRAP color_command> |
$ ffmpeg -i ElectricSheep_test001.gif -c av1 -b:v 0 -crf 41 ElectricSheep_test001-av1.webm | $ ffmpeg -i ElectricSheep_test001.gif -c av1 -b:v 0 -crf 41 ElectricSheep_test001-av1.webm | ||
- | </ | + | </ |
- | </ | + | <WRAP color_result? |
- | <html> | + | |
- | <div id=" | + | |
- | <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 | ||
built with gcc 9.3-win32 (GCC) 20200320 | built with gcc 9.3-win32 (GCC) 20200320 | ||
行 682: | 行 722: | ||
frame= 2230 fps=0.0 q=0.0 Lsize= | frame= 2230 fps=0.0 q=0.0 Lsize= | ||
video: | video: | ||
- | </ | + | </ |
- | </div> | + | </WRAP> |
- | </html> | + | |
==== 圧縮率 ==== | ==== 圧縮率 ==== | ||
行 692: | 行 731: | ||
</ | </ | ||
</ | </ | ||
- | <WRAP prewrap 100% #result> | + | <WRAP prewrap 100% result> |
<code powershell> | <code powershell> | ||
行 715: | 行 754: | ||
</ | </ | ||
</ | </ | ||
- | <WRAP prewrap 100% #result> | + | <WRAP prewrap 100% result> |
< | < | ||
Installing ' | Installing ' | ||
行 725: | 行 764: | ||
[[https:// | [[https:// | ||
[[https:// | [[https:// | ||
- | <WRAP prewrap 100% #mincode> | + | <WRAP prewrap 100% mincode> |
< | < | ||
http:// | http:// | ||
行 746: | 行 785: | ||
そのため、正規の配布パッケージを異なるファイルをキャッシュに格納しても、破損しているものと判断されて削除してしまいます。\\ | そのため、正規の配布パッケージを異なるファイルをキャッシュに格納しても、破損しているものと判断されて削除してしまいます。\\ | ||
ちなみに、ハッシュチェックが通らない場合は以下のようなエラーとなります。\\ | ちなみに、ハッシュチェックが通らない場合は以下のようなエラーとなります。\\ | ||
- | <WRAP prewrap 100% #result> | + | <WRAP prewrap 100% result> |
< | < | ||
Installing ' | Installing ' | ||
行 773: | 行 812: | ||
**※compute_hash 関数の使用方法は compute_hash [ファイル名] [アルゴリズム] です。**\\ | **※compute_hash 関数の使用方法は compute_hash [ファイル名] [アルゴリズム] です。**\\ | ||
- | <WRAP prewrap 100% #result> | + | <WRAP prewrap 100% result> |
< | < | ||
aad816cd86d29f43f25d64094a4b5c23b47d28e9f5bb93720b0368bf331737c6 | aad816cd86d29f43f25d64094a4b5c23b47d28e9f5bb93720b0368bf331737c6 | ||
行 781: | 行 820: | ||
そして、< | そして、< | ||
**architecture -> 64bit -> hash** の既存定義をコメントアウトして、再計算したハッシュ値で定義し直す。\\ | **architecture -> 64bit -> hash** の既存定義をコメントアウトして、再計算したハッシュ値で定義し直す。\\ | ||
- | <WRAP prewrap 100% #mincode> | + | <WRAP prewrap 100% mincode> |
<code javascript> | <code javascript> | ||
{ | { | ||
行 833: | 行 872: | ||
</ | </ | ||
</ | </ | ||
- | <WRAP prewrap 100% #result> | + | <WRAP prewrap 100% result> |
<code powershell> | <code powershell> | ||
Uninstalling ' | Uninstalling ' | ||
行 845: | 行 884: | ||
</ | </ | ||
</ | </ | ||
- | <WRAP prewrap 100% #result> | + | <WRAP prewrap 100% result> |
<code powershell> | <code powershell> | ||
Installing ' | Installing ' | ||
行 864: | 行 903: | ||
[[https:// | [[https:// | ||
[[https:// | [[https:// | ||
+ | [[qita> | ||
+ | [[https:// | ||
+ | [[qita> | ||
+ | [[qita> | ||