How to send all the audios track + subtitles from live channel and push by rtmp ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to send all the audios track + subtitles from live channel and push by rtmp ?

Robison Robison
Hello everybody!

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 <a href="http://ip:port/stream1">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

The MAP STREAM

 Metadata:
      service_name    : Stream1
      service_provider:
    Stream #0:0[0x730]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x731](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.0(side), fltp, 384 kb/s
    Stream #0:2[0x732](dub): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:3[0x734](por): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)


Thanks

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to send all the audios track + subtitles from live channel and push by rtmp ?

Moritz Barsnick
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 <a href="http://ip:port/stream1">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 ([6][0][0][0] / 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
streaming.)

(To map all streams, but omit subtitles, use "-map 0 -sn".)

Cheers,
Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".