From: Pierre Neidhardt <mail@ambrevar.xyz>
To: Laura Lazzati <laura.lazzati.15@gmail.com>
Cc: Guix-devel <guix-devel@gnu.org>,
Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Subject: Re: Video subtitles
Date: Thu, 20 Dec 2018 08:46:57 +0100 [thread overview]
Message-ID: <87sgysiqry.fsf@ambrevar.xyz> (raw)
In-Reply-To: <CAPNLzUOrzjK444U61G4H21vHVm8vMu5mjPyT3Lx+PhVedwHocA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1270 bytes --]
Hi Laura,
> I find a solution for not getting the whole text of the subtitle at
> once, that is creating each svg/cli session/whatever
> appears-in-the-video-if-needed with their audio and subtitle
> separately and glue every piece of video as a last step with ffmpeg.
> Apparently, that is possible according to
> https://trac.ffmpeg.org/wiki/Concatenate - have not tried it yet.
> However, I don't know if, in case of wanting to have the subtitles
> separately - not hardsubs- in this latter case if it is possible to
> concatenate them and use them outside the video.
I've done this many times and it works very well. Off the top of my head,
something like
--8<---------------cut here---------------start------------->8---
ffmpeg -i movie.mkv -i sub1.usf -i sub2.usf -map 0 -c:s copy -c:v copy -c:a copy output.mkv
--8<---------------cut here---------------end--------------->8---
should cut it.
I would not recommend hard-subbing. It's less flexible and does not allow for
multiple languages. Instead, you can use the .mkv format which allows for
embedding multiple subtitles, choosing a default subtitle, and finally leaves it
to the user to disable them when playing.
Cheers!
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2018-12-20 7:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-20 1:55 Video subtitles Laura Lazzati
2018-12-20 7:46 ` Pierre Neidhardt [this message]
2018-12-20 8:11 ` Ricardo Wurmus
2018-12-20 8:31 ` Pierre Neidhardt
2018-12-20 20:03 ` Laura Lazzati
2018-12-20 21:26 ` Ricardo Wurmus
2018-12-20 22:14 ` Laura Lazzati
2018-12-21 19:45 ` Ricardo Wurmus
2018-12-20 21:08 ` Gábor Boskovits
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sgysiqry.fsf@ambrevar.xyz \
--to=mail@ambrevar.xyz \
--cc=guix-devel@gnu.org \
--cc=laura.lazzati.15@gmail.com \
--cc=ricardo.wurmus@mdc-berlin.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).