[FFmpeg-user] 608/ 708 Closed Captions output with ffmpeg and Decklink

Matt C asperi at hotmail.com
Wed Jan 5 07:08:31 EET 2022


It is looking better but still getting
"ERROR: libklvanc not found"  with:

cd ~/ffmpeg_sources
wget  https://ffmpeg.org/releases/ffmpeg-4.4.tar.bz2
tar -xvf ffmpeg-*.tar.bz2
cd ffmpeg-*/
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
  --prefix="$HOME/ffmpeg_build" \
  --pkg-config-flags="--static" \
  --extra-cflags="-I$HOME/ffmpeg_build/include -I$HOME/ffmpeg_sources/BMD_SDK/include" \
  --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
  --extra-libs="-lpthread -lm" \
  --bindir="$HOME/bin" \
  --enable-gpl \
  --enable-libass \
  --enable-libfdk-aac \
  --enable-libfreetype \
  --enable-libmp3lame \
  --enable-libopus \
  --enable-libvorbis \
  --enable-libvpx \
  --enable-libx264 \
  --enable-libx265 \
  --enable-nonfree \
  --enable-libklvanc\
  --enable-decklink

Log of

cd libklvanc-master

        ./autogen.sh --build
        ./configure --enable-shared=no
        make


:~/libklvanc-master$         ./configure --enable-shared=no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... none needed
checking whether fPIC compiler option is accepted... yes
checking for ranlib... ranlib
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... (cached) ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for uint16_t... yes
checking for uint8_t... yes
checking for memset... yes
checking for strrchr... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating tools/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
matt at tvadi0001:~/libklvanc-master$         make
Making all in src
make[1]: Entering directory '/home/matt/libklvanc-master/src'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/matt/libklvanc-master/src'
Making all in tools
make[1]: Entering directory '/home/matt/libklvanc-master/tools'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/matt/libklvanc-master/tools'
make[1]: Entering directory '/home/matt/libklvanc-master'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/home/matt/libklvanc-master'

________________________________
From: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> on behalf of Matt C <asperi at hotmail.com>
Sent: Wednesday, January 5, 2022 4:02 AM
To: FFmpeg user questions <ffmpeg-user at ffmpeg.org>
Subject: Re: [FFmpeg-user] 608/ 708 Closed Captions output with ffmpeg and Decklink

Maybe I got it, but not sure...?

~/libklvanc-master$ ./autogen.sh --build
aclocal: warning: couldn't open directory 'm4': No such file or directory
configure.ac:32: error: possibly undefined macro: AC_PROG_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
aclocal: warning: couldn't open directory 'm4': No such file or directory
src/Makefile.am:4: error: Libtool library used but 'LIBTOOL' is undefined
src/Makefile.am:4:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/Makefile.am:4:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/Makefile.am:4:   If 'LT_INIT' is in 'configure.ac', make sure
src/Makefile.am:4:   its definition is in aclocal's search path.
autoreconf: automake failed with exit status: 1
src/Makefile.am:4: error: Libtool library used but 'LIBTOOL' is undefined
src/Makefile.am:4:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/Makefile.am:4:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/Makefile.am:4:   If 'LT_INIT' is in 'configure.ac', make sure
src/Makefile.am:4:   its definition is in aclocal's search path.


~/libklvanc-master$ ./configure --enable-shared=no
configure: WARNING: unrecognized options: --enable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... none needed
checking whether fPIC compiler option is accepted... yes
checking for ranlib... ranlib
./configure: line 4256: AC_PROG_LIBTOOL: command not found
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for uint16_t... yes
checking for uint8_t... yes
checking for memset... yes
checking for strrchr... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: error: cannot find input file: `src/Makefile.in'
matt at tvadi0001:~/libklvanc-master$     make
Making all in src
make[1]: Entering directory '/home/matt/libklvanc-master/src'
make[1]: *** No rule to make target 'all'.  Stop.
make[1]: Leaving directory '/home/matt/libklvanc-master/src'
make: *** [Makefile:346: all-recursive] Error 1




________________________________
From: Matt C <asperi at hotmail.com>
Sent: Wednesday, January 5, 2022 1:28 AM
To: FFmpeg user questions <ffmpeg-user at ffmpeg.org>
Subject: Re: [FFmpeg-user] 608/ 708 Closed Captions output with ffmpeg and Decklink

Just trying to make sure I get this right in the compile as I have not added things before.

If I add    libklvanc \    to

sudo apt-get update -qq && sudo apt-get -y install \

like this:

sudo apt-get update -qq && sudo apt-get -y install \
  autoconf \
  automake \
  build-essential \
  cmake \
  git-core \
  libass-dev \
  libfreetype6-dev \
  libgnutls28-dev \
  libmp3lame-dev \
  libsdl2-dev \
  libtool \
  libva-dev \
  libvdpau-dev \
  libvorbis-dev \
  libxcb1-dev \
  libxcb-shm0-dev \
  libxcb-xfixes0-dev \
  libvorbis-dev \
  libklvanc \
  meson \
  ninja-build \
  pkg-config \
  texinfo \
  wget \
  yasm \
  zlib1g-dev
  sudo apt-get -y install \
  nasm yasm libx264-dev libx265-dev libnuma-dev libvpx-dev \
  libfdk-aac-dev libmp3lame-dev libopus-dev




I get:
Note, selecting 'git' instead of 'git-core'
E: Unable to locate package libklvanc

Same if I try just:
sudo apt-get update -y
sudo apt-get install -y libklvanc

And
sudo apt-get update -y
sudo apt-get install -y libklvanc-dev

Sorry, new to this, what am I missing?



I will have "--enable-libklvanc" to the ./configure line once I get to that point..

Thanks!  - Matt

________________________________
From: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> on behalf of Devin Heitmueller <devin.heitmueller at ltnglobal.com>
Sent: Tuesday, January 4, 2022 3:10 PM
To: FFmpeg user questions <ffmpeg-user at ffmpeg.org>
Subject: Re: [FFmpeg-user] 608/ 708 Closed Captions output with ffmpeg and Decklink

On Tue, Jan 4, 2022 at 9:43 AM Matt C <asperi at hotmail.com> wrote:
>
> Looking closer I see your note on pix_fmt, I will try with yuv422p10
>
> ffmpeg -i /home/matt/VideoTests/1080i_TS_SampleFileCC.mpg-pix_fmt -ar:a 48000 yuv422p10 -s 1920x1080 -r 30000/1001 -f decklink -a53cc 0 -map 0 -vcodec v210 "DeckLink SDI 4K"

So the vast majority of those args are unnecessary given the file.
Assuming you've properly built with libklvanc support it should play
just fine including captions using:

ffmpeg -i /home/matt/VideoTests/1080i_TS_SampleFileCC.mpg-pix_fmt -f
decklink -vcodec v210 "DeckLink SDI 4K"

Did you add "--enable-libklvanc" to the ./configure line?  That is
needed for the libklvanc library to be included in ffmpeg.

Devin

--
Devin Heitmueller, Senior Software Engineer
LTN Global Communications
o: +1 (301) 363-1001
w: https://ltnglobal.com  e: devin.heitmueller at ltnglobal.com
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list