

  {extends file="main.tpl"}
    <!DOCTYPE head PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><head xmlns="http://www.w3.org/1999/xhtml">
  {block name=title}GPSBabel development:SubRip subtitles for video mapping (.srt) (subrip){/block}
  {block name=body}{literal}
                       
  <div xmlns="http://www.w3.org/1999/xhtml" class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">SubRip subtitles for video mapping (.srt) (subrip)</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="fmt_skytraq-bin.html">Prev</a> </td><th width="60%" align="center">Chapter 3. The Formats</th><td width="20%" align="right"> <a accesskey="n" href="fmt_stmsdf.html">Next</a></td></tr></table><hr /></div><div xmlns="http://www.w3.org/1999/xhtml" class="section"><div class="titlepage"><div><div><h2 class="title" ><a id="fmt_subrip"></a>SubRip subtitles for video mapping (.srt) (subrip)</h2></div></div></div><p class="fmtcapshdr">
    This format can...
    </p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p class="fmtcapsitem">
          write tracks
        </p></li></ul></div><p>This format has the following options: <a class="link" href="fmt_subrip.html#fmt_subrip_o_video_time" title="video_time option">video_time</a>, <a class="link" href="fmt_subrip.html#fmt_subrip_o_gps_time" title="gps_time option">gps_time</a>, <a class="link" href="fmt_subrip.html#fmt_subrip_o_gps_date" title="gps_date option">gps_date</a>, <a class="link" href="fmt_subrip.html#fmt_subrip_o_format" title="format option">format</a> .</p><p>
		This is a write-only format for geotagging videos. It is used for
		videomapping, i.e. filming a trip while creating a GPS trace.
		It will produce a subtitle file in SubRip (.srt) format.
	</p><p>
		Unless the video and the GPS trace start at exactly the same time, you
		will need to synchronize both. For this purpose, film the display of
		your GPS receiver (or any other device) showing GPS time. (Important:
		you need precise GPS time for this; local time, especially from an
		inaccurate clock, will not do for this.) 
	</p><p>
		Determine the position in the video at which the GPS time is visible
		(in hours, minutes and seconds from the beginning of the video) and
		the GPS date and time shown. Specify these as command line options; you
		will need to do this once for each video file.
	</p><p>
		To use these files, choose the same name as for the associated video,
		changing just the extension to .srt, and place the srt file in the same
		directory as the video. Open the video in a media player and the GPS
		coordinates will be shown as subtitles (tested on VLC, your mileage may
		vary).
	</p><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="fmt_subrip_o_video_time"></a><code class="option">video_time</code> option</h3></div></div></div><p>
      Video position for which exact GPS time is known (hhmmss, default is 0:00:00).
    </p><p>
	Video position (relative to beginning of video) for which the corresponding
	GPS timestamp is known.
</p><p>
	Format is hhmmss. If omitted, 0:00:00 (beginning of video) is assumed.
</p><p>
	The GPS timestamp can be set with the <code class="option">gps_time</code> and 
	<code class="option">gps_date</code> options.
</p></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="fmt_subrip_o_gps_time"></a><code class="option">gps_time</code> option</h3></div></div></div><p>
      GPS time at position video_time (hhmmss, default is first timestamp of track).
    </p><p>
	The time part of the GPS timestamp which corresponds to a known position 
	in the video.
</p><p>
	Format is hhmmss. This option must be used together with 
	<code class="option">gps_date</code>; if one or both are missing, the timestamp of the
	first GPS trackpoint is used.
</p><p>
	The video position to which the timestamp corresponds can be set with the 
	<code class="option">video_time</code> option.
</p></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="fmt_subrip_o_gps_date"></a><code class="option">gps_date</code> option</h3></div></div></div><p>
      GPS date at position video_time (hhmmss, default is first timestamp of track).
    </p><p>
	The date part of the GPS timestamp which corresponds to a known position 
	in the video.
</p><p>
	Format is yyyymmdd. This option must be used together with 
	<code class="option">gps_time</code>; if one or both are missing, the timestamp of the 
	first GPS trackpoint is used.
</p><p>
	The video position to which the timestamp corresponds can be set with the 
	<code class="option">video_time</code> option.
</p></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="fmt_subrip_o_format"></a><code class="option">format</code> option</h3></div></div></div><p>
      Format for subtitles.
    </p><p>
	Format for output subtitles.
</p><div class="table"><a id="subrip_format"></a><p class="title"><strong>Table 3.8. Supported format characters for subrip</strong></p><div class="table-contents"><table class="table" summary="Supported format characters for subrip" border="1"><colgroup><col /><col /></colgroup><thead><tr><th>format char</th><th>description</th></tr></thead><tbody><tr><td>%s</td><td>speed in km/h</td></tr><tr><td>%e</td><td>elevation in meters</td></tr><tr><td>%v</td><td>vertical speed in m/s</td></tr><tr><td>%t</td><td>timestamp</td></tr><tr><td>%l</td><td>coordinates</td></tr><tr><td>%c</td><td>pedal cadence</td></tr><tr><td>%h</td><td>heart rate</td></tr><tr><td>%g</td><td>road gradient</td></tr><tr><td>\n</td><td>newline</td></tr></tbody></table></div></div><br class="table-break" /><p>
	Default format (used when option isn't specified) is "%s km/h %e m\n%t %l".
	Suggested format for bicycle video is "'%s km/h   %h ❤\n      %e m  %c rpm".
</p></div></div><div xmlns="http://www.w3.org/1999/xhtml" class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="fmt_skytraq-bin.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="The_Formats.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="fmt_stmsdf.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">SkyTraq Venus based loggers Binary File Format (skytraq-bin) </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Suunto Trek Manager (STM) .sdf files (stmsdf)</td></tr></table></div>
  
      {/literal}{/block}
  