差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
windows:ffmpeg [2021/06/20 12:53] – ともやん | 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 ' | ||
行 33: | 行 33: | ||
[[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> | ||
{ | { | ||
行 77: | 行 77: | ||
\\ | \\ | ||
ちなみに、**checkver.ps1** で最新化することが出来る🤤\\ | ちなみに、**checkver.ps1** で最新化することが出来る🤤\\ | ||
- | <WRAP prewrap 100%> | + | <WRAP prewrap 100%>< |
- | <code powershell> | + | |
$ ~/ | $ ~/ | ||
- | </ | + | </ |
- | </ | + | |
- | < | + | <WRAP ncolor_result> |
- | <div id=ncolor_result> | + | |
- | <pre> | + | |
<b class=HIG> | <b class=HIG> | ||
ffmpeg: <b class=HIR> | ffmpeg: <b class=HIR> | ||
行 90: | 行 87: | ||
<b class=YEL> | <b class=YEL> | ||
ffmpeg-n4.4-19-g8d172d9409-win64-gpl-4.4.zip (94.9 MB) [=================> | ffmpeg-n4.4-19-g8d172d9409-win64-gpl-4.4.zip (94.9 MB) [=================> | ||
- | </ | + | </pre></ |
... | ... | ||
- | <pre> | + | <WRAP ncolor_result>< |
ffmpeg-n4.4-19-g8d172d9409-win64-gpl-4.4.zip (94.9 MB) [================================================] 100% | ffmpeg-n4.4-19-g8d172d9409-win64-gpl-4.4.zip (94.9 MB) [================================================] 100% | ||
<b class=YEL> | <b class=YEL> | ||
<b class=GRN> | <b class=GRN> | ||
- | </ | + | </ |
- | </div> | + | |
- | </html> | + | |
bucket の json 定義が最新化される🤤\\ | bucket の json 定義が最新化される🤤\\ | ||
- | <WRAP prewrap 100% #mincode> | + | <WRAP prewrap 100% mincode>< |
- | <code javascript ~\scoop\buckets\main\bucket\ffmpeg.json> | + | |
{ | { | ||
" | " | ||
行 130: | 行 124: | ||
} | } | ||
} | } | ||
- | </ | + | </ |
- | </ | + | |
パッケージを更新する😁\\ | パッケージを更新する😁\\ | ||
- | <html> | + | <WRAP ncolor_result><html>< |
- | <div id=ncolor_result> | + | |
- | <pre> | + | |
<b class=HIG> | <b class=HIG> | ||
<b class=HIY> | <b class=HIY> | ||
行 151: | 行 142: | ||
Linking ~\scoop\apps\ffmpeg\current => ~\scoop\apps\ffmpeg\4.4-19 | Linking ~\scoop\apps\ffmpeg\current => ~\scoop\apps\ffmpeg\4.4-19 | ||
<b class=GRN>' | <b class=GRN>' | ||
- | </ | + | </ |
- | </div> | + | |
- | </html> | + | |
ちなみに、以前は scoop 標準の ffmpeg だと <wrap em> | ちなみに、以前は scoop 標準の ffmpeg だと <wrap em> | ||
**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 | ||
行 182: | 行 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 ' | ||
行 201: | 行 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 | ||
行 246: | 行 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 | ||
行 706: | 行 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 | ||
行 750: | 行 722: | ||
frame= 2230 fps=0.0 q=0.0 Lsize= | frame= 2230 fps=0.0 q=0.0 Lsize= | ||
video: | video: | ||
- | </ | + | </ |
- | </div> | + | </WRAP> |
- | </html> | + | |
==== 圧縮率 ==== | ==== 圧縮率 ==== | ||
行 760: | 行 731: | ||
</ | </ | ||
</ | </ | ||
- | <WRAP prewrap 100% #result> | + | <WRAP prewrap 100% result> |
<code powershell> | <code powershell> | ||
行 783: | 行 754: | ||
</ | </ | ||
</ | </ | ||
- | <WRAP prewrap 100% #result> | + | <WRAP prewrap 100% result> |
< | < | ||
Installing ' | Installing ' | ||
行 793: | 行 764: | ||
[[https:// | [[https:// | ||
[[https:// | [[https:// | ||
- | <WRAP prewrap 100% #mincode> | + | <WRAP prewrap 100% mincode> |
< | < | ||
http:// | http:// | ||
行 814: | 行 785: | ||
そのため、正規の配布パッケージを異なるファイルをキャッシュに格納しても、破損しているものと判断されて削除してしまいます。\\ | そのため、正規の配布パッケージを異なるファイルをキャッシュに格納しても、破損しているものと判断されて削除してしまいます。\\ | ||
ちなみに、ハッシュチェックが通らない場合は以下のようなエラーとなります。\\ | ちなみに、ハッシュチェックが通らない場合は以下のようなエラーとなります。\\ | ||
- | <WRAP prewrap 100% #result> | + | <WRAP prewrap 100% result> |
< | < | ||
Installing ' | Installing ' | ||
行 841: | 行 812: | ||
**※compute_hash 関数の使用方法は compute_hash [ファイル名] [アルゴリズム] です。**\\ | **※compute_hash 関数の使用方法は compute_hash [ファイル名] [アルゴリズム] です。**\\ | ||
- | <WRAP prewrap 100% #result> | + | <WRAP prewrap 100% result> |
< | < | ||
aad816cd86d29f43f25d64094a4b5c23b47d28e9f5bb93720b0368bf331737c6 | aad816cd86d29f43f25d64094a4b5c23b47d28e9f5bb93720b0368bf331737c6 | ||
行 849: | 行 820: | ||
そして、< | そして、< | ||
**architecture -> 64bit -> hash** の既存定義をコメントアウトして、再計算したハッシュ値で定義し直す。\\ | **architecture -> 64bit -> hash** の既存定義をコメントアウトして、再計算したハッシュ値で定義し直す。\\ | ||
- | <WRAP prewrap 100% #mincode> | + | <WRAP prewrap 100% mincode> |
<code javascript> | <code javascript> | ||
{ | { | ||
行 901: | 行 872: | ||
</ | </ | ||
</ | </ | ||
- | <WRAP prewrap 100% #result> | + | <WRAP prewrap 100% result> |
<code powershell> | <code powershell> | ||
Uninstalling ' | Uninstalling ' | ||
行 913: | 行 884: | ||
</ | </ | ||
</ | </ | ||
- | <WRAP prewrap 100% #result> | + | <WRAP prewrap 100% result> |
<code powershell> | <code powershell> | ||
Installing ' | Installing ' | ||
行 935: | 行 906: | ||
[[https:// | [[https:// | ||
[[qita> | [[qita> | ||
+ | [[qita> | ||