Commit Graph

635 Commits

Author SHA1 Message Date
odrling 09b424fbbb fix sub timing in mkv files with video delay
Some matroska files have audio start at timestamp 0 and video later.
In this case mkvtoolnix seems to use the first block of the first
cluster to the audio track (I would assume this is only an
implementation detail and not really from the matroska specs. And also
could happen in other cases without the video being delayed, but that's
not the point). Aegisub used to read this first block and use its
timestamp as the starting point of the video track.

With this commit, Aegisub tries to read all the blocks until it can read
the first timestamp of the video track and use it for the subtitles'
timestamps. Audio tracks don't seem to be impacted by these changes.
2020-11-17 18:36:16 +01:00
Ryan Lucia fe1813ec03 meson: enable building Aegisub.app on macOS 2020-02-08 23:43:52 +01:00
Ryan Lucia e6a41ccfbf autotools: remove remaining makefiles 2020-02-08 23:43:51 +01:00
Ryan Lucia 20ce892352 meson: attempt to wrangle dependencies 2020-02-08 23:43:32 +01:00
Ryan Lucia a78b0fb430 Fix PCH usage
Hopefully this time in a way that doesn't ruin life for Unix folks!
2020-02-08 23:42:36 +01:00
Ryan Lucia bc13aa919c meson: allow additional include directories for manually located deps 2020-02-08 23:42:36 +01:00
Ryan Lucia cdd2fe6e5f meson: add DirectSound detection 2020-02-08 23:42:36 +01:00
Ryan Lucia 0c148ec512 Make spacing around colons consistent 2020-02-08 23:40:07 +01:00
Martin Herkt 7c44ae5303 Meson: respack.lua → respack.py; works out-of-tree 2020-02-08 23:40:07 +01:00
Martin Herkt 146d1aa7b8 Meson: add install rules 2020-02-08 23:40:07 +01:00
Martin Herkt 5d1c6daa63 Initial port of the build system to Meson
Still some TODOs left. Probably only works on Linux for now.
2020-02-08 23:40:07 +01:00
odrling 48922bf4b5 Merge branch 'master' of github.com:TypesettingTools/Aegisub 2020-02-08 22:11:06 +01:00
Andrew Neth d0bab1212c
Look for both system fonts and user fonts on Windows (#64)
* Look for both system fonts and user fonts on Windows

* Move repeated font registry reading code to separate function

* Pass the files vector to read_fonts_from_key as a reference

* Allocate a larger filename buffer when necessary while reading fonts from registry
2020-02-08 15:41:03 -05:00
RhiobeT 9c5f7f24b7 Better safe than sorry 2020-02-03 13:18:44 +01:00
Pierre Jeanjean 7bbf150b44 Fix charset detection and conversion issues 2020-02-02 15:37:05 +01:00
odrling c36f16fb08 [help] add joysound exporter item 2019-12-11 00:38:59 +01:00
odrling 642a96eed9 Merge branch 'ssl_update' 2019-09-16 12:38:04 +02:00
RhiobeT 1774b59220 Add command to insert space after syllab 2019-09-11 15:55:14 +02:00
odrling 35c92b64b5 . 2019-09-10 10:49:55 +02:00
odrling c84d6376d9 [updates] use https 2019-09-10 10:39:51 +02:00
Ryan Lucia d9bd7def0b Fix autotools lua detection 2019-09-08 18:36:58 -04:00
odrling 7c69b2a9fc put 'x64' after release version 2019-09-01 21:02:54 +02:00
odrling b33ccb591d set update url protocol to http 2019-09-01 19:51:25 +02:00
odrling f996638648 it just looks better 2019-08-31 01:38:13 +02:00
odrling a68f670908 simplify update system 2019-08-31 01:26:44 +02:00
odrling 8ab7a886d3 [style] keep font size and playback resolution constant 2019-08-24 19:09:44 +02:00
odrling 7ec32f8b2e [config] change Link volume/spectrum and Snap 2019-08-24 16:17:30 +02:00
odrling bd6383a4cc Merge branch 'tap-to-time-tt-fork' of github.com:EaterOA/Aegisub into ttt 2019-08-24 01:41:50 +02:00
odrling deaf588af9 [build] apply patch for lua 2019-08-20 01:52:21 +02:00
odrling 30f2d5ac09 [style] increase default font size 2019-08-19 15:23:34 +02:00
odrling 4ac55501c3 [Karaoke] disable drag timing
disables "Left-click drag moves end marker"
2019-08-19 00:22:43 +02:00
odrling 155cd9937a [style] change default style 2019-08-19 00:12:46 +02:00
odrling 7bd37b6ca1 [Karaoke] Autocommit and autofocus 2019-08-18 23:47:29 +02:00
odrling ebc0a31d48 [hotkeys] change default hotkeys
let's see if we keep this but I think it should be useful
2019-08-18 23:35:29 +02:00
Ryan Lucia 5005d6d2a2 Set visual tool default feature color correctly
Fixes #50
2019-05-16 18:10:43 -04:00
Ryan Lucia fb02d6855c Fix compilation on Mojave 2019-05-16 17:41:18 -04:00
davste0816 c2085d139c Fix Move Down button in Export dialog 2019-05-12 11:56:13 -04:00
davste0816 b107077b20 Add .webm to extension list, add .eac3 as an audio format
Co-Authored-By: FichteFoll <fichtefoll2@googlemail.com>
2019-05-12 11:55:48 -04:00
davste0816 0e6b492735 Recognize .opus as an audio format, .h264 .hevc as video formats 2019-05-12 11:55:48 -04:00
Martin Herkt a78f5d2760 DataBlockCache: Fix crash in cache invalidation
Fixes #33
2019-05-03 20:51:23 -04:00
FichteFoll 75fc5f38d7 Adjust boost gil header paths for boost 1.69
boost/gil.hpp was added in 1.68 and boost/gil/gil_all.hpp removed in
1.69.
2019-01-31 19:47:00 -05:00
Ryan Lucia 3ba7358bfe Use FFMS2 constant in place of magic number 2019-01-07 21:48:50 -05:00
Ryan Lucia a1ec3767e4 Remove compatibility with old versions of FFMS2
2.22 was released oct 2015, so I think a more recent version is a fairly safe assumption
2019-01-07 21:48:50 -05:00
Ryan Lucia ad52260665 Ensure FFMS always indexes video tracks
Matching historical behavior with DoIndexing, which is assumed throughout the codebase
2019-01-07 21:48:50 -05:00
Ryan Lucia 9638bfbef4 Update ffmpeg and ffms2 2019-01-07 21:48:49 -05:00
Vincent Wong 35cd0322ca Audio/timing: minor style, comment
A bit more clarification of code logic. Follow predominant if/else style
2018-11-21 21:21:38 -08:00
Vincent Wong 44bda6e5d9 Audio/Timing: implement tap-to-time
Tap-to-time provides the user the ability to tap to the lyrics/syllables
of the song in order to time lines or karaoke. It consists of these
extra UI interactions:

- **Indicator**: tap marker: a designated marker that can be moved to
  the current audio position; indicated in:
  - the audio display by a green arrow underneath a marker
  - the karaoke display by a green-colored syllable
- **Control**: tap marker: the tap marker can be changed by selecting
  syllables on audio display in karaoke mode, or clicking the markers on
  audio display in dialogue mode
- **Control**: ctrl-right-click audio display: starts playing the audio
  from that exact position until the end of the file
- **Option**: Timing/Tap To Time: enables the tap marker indicator and
  commands
- **Button**: time_opt_tap_to_time: toggles the Timing/Tap To Time option
- **Button**: time_tap_connect (hotkey I): a command that:
  - moves the tap marker's position to the current playing audio
    position
  - sets the next marker to be the tap marker
  - if the tap marker is already the last marker AND BOTH autocommit AND
    next-line-on-commit is ON, will move onto the next line
  - if moved on to the next line, also sets the start marker to the current
    audio position, so the two lines are connected, and moves to the
    next tap marker (essentially reinvoking time_tap_connect once)
- **Button**: time_tap_no_connect (hotkey O): similar to
  time_tap_connect, except it will not set the next line's start
  position even if moved to the next line

Expected workflow:
1) User loads song lyrics
2) User splits each line into syllables
3) User turns on tap-to-time, autocommit, and next-line-on-commit
4) User plays audio from beginning, tapping time_tap_connect to each
syllable, occasionally tapping time_tap_no_connect when a break between
lines is desired
5) If user messes up a line, they can set the tap marker to where they
want to restart from, and ctrl-right-click to start the audio a few
seconds before it
6) Syllables can be split/merged at will, and adjustments to timing can
be done using normal karaoke timing controls
2018-11-21 21:21:31 -08:00
Vincent Wong a74323803b AudioTimingControllerKaraoke: move timing correction above MoveMarker
Having the timing correction in MoveMarker is extremely surprising
behavior if any other part of the code uses MoveMarker expecting it to
work correctly as advertised
2018-11-21 21:18:59 -08:00
Vincent Wong f1d17ac6b7 audio_timing: add missing param comment for OnLeftClick
Missing the alt_click param in comment
2018-11-21 21:18:59 -08:00
Ryan Lucia 26ccf0b8e5 Divorce stored TPP lead-in/out values from config
There's no real reason to link these as far as I can tell, and plenty of
valid reasons not to
2018-11-17 19:27:25 -05:00