Merging Log Files

When data is recorded, it can be spread across several log file s in the following ways:

  • Modalities (like audio and video) can be stored in different log file s
  • A long recording can be split chronologically into multiple log file s

When a single, synchronized media file should be produced, the separate log file s have to be merged and synchronized. This can be accomplished using bag-merge.

Consider the goal of producing a video file with proper audio/video synchronization from the following separate log file s:

  • audio.tide
  • video.tide


  1. Merge input files

    $ bag-merge -o merged.tide audio.tide video.tide

    The above command will produce an output log file named merged.tide containing the events of both input files.


The further processing required to produce a synchronized video file is described in Encoding Audio and Video.