Repository navigation
feat: embed subs (.vtt) to mp4 - #2009
Open
emre-tiryaki wants to merge 4 commits into
Open
emre-tiryaki wants to merge 4 commits into
emre-tiryaki wants to merge 4 commits into
Conversation
16 of 21 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Type of change
Description
Fixes #1977, follow-up to #1991 as requested there: retargeted at v5.2 .
After the download, ffmpeg muxes the
.vttinto the.mp4as amov_texttrack (-c copy, no re-encode) and the.vttis deleted. Without ffmpeg, or if muxing fails, the.vttis moved next to the video as before, so nothing is lost.The
.vttis now downloaded intotmp_dirinstead ofdownload_dir. It's only an intermediate file, and keeping it there means less writing to the download dir (useful whenANI_CLI_TMP_DIRis on a different disk). If you'd rather keep it indownload_dir, it's a one-line change.Re-running an interrupted download works: the
.vttis fetched again, the half-written temp mp4 is overwritten, and-map -0:sdrops any subtitle already embedded, so you don't end up with duplicate tracks.Checklist
-chistory and continue work-ddownloads work-e(select episode) aka-r(range selection) works-Sselect index works-qquality works-ssyncplay works-vvlc works--duband regular (sub) mode both work--nextep-countdowncountdown to next ep works-hhelp info is up to dateAdditional Testcases
--skipani-skip works--no-detachno detach works--exit-after-playauto exit after playing works