Facebook事實上已開始在平臺中支持360度全景視頻的流播,但公司對此並不知足。其工程師更是基於錐體幾何學設計出了一套全新的視頻編碼,號稱最高能將全景視頻的文件大小減小80%。(VR最新突破:全景視頻壓縮率達80%,即將普及爆發)html
https://github.com/facebook/transformlinux
README:git
1 # Transform 2 3 Transform is a video filter that transforms 360 video in equirectangular projection into a cubemap projection 4 5 ## Building 6 7 Transform is implemented as an ffmpeg video filter. To build Transform, follow these steps: 8 9 1. Checkout the source for ffmpeg 10 2. Copy `vf_transform.c` to the libavfilter subdirectory in ffmpeg source 11 3. Edit `libavfilter/allfilters.c` and register the filter by adding the line: `REGISTER_FILTER(TRANSFORM, transform, vf);` in the video filter registration section 12 4. Edit `libavfilter/Makefile` and add the filter to adding the line: `OBJS-$(CONFIG_TRANSFORM_FILTER) += vf_transform.o` in the filter section 13 5. Configure and build ffmpeg as usual 14 15 ## Running 16 17 Check out the options for the filter by running `ffmpeg -h filter=transform` 18 A typical execution would be something like `ffmpeg -i input.mp4 -vf transform=input_stereo_format=MONO:w_subdivisons=4:h_subdivisons=4:max_cube_edge_length=512`