From b3be2ac3976ee76be2d87b196b8a66f33ef79b59 Mon Sep 17 00:00:00 2001 From: Awin Huang Date: Mon, 1 Jan 2024 17:04:38 +0800 Subject: [PATCH] vault backup: 2024-01-01 17:04:38 --- .obsidian/workspace.json | 34 ++++++++++++------ 04. Programming/FFMPEG/ffmpeg command.md | 45 ++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 11 deletions(-) create mode 100644 04. Programming/FFMPEG/ffmpeg command.md diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index e3ca84e..c05362e 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -41,14 +41,24 @@ "state": { "type": "markdown", "state": { - "file": "04. Programming/FFMPEG/AV_CODEC_FLAG_GLOBAL_HEADER.md", + "file": "04. Programming/FFMPEG/ffmpeg command.md", "mode": "source", "source": true } } + }, + { + "id": "b7b6a79d599d9529", + "type": "leaf", + "state": { + "type": "release-notes", + "state": { + "currentVersion": "1.5.3" + } + } } ], - "currentTab": 2 + "currentTab": 3 } ], "direction": "vertical" @@ -114,7 +124,7 @@ "state": { "type": "backlink", "state": { - "file": "04. Programming/FFMPEG/AV_CODEC_FLAG_GLOBAL_HEADER.md", + "file": "04. Programming/FFMPEG/ffmpeg command.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -139,7 +149,7 @@ "state": { "type": "outline", "state": { - "file": "04. Programming/FFMPEG/AV_CODEC_FLAG_GLOBAL_HEADER.md" + "file": "04. Programming/FFMPEG/ffmpeg command.md" } } }, @@ -157,7 +167,9 @@ "state": { "type": "all-properties", "state": { - "sortOrder": "frequency" + "sortOrder": "frequency", + "showSearch": false, + "searchQuery": "" } } }, @@ -167,7 +179,7 @@ "state": { "type": "file-properties", "state": { - "file": "04. Programming/FFMPEG/AV_CODEC_FLAG_GLOBAL_HEADER.md" + "file": "04. Programming/FFMPEG/ffmpeg command.md" } } } @@ -210,22 +222,23 @@ "periodic-notes:Open today": false } }, - "active": "d5379d7d99bdf586", + "active": "b7b6a79d599d9529", "lastOpenFiles": [ + "04. Programming/FFMPEG/00. Introduction.md", + "04. Programming/FFMPEG/ffmpeg command.md", + "04. Programming/FFMPEG/01. Setup.md", + "04. Programming/FFMPEG/AV_CODEC_FLAG_GLOBAL_HEADER.md", "04. Programming/FFMPEG/Profiles & levels.md", "04. Programming/FFMPEG/av_opt_set.md", "04. Programming/FFMPEG/Use av_opt_set to setup profile.md", "attachments/Pasted image 20231225164717.png", "attachments/Pasted image 20231225164413.png", "attachments/Pasted image 20231225164349.png", - "04. Programming/FFMPEG/AV_CODEC_FLAG_GLOBAL_HEADER.md", "04. Programming/FFMPEG/FFMpeg.md", "01. 個人/01. Daily/2023-12-22(週五).md", "01. 個人/01. Daily/2023-12-18(週一).md", "04. Programming/FFMPEG/Structure.md", "attachments/Pasted image 20231220095827.png", - "04. Programming/FFMPEG/01. Setup.md", - "04. Programming/FFMPEG/00. Introduction.md", "05. 資料收集/Tool Setup/Software/Windows 11 Setup.md", "05. 資料收集/Tool Setup/Software/Windows 10 Setup.md", "04. Programming/OpenCV.md", @@ -244,7 +257,6 @@ "00. Inbox/Mel spectrogram.md", "attachments/Pasted image 20231212180917.png", "05. 資料收集/libsndfile.md", - "00. Inbox/SSIM.md", "未命名 1.canvas", "未命名.canvas", "01. 個人/01. Daily/2023/11", diff --git a/04. Programming/FFMPEG/ffmpeg command.md b/04. Programming/FFMPEG/ffmpeg command.md new file mode 100644 index 0000000..638f17a --- /dev/null +++ b/04. Programming/FFMPEG/ffmpeg command.md @@ -0,0 +1,45 @@ +## 列出 hardware acceleration +```bash +$ ffmpeg -hide_banner -hwaccels +Hardware acceleration methods: +cuda +dxva2 +qsv +d3d11va +opencl +vulkan +``` + +## 列出 codec +```bash +$ ffmpeg -hide_banner -codecs +Codecs: + D..... = Decoding supported + .E.... = Encoding supported + ..V... = Video codec + ..A... = Audio codec + ..S... = Subtitle codec + ...I.. = Intra frame-only codec + ....L. = Lossy compression + .....S = Lossless compression + ------- + D.VI.S 012v Uncompressed 4:2:2 10-bit + D.V.L. 4xm 4X Movie + D.VI.S 8bps QuickTime 8BPS video + .EVIL. a64_multi Multicolor charset for Commodore 64 (encoders: a64multi ) + .EVIL. a64_multi5 Multicolor charset for Commodore 64, extended with 5th color (colram) (encoders: a64multi5 ) + D.V..S aasc Autodesk RLE +``` + +### 只列出 encoder 或是 decoder +```bash +ffmpeg -hide_banner -encoders +ffmpeg -hide_banner -decoders +``` + +### 列出某個 encoder 或 decoder 的詳細資料 +```bash +$ ffmpeg -hide_banner -h encoder= +or +$ ffmpeg -hide_banner -h decoder= +``` \ No newline at end of file