Vargol / spatial-media

Specifications and tools for 360º video and spatial audio. Modified for Google's VR180
56 stars 11 forks source link

Can MKV and WebM be used? #5

Closed shibababa closed 4 years ago

shibababa commented 4 years ago

i want to use MKV file. codec is VP9 and Opus. Is it possible?

Vargol commented 4 years ago

Hi , sorry no, there is a way using mkvmerge .eg. a side by side equi-rectangular video can be done using... mkvmerge --webm --output mkvtest2.webm --projection-type 0:1 --projection-private 0:0x000000000x000000000x000000000x3fffffff0x3fffffff --stereo-mode 0:side_by_side_left_first out.webm

In theory a similar command could be constructed using the mshp box from an mp4 video

shibababa commented 4 years ago

Thank you for your reply. I'll give it a try. 😊

Vargol commented 4 years ago

I've now adding a mkvmerge options file for injecting VR180 metadata for 180 degree fisheye videos to the repository. It's a similar command line to the above one but the private data is much bigger, hence the need for an options file. It can be used like this...

mkvmerge -o output.webm @vr180_projection.json input_video.webm

Now it has to go between the output and input file to work, something the mkvmerge docs do not make clear at all.