2025-06-07 19:02:17 +02:00
# Avidemux Shaders
2025-06-07 10:34:37 +02:00
2025-06-07 19:02:17 +02:00
Shaders for Avidemux with OpenGL support
2025-10-01 00:31:47 +02:00
## GoPro fisheye removal v2.0
2025-07-29 05:18:05 +02:00
2025-10-09 04:43:13 +02:00

2025-07-29 05:18:05 +02:00
2025-09-20 13:08:44 +02:00
### gopro_8:7 - Fisheye removal for GoPro 11+, 8:7 ratio, 4K, HyperSmooth off
2025-10-01 00:31:47 +02:00
#### What's new
- New method based on sensor size and focal length
- Accurate frame widening
- Fisheye aware subsampling
2025-10-09 03:47:12 +02:00
- Rec.709 colorspace conversion
2025-10-01 00:31:47 +02:00
#### Content
2025-10-01 00:51:20 +02:00
- avidemux.patch
2025-10-09 03:47:12 +02:00
Optional patch to use GL_NEAREST instead of GL_LINEAR for the luminance channel (the shader is implementing bilinear interpolation with colorspace conversion).
2025-10-01 00:51:20 +02:00
2025-09-20 13:08:44 +02:00
- unfish_gopro_8:7.py
Script to compute the parameters
2025-07-31 04:43:45 +02:00
2025-06-15 18:00:58 +02:00
- unfish_gopro_8:7.glsl
Shader for fisheye removal
2025-09-20 13:08:44 +02:00
- preset_gopro_8:7.py
2025-10-01 00:31:47 +02:00
Preset for mp4, 4K, high quality compression
2025-06-15 18:00:58 +02:00
2025-10-01 00:31:47 +02:00
#### Installation for BSD/GNU-Linux systems:
2025-07-29 05:18:05 +02:00
2025-09-20 13:08:44 +02:00
- Copy the preset into ~/.avidemux6/custom or ~/.local/share/avidemux6/custom
- Copy the shader into /opt/rk/avidemux (or edit the preset to set the path)
2025-06-15 18:00:58 +02:00
2025-09-06 03:32:57 +02:00
Or just run the script install_gopro_8:7.sh
2025-07-29 05:18:05 +02:00
2025-09-20 13:08:44 +02:00
_For commercial OS's, figure out the paths yourself, then edit the preset to fix the path to the .glsl file_
2025-07-29 05:18:05 +02:00
2025-10-01 00:31:47 +02:00
#### Usage:
2025-07-29 05:18:05 +02:00
2025-06-20 05:38:42 +02:00
- Load and edit video(s)
2025-09-20 13:08:44 +02:00
- Select "Custom/preset_gopro_8:7" in the menu
- Modify and/or add filters
2025-06-20 05:38:42 +02:00
- Save the video
2025-10-09 03:47:12 +02:00
#### Shader options
- #define color_conversion: comment out to disable gamma correction for the luminance channel
- #define texture_filtering: comment out to disable custom bilinear filtering for the luminance channel
- #define rotate_180: uncomment to rotate the image by 180 degrees