使用FFmpeg传递嵌入式隐藏式字幕

问题描述 投票:0回答:1

我正在获取HLS流,并通过DeckLink卡将其输出以将其转换为SDI。我需要传递嵌入在流中的CEA-708隐藏式字幕,并且必须实时进行。这是我当前正在使用的命令:

ffmpeg.exe -loglevel info -re -i https://my-url.m3u8 -c:v wrapped_avframe -pix_fmt uyvy422 -vf scale=1280x720 -c:a pcm_s16le -ar 48000 -ac 2 -f decklink -s 1280x720 -r 60000/1001 -b:v 4M "DeckLink SDI (2)"

我尝试将-teletext all命令添加无济于事。

这里是FFprobe的输出:

Input #0, hls, from 'https://my-url.m3u8':
  Duration: N/A, start: 83023.890600, bitrate: N/A
  Program 0
    Metadata:
      variant_bitrate : 998000
    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 640x360, Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Metadata:
      variant_bitrate : 998000
    Stream #0:1(eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 158 kb/s (default)
    Metadata:
      variant_bitrate : 998000
      comment         : Master Audio
    Stream #0:2: Data: timed_id3 (ID3  / 0x20334449)
    Metadata:
      variant_bitrate : 998000
  Program 1
    Metadata:
      variant_bitrate : 658000
    Stream #0:3: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 480x270, Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Metadata:
      variant_bitrate : 658000
    Stream #0:4(eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 158 kb/s (default)
    Metadata:
      variant_bitrate : 658000
      comment         : Master Audio
    Stream #0:5: Data: timed_id3 (ID3  / 0x20334449)
    Metadata:
      variant_bitrate : 658000
  Program 2
    Metadata:
      variant_bitrate : 1958000
    Stream #0:6: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 960x540, Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Metadata:
      variant_bitrate : 1958000
    Stream #0:7(eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 158 kb/s (default)
    Metadata:
      variant_bitrate : 1958000
      comment         : Master Audio
    Stream #0:8: Data: timed_id3 (ID3  / 0x20334449)
    Metadata:
      variant_bitrate : 1958000
  Program 3
    Metadata:
      variant_bitrate : 2658000
    Stream #0:9: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720, Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Metadata:
      variant_bitrate : 2658000
    Stream #0:10(eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 158 kb/s (default)
    Metadata:
      variant_bitrate : 2658000
      comment         : Master Audio
    Stream #0:11: Data: timed_id3 (ID3  / 0x20334449)
    Metadata:
      variant_bitrate : 2658000
Unsupported codec with id 100358 for input stream 2
Unsupported codec with id 100358 for input stream 5
Unsupported codec with id 100358 for input stream 8
Unsupported codec with id 100358 for input stream 11

如您所见,隐藏式字幕嵌入在每个VBR流中,但是在转码为SDI的过程中会被剥离。如何通过这些查看它们?

ffmpeg video-streaming http-live-streaming caption closed-captions
1个回答
0
投票

我正在为Intensity Pro卡上的复合输出解决相同的问题。你有没有得到它的工作?

© www.soinside.com 2019 - 2024. All rights reserved.