Opened 4 years ago

Closed 4 years ago

#8433 closed defect (invalid)

DeckLink Mini Recorder && VANC op-47 subtitles

Reported by: ANTON CHELOSHKIN Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
i need stream video with subtitles from SDI Hi50(1080i) VANC OP-47
and i receive some data from Blackmagick card, but don`t know how i can do it.
Some one know how i can extract data from SDI and embed it into mpegta stream?
How to reproduce:

ffmpeg -raw_format yuv422p10 -format_code Hi50 -teletext_lines all -video_input  sdi -f decklink -i 'DeckLink Duo (1)' -vn -an -c:s dvb_subtitle -f mpegts -y /tmp/sub.ts
ffmpeg version 4.2.git-3 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
  configuration: --extra-version=3 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --enable-swresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-frei0r --enable-libx264 --enable-shared --enable-nonfree --extra-ldflags='-static-libstdc++ -static-libgcc' --enable-static --enable-pic --enable-libfdk-aac --enable-cross-compile --pkg-config=pkg-config --enable-libopenmpt --enable-libxml2 --enable-libzmq --enable-decklink --extra-cflags=-I/home/user1/src/BMSDK11.4 --extra-ldflags=-L/home/user1/src/BMSDK11.4 --enable-libklvanc --arch=x86_64
  libavutil      56. 35.100 / 56. 35.100
  libavcodec     58. 56.101 / 58. 56.101
  libavformat    58. 32.104 / 58. 32.104
  libavdevice    58.  9.100 / 58.  9.100
  libavfilter     7. 58.102 /  7. 58.102
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
[decklink @ 0x561888396180] Found Decklink mode 1920 x 1080 with rate 25.00
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, decklink, from 'DeckLink Duo (1)':
  Duration: N/A, start: 0.000000, bitrate: 1107456 kb/s
    Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
    Stream #0:1: Video: v210 (V210 / 0x30313256), yuv422p10le(top first), 1920x1080, 1105920 kb/s, 25 tbr, 1000k tbn, 1000k tbc
    Stream #0:2: Subtitle: dvb_teletext, 492x250
Output #0, mpegts, to '/tmp/sub.ts':
  Metadata:
    encoder         : Lavf58.32.104
    Stream #0:0: Subtitle: dvb_subtitle (dvbsub), 492x250
    Metadata:
      encoder         : Lavc58.56.101 dvbsub
Stream mapping:
  Stream #0:2 -> #0:0 (dvb_teletext (libzvbi_teletextdec) -> dvb_subtitle (dvbsub))
Press [q] to stop, [?] for help
size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x

Data already exists in the stream:

~/src/CaptureVANC# ./CaptureVANC -d 0 -m 10
Starting capture, press <RETURN> to stop/exit
Found VANC packet:
Line: 11
DID: 43
SDID: 02
DC: 58
Data: 51 15 3a 02 96 00 00 00 00 55 55 27 d0 ea 64 38 c7 c7 c7 c7 c7 c7 a4 99 99 99 99 99 99 99 99 99 99 99 99 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9b 1d 6c 74 03 c4 28
CS: 7f

Change History (2)

comment:1 by ANTON CHELOSHKIN, 4 years ago

libzvbi-dev is already the newest version (0.2.35-13).

comment:2 by Marton Balint, 4 years ago

Resolution: invalid
Status: newclosed

This should work, the decklink input device provides a dvb_teletext stream from the OP47 which you should be able to mux without transcoding to mpegts. If you need help on how, I suggest the ffmpeg-user mailing list.

Closing this as there is no evidence of a bug.

Note: See TracTickets for help on using tickets.