From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Video subtitles Date: Thu, 20 Dec 2018 08:46:57 +0100 Message-ID: <87sgysiqry.fsf@ambrevar.xyz> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZt2x-0007aM-6Q for guix-devel@gnu.org; Thu, 20 Dec 2018 02:47:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZt2t-0004VW-5J for guix-devel@gnu.org; Thu, 20 Dec 2018 02:47:07 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:55679) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gZt2s-0004U0-To for guix-devel@gnu.org; Thu, 20 Dec 2018 02:47:03 -0500 In-reply-to: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Laura Lazzati Cc: Guix-devel , Ricardo Wurmus --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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 =2D-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 =2D-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 leav= es it to the user to disable them when playing. Cheers! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlwbSPEACgkQm9z0l6S7 zH9KiAf/dFUWG2IsCv1JXvUl9cgW337ZCJb2kuEWA/NsvN9QF/TFIx2p8Gdnn8NZ wPg9i3wX6R8feUrsfMcP3xd55gSetNHiPEzSQEwkSdxORM0XqC+/wBBX74oyffPr DQDkXb80xEzCr6EYXGagL4yPKt0nFDmX98/RpuIVe3FGdTCVM9+7oFl8q4Q4qItZ LQ0cFgjwiV5/A1W2bQbvPR6onKNK309DEgSJciRcdUh2PrQiGFLbrtmN+0hF6urX oTYX4KZ+tmv8IDemuhWexXGuKXQ20k95Chl9Dz7UQmUf1xZ0ntiVhHQZRP6pdYnT ocd95kVrboBhkSLNOrWZz1RKDFUbRA== =78tI -----END PGP SIGNATURE----- --=-=-=--