F
F

ffsubsync

Language-agnostic automatic synchronization of subtitles with video, so that subtitles are aligned to the correct starting point within the video.

Cost / License

  • Free
  • Open Source (MIT)

Platforms

  • Windows
  • Mac
  • Linux
  • Python
3likes
1comment
0articles

Features

ffsubsync News & Activities

Highlights All activities

Recent activities

  • LinuxDoge reviewed ffsubsync  

    fantastic piece of software! when getting subtitles from opensubtitles.com etc, they are often for a wrong framerate, another cut or just badly made by hand. This tool is technically overkill for fixing FPS, but it works for that! It works really well for aligning one .srt file to a reference file, which you can easily extract from a video using ffmpeg. Fast, efficient, just works.

  • LinuxDoge liked ffsubsync
  • POX added ffsubsync as alternative to VivySub
  • florapeterpaul3 added ffsubsync as alternative to GeekLink
  • niksavc liked ffsubsync
  • K0RR added ffsubsync
  • K0RR added ffsubsync as alternative to Subtitle Edit, Aegisub, SubTypo and Amara + 25 similar activities
  • K0RR liked ffsubsync

ffsubsync information

  • Developed by

    US flagStephen Macke
  • Licensing

    Open Source (MIT) and Free product.
  • Written in

  • Alternatives

    31 alternatives listed
  • Supported Languages

    • English

AlternativeTo Categories

Backup & SyncVideo & Movies

GitHub repository

  •  7,658 Stars
  •  316 Forks
  •  81 Open Issues
  •   Updated  
View on GitHub

Our users have written 1 comments and reviews about ffsubsync, and it has gotten 3 likes

ffsubsync was added to AlternativeTo by K0RR on and this page was last updated .

Comments and Reviews

   
Top Positive Comment
LinuxDoge
0

fantastic piece of software! when getting subtitles from opensubtitles.com etc, they are often for a wrong framerate, another cut or just badly made by hand. This tool is technically overkill for fixing FPS, but it works for that! It works really well for aligning one .srt file to a reference file, which you can easily extract from a video using ffmpeg. Fast, efficient, just works.

What is ffsubsync?

Language-agnostic automatic synchronization of subtitles with video, so that subtitles are aligned to the correct starting point within the video.

Usage: ffs video.mp4 -i unsynchronized.srt -o synchronized.srt

How It Works:

  1. Discretize both the video file's audio stream and the subtitles into 10ms windows.
  2. For each 10ms window, determine whether that window contains speech. This is trivial to do for subtitles (we just determine whether any subtitle is "on" during each time window); for the audio stream, use an off-the-shelf voice activity detector (VAD) like the one built into webrtc.
  3. Now we have two binary strings: one for the subtitles, and one for the video. Try to align these strings by matching 0's with 0's and 1's with 1's. We score these alignments as (# video 1's matched w/ subtitle 1's) - (# video 1's matched with subtitle 0's).

Official Links