Encoding a Quad-Binaural Mix

The Knowledgebase has moved! Please visit the link below for updates and new articles.

https://facebookincubator.github.io/facebook-360-spatial-workstation/KB.html

 

  1. Export the spatialised mix from the DAW using the instructions in the Spatial Workstation User Guide.
  2. Load the exported audio into the FB360 Encoder, select 'Quad Binaural' from the drop down menu and click 'Encode'.
  3. Below are instructions for adding the audio tracks to video using FFmpeg and iFFmpeg. If you are uncomfortable using the command line then iFFmpeg may be preferable.

Samsung VR Filenames

When using the video with Samsung VR make sure the filename is in the correct form. See here for more details.

Encoding with FFmpeg

Thanks to Evan Mangiamele!

Use these FFmpeg commands to encode a quad-binaural mix to a video.

If your input files are WAV, then use this command:

ffmpeg -i video.mp4 -i 0.wav -i 90.wav -i 180.wav -i 270.wav -map 0:v -map 1:a -map 2:a -map 3:a -map 4:a -vcodec copy -acodec libfdk_aac output.mp4


If your input files are already AAC, then use this command:

ffmpeg -i video.mp4 -i 0.aac -i 90.aac -i 180.aac -i 270.aac -map 0:v -map 1:a -map 2:a -map 3:a -map 4:a -vcodec copy -acodec copy output.mp4. 

 Encoding with iFFmpeg

  1. Import the video file
  2. Add an Audio stream and click 'Edit'.

           

  3. Click 'Add External File' and select the 0.wav file. Set the Codec to 'AAC'. If your input files are already AAC then you can set 'Codec' to 'PassThru'.

           

  4. Repeat steps 2 and 3 for the 90.wav, 180.wav and 270.wav files in that order. You should end up with 4 separate audio streams. 

  5. If the video is already in the correct format you can edit the video stream and set 'Codec' to 'PassThru'.
  6. Click the 'Convert' button
Have more questions? Submit a request

1 Comments

  • 1
    Avatar
    Evan Mangiamele

    If you don't want to install libfdk_aac, you can use ffmpeg's built in aac encoder as well with this command

     

    ffmpeg -i video.mp4 -i 0.wav -i 90.wav -i 180.wav -i 270.wav -map 0:v -map 1:a -map 2:a -map 3:a -map 4:a -vcodec copy -acodec aac output.mp4
Please sign in to leave a comment.
Powered by Zendesk