Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
max committed Nov 7, 2024
1 parent c4b1a83 commit a978296
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ services:
### ubantu

## 问题
- 删除所有<none>: `docker rmi $(docker images --filter "dangling=true" -q --no-trunc)`
- Delta RPMs disabled because /usr/bin/applydeltarpm
> 先看`docker -v` \
> 如果没有该命令: `yum provides '*/applydeltarpm'`, `yum install deltarpm`
Expand Down
6 changes: 6 additions & 0 deletions ffmpeg/ffmpeg.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@
- 详细: `ffmpeg -i xxx.mp4`, `ffprobe xxxx.mp4`
- 查看视频时长: `ffprobe -v quiet -show_format -print_format json -show_entries stream=index,codec_name,codec_tag_string,codec_type,profile,level,bit_rate,tags,nb_frames,avg_frame_rate,sample_rate,channels,width,height,duration xxx.mp4`
- 转换格式: `ffmpeg -i 'xxx.mp4' -c:v libx264 -preset ultrafast -vf format=yuvj420p -c:a copy 2.mp4`
- 视频编码器
- libx264: 用于H.264视频编码。
- libx265: 用于H.265/HEVC编码。
- libvpx: 用于VP8和VP9编码。
- mpeg4: 用于MPEG-4编码。
- libaom-av1: 用于AV1编码
- 指定宽高输出: `ffmpeg -y -i Titanic.mkv -s 640*480 out.h264`
- 截取素材
- 截取gif,从25秒开始,截取10秒,帧率16: `ffmpeg -ss 25 -t 10 -r 16 -i path-to-vedio -f gif test.gif`
Expand Down
26 changes: 26 additions & 0 deletions ffmpeg/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,30 @@ QTranscoding.add('video', { path: 'data/output.mp4', dist: 'data/test.mp4' }, {
attempts: 0,
removeOnComplete: true,
removeOnFail: true,
});
// QTranscoding.getJobCounts().then(total => {
// console.log(total);
// });

const QDownload = new Queue('download', {
prefix: 'download',
redis: {
host: '10.0.15.240',
port: '6379'
}
});

QDownload.process('m3u8', 8, function (job, done) {

});

QDownload.process('ts', 8, function (job, done) {

});

QDownload.process('video', 8, function (job, done) {

});
QDownload.process('image', 8, function (job, done) {

});
1 change: 1 addition & 0 deletions ffmpeg/trans.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@
# 可变码率(0-51,越小质量越高,18-23 是高质量范围)
-i input.mp4 -c:v libx264 -crf 23 output.mp4
# 直播或流媒体中限制码率波动
https://www.zhihu.com/people/linuxsao-di-seng
2 changes: 1 addition & 1 deletion message-queue/rabbitmp.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 消息队列
## 用户登录
- rabbitmqctl add_user admin 123456
- rabbitmqctl set_user_tags administrator
- rabbitmqctl set_user_tags admin administrator
- rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
## 概念
> ![基本结构](./基本结构.png)
Expand Down

0 comments on commit a978296

Please sign in to comment.