From patchwork Sat May 21 16:09:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: TADANO Tokumei X-Patchwork-Id: 34721 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:9992:b0:82:461d:f3b with SMTP id ve18csp1126461pzb; Sat, 21 May 2022 09:11:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTTlAPB9tjYfmZLDgLI0+bTiNVq5qcODffCOq7fo+73p6JtkzXLMp8Fla00OYtixcss7HD X-Received: by 2002:a05:6402:2790:b0:427:d09b:df82 with SMTP id b16-20020a056402279000b00427d09bdf82mr16631741ede.151.1653149494195; Sat, 21 May 2022 09:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653149494; cv=none; d=google.com; s=arc-20160816; b=lFwxKvZ84ZHOPTFkrUcvKTWZPHbyuiWpr2qVu/VCFKOYYvIPGB4lFp5wrRjfLdn6Bn C1TPBfcYe6aAEnTOWeEV4FmhehqrtvONFu8vHn1x5LYffioWcpiJpyTx4Ih4edwJ2FVG 4WDR198WoZhGKHFS0V7lktJPcZ7LIDRr9ouDrcMWgUYGj0aYESGV5I9TVDBJiu7/D7Dm MII7r7x1zmCbNPzTiOvBH+E/0GB4IzmXgxtMVI2O+A+IsYMlMoS+zuQDP0ztgQCq2L/5 kVBIEk6ryayaFn0hhp26LE0byugbS0knomsG/A5NPBqmYFkED4vyQ5V4VmtQ4mq0R1Mm n+pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:message-id:date:to:from :dkim-signature:dkim-filter:delivered-to; bh=qCNyTL6f++B5wm3GwlfIVefaxRmNcZt6WKGnj/Boujw=; b=HKNfxpQJ54c7YdoyrjdFzni0m/Zr0ogNo2g44/eGUmXo+c4c9C11jKAjAmt6x6s9Oh 6xWcpliRcLyEoVb4wuUCZ3XY0+drJWtt7wW/GGG2wEXEMCmwtLWmKcty+0N1NhBtmWzL W7m4vRCk8SySGaS2SnPd/VD6wlo5sRx7l3JgloukF1zx53Tx6mVFKwTUA2cnx8iYDf6R irFqOsWYbTh49X6z3mHnKcHpUL1+ZctNVe9auoz2IY5FnHbAms+V/JFCk79WhHHVxk0Q Gz9BuV4HoHuGjU/f4gJD0II5Veu7zrBHtQjOhgTPp1tGvafrTWSdmzc5xY/KVnT0wat7 Ux2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b="KNTVtI/y"; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id nb24-20020a1709071c9800b006f44d992450si6098294ejc.11.2022.05.21.09.11.33; Sat, 21 May 2022 09:11:34 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b="KNTVtI/y"; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CB13D68B476; Sat, 21 May 2022 19:11:10 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from conssluserg-06.nifty.com (conssluserg-06.nifty.com [210.131.2.91]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7226868B33C for ; Sat, 21 May 2022 19:11:01 +0300 (EEST) Received: from osamu-pc.kimura.local (M106073025034.v4.enabler.ne.jp [106.73.25.34]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 24LGAf7U026265; Sun, 22 May 2022 01:10:41 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 24LGAf7U026265 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1653149441; bh=FJltIhYrl0rV+uOO9pFd6udRQTeC567HcHA8SypkIaQ=; h=From:To:Cc:Subject:Date:From; b=KNTVtI/yIoG7hDdXi4qGmf22lHb37Z7eMF834Tq5d8KNdajgklueQ1ICDY3YKHHUv A0Odww6mdggSMLLKh5bfKgZpr+Q0X234N5FJy7zVTNAn4AsmF8yKF8e/iOSXA/4ZBa CylZSRAMVUR18v+dEUaVPd5MxNNKDFxb39QTMNFAAs/eV0DjFsJhO2loAIkBxe8Nbc 4847mayB/pQwofl9rZZScsxy26STbWkzTKnGtSQZh9yPO9g792gR0mFO/5a9mj+UCp jMtTberiV7pb55YLN+VuUZ6Yw3gRHwuFootDI/xbpanw7IVtyboEt/0cFTbHBf99LJ Dj90xw2Nuq7ug== X-Nifty-SrcIP: [106.73.25.34] From: TADANO Tokumei To: ffmpeg-devel@ffmpeg.org Date: Sun, 22 May 2022 01:09:40 +0900 Message-Id: <20220521160943.582994-1-aimingoff@pc.nifty.jp> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 0/4] add ARIB caption decoder using libaribcaption 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 Cc: TADANO Tokumei Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 6u8m8jWk3UXy v2: combine former 1/5 and 2/5 due to the patchwork shows compile error. fix help option content which incorrectly separated to 2 lines in 2/4. amend commit message of 4/4. This patch set add another ARIB caption decoder using libaribcaption external library: https://github.com/xqq/libaribcaption The library decodes subtitles of ISDB-based TV broadcasting. It is not only for Japanese ARIB STD-B24 caption, but also for Brazilian ABNT NBR 15606-1 and Philippines version of ISDB-T. Unlike libaribb24, it supports 3 types of subtitle outputs: * text: plain text * ass: ASS formatted text * bitmap: bitmap image Default subtitle type is ASS as same as libaribb24, but it can be changed by `-sub_type` option. You can see ARIB caption with ffplay tool: ffplay -sub_type bitmap MPEG.TS Sample files exist under: https://streams.videolan.org/streams/ts/ARIB/ Some of them are encrypted and some don't contain ARIB caption data. Good samples for ARIB caption are: brazil/07-25_20-33-35_UCV - HD_.ts japan/channel2[137]_clear.ts TADANO Tokumei (4): lavc/libaribcaption.c: add ARIB caption decoder using libaribcaption configure + lavc/Makefile: define build infrastructure for libaribcaption lavc/codec_desc.c: remove AV_CODEC_PROP_TEXT_SUB property lavf/mpegts.c: set some properties for ARIB caption configure | 4 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/codec_desc.c | 1 - libavcodec/libaribb24.c | 1 + libavcodec/libaribcaption.c | 1097 +++++++++++++++++++++++++++++++++++ libavformat/mpegts.c | 19 +- 7 files changed, 1122 insertions(+), 2 deletions(-) create mode 100644 libavcodec/libaribcaption.c