mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
Updated Filter (markdown)
parent
3d7b2a9350
commit
08d0c5047f
1 changed files with 4 additions and 4 deletions
|
|
@ -110,7 +110,7 @@ rgaoverlay AVOptions:
|
|||
```
|
||||
|
||||
### Test filters
|
||||
* scale_rkrga (1080p -> 720p)
|
||||
* `scale_rkrga` (1080p -> 720p)
|
||||
```shell
|
||||
./ffmpeg -init_hw_device rkmpp=hw -filter_hw_device hw -f lavfi -i testsrc2=s=1920x1080,format=nv12 \
|
||||
-vf hwupload,scale_rkrga=w=1280:h=720:format=nv12 -c:v h264_rkmpp -b:v 4M -maxrate 4M -vframes 1000 -y /tmp/tmp.mp4
|
||||
|
|
@ -119,7 +119,7 @@ rgaoverlay AVOptions:
|
|||
|
||||
---
|
||||
|
||||
* vpp_rkrga transposing (1080p landscape -> 720p, 90 degrees clockwise rotated)
|
||||
* `vpp_rkrga` transposing (1080p landscape -> 720p, 90 degrees clockwise rotated)
|
||||
```shell
|
||||
./ffmpeg -init_hw_device rkmpp=hw -filter_hw_device hw -f lavfi -i testsrc2=s=1920x1080,format=nv12 \
|
||||
-vf hwupload,vpp_rkrga=w=1280:h=720:format=nv12:transpose=clock -c:v h264_rkmpp -b:v 4M -maxrate 4M -vframes 1000 -y /tmp/tmp.mp4
|
||||
|
|
@ -128,7 +128,7 @@ rgaoverlay AVOptions:
|
|||
|
||||
---
|
||||
|
||||
* vpp_rkrga cropping (1080p -> selecting lower right quarter 540p region and upscaling to 720p)
|
||||
* `vpp_rkrga` cropping (1080p -> selecting lower right quarter 540p region and upscaling to 720p)
|
||||
```shell
|
||||
./ffmpeg -init_hw_device rkmpp=hw -filter_hw_device hw -f lavfi -i testsrc2=s=1920x1080,format=nv12 \
|
||||
-vf hwupload,vpp_rkrga=cx=960:cy=540:cw=960:ch=540:w=1280:h=720:format=nv12 -c:v h264_rkmpp -b:v 4M -maxrate 4M -vframes 1000 -y /tmp/tmp.mp4
|
||||
|
|
@ -137,7 +137,7 @@ rgaoverlay AVOptions:
|
|||
|
||||
---
|
||||
|
||||
* overlay_rkrga (Put the 540p image on top of 1080p image and center it. The main image can be YUV or RGB, overlay image must be RGB)
|
||||
* `overlay_rkrga` (Put the 540p image on top of 1080p image and center it. The main image can be YUV or RGB, overlay image must be RGB)
|
||||
```shell
|
||||
./ffmpeg -init_hw_device rkmpp=hw -filter_hw_device hw -f lavfi -i color=c=cyan:s=1920x1080,format=nv12 -f lavfi -i testsrc2=s=960x540,format=bgra \
|
||||
-filter_complex "[0:v]hwupload[main];[1:v]hwupload[overlay];[main][overlay]overlay_rkrga=eof_action=pass:repeatlast=0:format=nv12:x=(W-w)/2:y=(H-h)/2" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue