[FFmpeg-user] How to send all the audios track + subtitles from live channel and push by rtmp ?
barsnick at gmx.net
Sun Jun 23 17:42:49 EEST 2019
On Sat, Jun 22, 2019 at 21:46:50 +0000, Robinson Robinson wrote:
> How to send all the audios and subtitles tracks available in the video source?
> My line command is same that
> command=/usr/local/bin/ffmpeg -probesize 2000000 -correct_ts_overflow 1 -i http://ip:port/stream1 -threads auto -acodec libfaac -map 0:0 -map 0:2 -vpre ffmpeg-hwaccel-hq -s 720x576 -ab 96k -r 30 -vb 1824k -maxrate 1824k -bufsize 1824k -aspect 16:9 -filter:v yadif -f flv rtmp://ipserver:port/live/stream1
With your command line arguments "-map 0:0 -map 0:2", you are
explicitly restricting yourself to those two streams. Generally, in
ffmpeg, if you want *all* the streams from the input mapped to the
output, use "-map 0".
> Stream #0:3[0x734](por): Subtitle: dvb_subtitle ( / 0x0006)
This is a pixmap based subtitle format. AFIAU, FLV only supports text
based subtitles. ffmpeg cannot perform this conversion. You need to
find some other tool (and then you probably can't do it while
(To map all streams, but omit subtitles, use "-map 0 -sn".)
More information about the ffmpeg-user