This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Get listing-ids via GET to https://www.fab.com/i/listings/search?currency=USD&seller=Quixel&sort_by=listingTypeWeight&cursor=bz03Njg%3D | |
where cursor is given by previoud search, cursors.next/previous | |
This is in div with id="js-dom-data-prefetched-data" | |
Looking for listing-id dc4dc139-f3a3-4375-875f-d1831506953e | |
prop licenses, array, find license with "name": "Professional" or "slug": "professional", and get its "offerId": "995b4f8437f4493bba976231b99f958b", | |
Then make post to https://www.fab.com/i/listings/a984aac1-d20f-4232-8ce8-212e1695aaf6/add-to-library | |
With Cookie, Referer, X-CsrfToken Header |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const computeCrsTransform = ( | |
sourceCrsOriginCoords, | |
sourceCrsProj, | |
targetCrsProj | |
) => { | |
let sourceCrsDefinition = | |
sourceCrsProj || "+proj=longlat +datum=WGS84 +no_defs"; | |
const targetCrsDefinition = | |
targetCrsProj || "+proj=longlat +datum=WGS84 +no_defs"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ffmpeg combo: equirect-to-cubemap (standard 6 faces + yaw:45° 4 horiz faces) | |
ffmpeg -i input.mp4 -filter_complex [0:v]split=2[in1][in2];[in1]v360=equirect:c3x2:out_forder=frblud,untile=3x2[out1];[in2]v360=equirect:c6x1:out_forder=frblud:yaw=45,crop=4/6*in_w:in_h:0:0,untile=4x1[out2] -map [out1] cubemap2\cubemap_frblud_%05d.jpg -map [out2] cubemap2\cubemap_45_frbl_%05d.jpg | |
# from equirectangular to standard cubemap | |
ffmpeg -i input.mp4 -vf "v360=equirect:c3x2:out_forder=frblud,untile=3x2" cubemap\cubemap_frblud_%05d.jpg | |
# from equirectangular to standard yaw:45° cubemap (no top/bottom) | |
ffmpeg -i input.mp4 -filter_complex "v360=equirect:c6x1:out_forder=frblud:yaw=45,crop=4/6*in_w:in_h:0:0,untile=4x1" cubemap\cubemap_45_frbl_%05d.jpg | |
# from equirectangular to 90° rectilinear persp | |
ffmpeg -i input.mp4 -vf "v360=e:rectilinear:h_fov=90:v_fov=90" output.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# py kapture-cropper.py -i dataset-kapture\ --border_px 0 --scale_factor 1 -v | |
import kapture | |
import kapture.io.csv as csv | |
from PIL import Image | |
from kapture.io.csv import kapture_to_dir | |
import os, logging, argparse | |
import kapture.utils.logging | |
logger = logging.getLogger("kapture-cropper") |