Skip to content

Commit

Permalink
auto-stretch GPX for more file types
Browse files Browse the repository at this point in the history
  • Loading branch information
breunigs committed Oct 19, 2024
1 parent 6f2ac24 commit ccfacf7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/video/source.ex
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ defmodule Video.Source do
# therefore we just stretch them to fit.
@spec maybe_stretch_to_video([Video.TimedPoint.t()], t()) :: [Video.TimedPoint.t()]
defp maybe_stretch_to_video(timed_points, %__MODULE__{} = self) do
if String.ends_with?(self.source, ".mkv") do
if String.ends_with?(self.source, ".mkv") || String.ends_with?(self.source, "_stabilized.MP4") do
IO.puts("stretching GPX for #{self.source}")
vid_len_ms = Video.Metadata.length_ms!(self)
gpx_len_ms = List.last(timed_points).time_offset_ms

Expand Down

0 comments on commit ccfacf7

Please sign in to comment.