[FFmpeg-user] Read EIA-608 captions and re-mux into Mpegts as stream

Tim DeNike tim at denike.us
Mon May 29 06:35:17 EEST 2017


Im successfully transcoding a udp input MPEG2 TS stream into h264 with
NVENC and multicasting it onto the network.. The last piece of the puzzle
is to be able to read in the EIA-608 embedded CCs in the original video
stream and re-mux into the output TS as a separate stream.

I can't seem to figure out how to do it.. I can pull out the EIA-608
captions but not simultaneously add them as a stream in the final TS file
while transcoding video and copying audio.

Im sure there is some way to do it.  I just can't figure out how.

 Here is my command line for the transcode without CC:

/usr/local/bin/ffmpeg -threads auto -i "udp://
10.98.98.251:50029?fifo_size=262144&buffer_size=262144&overrun_nonfatal=1"
-ss 00:00:10 -vf yadif=0:-1:0 -s hd1080 -c:v h264_nvenc -level:v 4
-profile:v high -maxrate 10000k -bf 4 -preset:v llhp -rc-lookahead 250
-rc:v ll_2pass_size -c:a copy -packetsize 1316 -avioflags direct -max_delay
0 -f mpegts udp://239.33.35.201:1234


Version info:

ffmpeg version 3.3.1 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --extra-libs=-ldl
--extra-cflags='-I/root/sources/nvenc/Video_Codec_SDK_7.0.1/Samples/common/inc
-I/root/sources/bmsdk1054/Linux/include' --enable-gpl --enable-nonfree
--enable-nvenc --enable-libfdk_aac --enable-libmp3lame --enable-libvorbis
--enable-libx264 --disable-libtheora --pkg-config=pkg-config --cpu=host
--enable-libzvbi --enable-libass --enable-decklink --enable-libnut
--enable-openssl --disable-ffserver --enable-cuda --enable-cuvid
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100


Any help would be appreciated.

Thanks!


More information about the ffmpeg-user mailing list