Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Feb 26, 2024
1 parent 7e045ae commit 823b3c0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/chapter/database/postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ SELECT (DATE '2001-02-16', DATE '2001-12-21') OVERLAPS

-- 手动释放空间
VACUUM FULL VERBOSE ANALYZE;
-- 查看可用扩展
SELECT * FROM pg_available_extensions;
-- 高效字符串索引
create index if not exists idx_table_on_column on 'table' using gin ('column' gin_trgm_ops)
```

2. 类型转换
Expand Down
8 changes: 8 additions & 0 deletions docs/chapter/devops/ffmpeg.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,12 @@ ffmpeg -i input.mp4 -c:v libx264 -c:a aac -crf 23 -preset medium output.mp4

```
ffmpeg -re -i 'input.mp4' -vcodec libx264 -acodec aac -f flv rtmp://127.0.0.1:1938/live/test
```

## 硬件加速
```bash
# 查看支持的加速模式
ffmpeg -hwaccels
# 启用加速,nv显卡
ffmpeg -hwaccel cuda
```

0 comments on commit 823b3c0

Please sign in to comment.