From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 4619642493 for ; Sat, 18 Dec 2021 17:59:42 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9861C68AE7F; Sat, 18 Dec 2021 19:59:40 +0200 (EET) Received: from canta.com.ar (mail.canta.com.ar [162.217.64.29]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 09CB06899A7 for ; Sat, 18 Dec 2021 19:59:34 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=canta.com.ar; s=mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:Subject:References:To:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=grmwdw2amDqXtpo/8m+kRJCr6YPDr/x0eIoJNgXlE70=; b=jW5HBSazAG4ImAqA8znh9f4nok yolKpbbW5Z3FPQ9CVhCZ7paOKN/XyWciDuKt8kNbXY0/LqI4Gi1taspzQfN6rVh1impndp6K2+lPc pqCjGMzfWvKOmwyutZLex/38oQOi3Knad0MHsbe3Wa8u2RT5M/cNzCr/WFtry+ZTLhUI=; Received: from [181.47.151.158] (helo=[192.168.0.100]) by canta.com.ar with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.3) (envelope-from ) id 1mydzV-0001kb-C4 for ffmpeg-devel@ffmpeg.org; Sat, 18 Dec 2021 14:59:30 -0300 To: ffmpeg-devel@ffmpeg.org References: From: =?UTF-8?Q?Daniel_Cantar=c3=adn?= Message-ID: Date: Sat, 18 Dec 2021 14:59:11 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Subject: Re: [FFmpeg-devel] Politics X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: >> as well as ATSC subtitles > > There are like 2 or 3 characters in each frame. Sometimes > they are shown as they are coming in, sometimes only > when a line is completed, sometimes needs to wait > for subsequent frames before emitting new characters. > This is really not a high-precision thing. Can confirm. I did implemented this using video filters, precisely because we don't have subtitle filters and I was forced to do OCR. It works OK, but it's unrealiable when speaking about timings. You have 2 bytes/chars per frame, non-ascii chars use 2 bytes, and there are also commands that also use one or two bytes. This leaves you with a max speed of 60 chars per second for a 30 FPS video stream: a condition no other subtitle/caption format that I know of share. When there's fast dialogue, it desyncs. It later re-syncs: it doesn't drift away. But dialogue faster than 60 chars (including non-ascii and command) per second does affect the captions timings. But there's more. Implementations in players are chaotic, and some commands are ignored or works erratically. Also, there are line width issues: 30 chars max by the standard, even when some players change that. But you have to deal with word wrapping by doing text treatment and applying commands. Then there's 4 modes of rendering, as you say, which you are supposed to control but then players do what they want, and given that this are bytes added to the video frames you gotta encode two different video streams if you want to have two different caption configurations. It may be the most available format in the world. But it's also a PITA because a lot of details, and that's why I'm so interested in finally having subtitles in filters first, and dealing with the internal details later. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".