[FFmpeg-user] Extracting closed captions from a udp mpegts stream

Humza Shahid allahdita at gmail.com
Thu Mar 1 14:59:31 EET 2018


 Hi

I want to extract closed captions from an mpegts stream coming through udp.
I am using the following fommand line:

ffmpeg -f lavfi -i "movie=filename=udp\\://224.2.2.37\\:1051[out+subcc]"
-map 0:1 output.srt

But its not working. It gives the following output:

ffmpeg version 3.2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
  configuration: --disable-static --enable-shared
--prefix=/home/tempbn741/source-2/install/

--enable-nonfree --extra-cflags=-I/home/tempbn741/source-2/install/include
--extra-cxxflags=
-I/home/tempbn741/source-2/install/include --extra-ldflags=-L/home/
tempbn741/source-2/install/lib
 --enable-libx264 --enable-libx265 --enable-libmp3lame --enable-gpl
--extra-libs=-ldl --enable-openssl
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.100 / 57. 64.100
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
[Parsed_movie_0 @ 0x21d9180] Failed to avformat_open_input 'udp'
[lavfi @ 0x21d7380] Error initializing filter 'movie' with args
'filename=udp://224.2.2.37:1051'
movie=filename=udp\://224.2.2.37\:1051[out+subcc]: No such file or directory

I have tried different options escaping the input string but none seems to
work.

Thanks in advance for any help

Regards


More information about the ffmpeg-user mailing list