Skip to content

Commit

Permalink
release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanatosShinji committed Nov 19, 2024
1 parent c8b0fa1 commit 85c8eaf
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 36 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
################################################################################

/.vs
/.idea
89 changes: 53 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,65 +1,70 @@
# AI Augment Filter

**高保真的AI画质增强滤镜:**
* *预览:图片视频预览保存*
* *转码:增强画质和码率后重新编码保存*
* *播放:VLC播放器实时播放*
* *[播放](#实时播放服务)*
* *[预览](#视频图像预览器)*
* *[转码](#转码器)*
<p id="icon" align="center">
<img src="data/system.png">
</p>


## 效果对比
平均码率增强效果大于150%.
<p id="icon" align="center">
<img src="data/img.png">
</p>

极致低画质
极致低画质:老电影,电视剧
<p id="low_quality" align="center">
<img src="data/low.png">
</p>
高清源画质
复杂烟雾场景下码率补全
<p id="high_quality" align="center">
<img src="data/high.png">
</p>
适用不同场景
动画效果同样优秀
<p id="comic" align="center">
<img src="data/comic.png">
</p>


## 安装与系统要求
下载release包后解压后就可以使用。

系统:Windows11
CPU:Intel CPU
GPU:Intel集成显卡或独立显卡
内存:16GB

实时播放算力最低要求:30TOPs(1080P) 15TOPs(720P)

实测性能 360P -> 720P
Intel Arc750 fp16 50帧/秒
笔记本 Ultra-155H fp16 9帧/秒

## 使用说明

### Preview.exe 预览器

打开图片
`.\previewer.exe lr.png`

打开视频
`.\previewer.exe E001.mp4`

`'q'退出界面`
`'s'保存当前的AI预览图`
### 视频图像预览器

打开文件(图像或者视频)

<p id="ui" align="center">
<img src="data/UI.png">
</p>
通过TimeLine选择视频进度条, 通过Q调节保真度。 不同的保真度将对AI模型效果产生影响。
调试好保真度后记录下当前Q的数值,这个转码时候需要使用。

### Transcoder.exe 转码器
### 实时播放服务
启动进程监听服务,播放器的插件将每帧图像通过进程间的内存共享给服务端进行增强。
由服务端处理后再返回给播放器显示画面,作为播放器的视频滤波插件。
<p id="icon" align="center">
<img src="data/service.png">
</p>

<p id="icon" align="center">
<img src="data/start_service.png">
</p>
启动后,用播放器直接打开视频文件即可以享受到画质增强。

#### VLC插件安装
1. 下载libaivideo_plugin.dll文件
2. 找到VLC的安装路径(如:C:\Program Files\VideoLAN\VLC)
注意当前只支持64位VLC,如果安装路径是C:\Program Files (x86), 说明是32位版本,需要重新安装64位。
3. 把libaivideo_plugin.dll复制到C:\Program Files\VideoLAN\VLC\plugins
4. 打开VLC
5. 上面菜单栏中选择 工具-》偏好设置-》显示设置:全部(左下角)-》视频:滤镜
6. 勾选"AI Augment video filter"
7. 确定,退出
<p id="icon" align="center">
<img src="data/vlc_step.png">
</p>

### 转码器
如果硬件算力较低,可以离线转码后再观看。
```
.\transcoder.exe -i E001.mp4 -b 8000 --p1 20
Usage: ffmpeg_transcoder [-h] [--fps VAR] [--bps VAR] [--in_scale VAR...] [--out_scale VAR...] [--encoder VAR] [--p1 VAR] [--p2 VAR] [--input_files VAR...]
Expand All @@ -83,6 +88,18 @@ Optional arguments:
`--in_scale 预先缩放输入图片`
`--out_scale 缩放编码前的图片`

### VLC 播放器插件
### 转码器安装
转码需要下载额外的ffmpeg转码包,下载完后解压缩到程序所在目录的win_amd64_intel文件夹下面。
用命令行切换当前目录到win_amd64_intel目录,直接用上面的命令行即可开始转码。

## 安装与系统要求
下载主程序包 AIVideoFactoryRelease.7z
根据需求下载转码包 win_amd64_transcode.7z

系统:Windows11
内存:16GB

GPU最低要求:
720P播放:Ultra-1系列集成显卡
1080P~1440P播放:Ultra-2系列集成显卡, Intel-ArcA750, GTX3060

开发中
Binary file modified data/UI.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/comic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/high.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/service.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/start_service.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/system.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/vlc_step.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 85c8eaf

Please sign in to comment.