User Tools

Site Tools


project:stereoscopy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
project:stereoscopy [2018/10/17 08:41] dpproject:stereoscopy [2018/10/17 10:00] dp
Line 79: Line 79:
 <code> <code>
 ffmpeg -i LEFT.mp4 -i RIGHT.mp4 -filter_complex [0:v]scale=w=iw/2[left],[1:v]scale=w=iw/2[right],[left][right]framepack=sbs OUTPUT_SBS.mp4 ffmpeg -i LEFT.mp4 -i RIGHT.mp4 -filter_complex [0:v]scale=w=iw/2[left],[1:v]scale=w=iw/2[right],[left][right]framepack=sbs OUTPUT_SBS.mp4
 +</code>
 +</WRAP>
 +
 +Convert views into a top-above-bottom format:
 +<WRAP prewrap>
 +<code>
 +ffmpeg -i LEFT.mp4 -i RIGHT.mp4 -filter_complex framepack=tab OUTPUT_TAB.mp4
 </code> </code>
 </WRAP> </WRAP>
Line 91: Line 98:
  
 ===== Metadata for Youtube video uploads ===== ===== Metadata for Youtube video uploads =====
-Unfortunately none of the below recommended metadata work and Youtube is breaking things constantly. It might recognize stereoscopic/3D video in the computer browser (only anaglyph option) but it won't give the cardboard options on Youtube on smartphone. Additionally aspect ratio might be interpreted differently between computer and smartphone. It seems the best way is to just prerender everything and avoid Youtube's unreliable and crappy support altogether. FIXME+Unfortunately none of the below recommended metadata work and Youtube is breaking things constantly. It might recognize stereoscopic/3D video in the computer browser (only anaglyph option) but it won't give the cardboard options on Youtube on smartphone. Additionally aspect ratio might be interpreted differently between computer and smartphone. It seems the best way for now is to prerender everything and bypass Youtube's unreliable and crappy 3d support. FIXME
  
 MPEG4 (with re-encoding): MPEG4 (with re-encoding):
Line 110: Line 117:
 <code> <code>
 ffmpeg -i input_file.mkv -c copy -metadata:s:v:0 stereo_mode=1 output_file.mkv ffmpeg -i input_file.mkv -c copy -metadata:s:v:0 stereo_mode=1 output_file.mkv
 +</code>
 +</WRAP>
 +
 +There is Google's tool for metadata injection but it also didn't work in this case.
 +https://github.com/google/spatial-media/
 +This fork is less strict and allows more operations: https://github.com/Vargol/spatial-media
 +
 +Add left-right (SBS) metadata:
 +<WRAP prewrap>
 +<code>
 +python spatialmedia -i --stereo=left-right INPUT.mp4 OUTPUT.mp4
 +</code>
 +</WRAP>
 +
 +Print spatial media metadata contained in the file:
 +<WRAP prewrap>
 +<code>
 +python spatialmedia FILE
 </code> </code>
 </WRAP> </WRAP>
project/stereoscopy.txt · Last modified: 2018/10/17 10:20 by dp