I want to re-encode the audio streams from mp2 to aac from one udp multicast MPEG TS Stream top another.
I have an udp multicast mpeg ts streram with 1 video, 3 audio, and 1 subtitles streams inside. I want to change the protocol of the audio streams from mp2 to aac. If ignore the subtitles stream everything is ok.
ffmpeg -re -i udp://224.2.2.42:1234 -map 0:0 -map 0:1 -map 0:2 -map 0:3 -c:v copy -c:a:0 libfdk_aac -c:a:1 libfdk_aac -c:a:2 libfdk_aac -f mpegts "udp://224.4.0.1:1234?pkt_size=1316"
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (mp2 (native) -> aac (libfdk_aac))
Stream #0:2 -> #0:2 (mp2 (native) -> aac (libfdk_aac))
Stream #0:3 -> #0:3 (mp2 (native) -> aac (libfdk_aac))
and analyze with astra, everything is OK:
astra --analyze udp://224.4.0.1:1234
Jan 13 20:07:42: INFO: Bitrate: 6434 Kbit/s
Jan 13 20:07:43: INFO: Bitrate: 5821 Kbit/s
Jan 13 20:07:44: INFO: Bitrate: 3011 Kbit/s
Jan 13 20:07:45: INFO: Bitrate: 3536 Kbit/s
Jan 13 20:07:46: INFO: Bitrate: 1742 Kbit/s
Jan 13 20:07:47: INFO: Bitrate: 4460 Kbit/s
Jan 13 20:07:48: INFO: Bitrate: 3819 Kbit/s
Jan 13 20:07:49: INFO: Bitrate: 5915 Kbit/s
Jan 13 20:07:50: INFO: Bitrate: 4183 Kbit/s
But if I include and the Subtitles stream with this:
/ffmpeg -re -i udp://224.2.2.42:1234 -map 0:0 -map 0:1 -map 0:2 -map 0:3 -map 0:4 -c:v copy -c:s copy -c:a:0 libfdk_aac -c:a:1 libfdk_aac -c:a:2 libfdk_aac -f mpegts "udp://224.4.0.1:1234?pkt_size=1316"
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (mp2 (native) -> aac (libfdk_aac))
Stream #0:2 -> #0:2 (mp2 (native) -> aac (libfdk_aac))
Stream #0:3 -> #0:3 (mp2 (native) -> aac (libfdk_aac))
Stream #0:4 -> #0:4 (copy)
I got this with astra --analyze udp://224.4.0.1:1234
Jan 13 20:10:36: INFO: Bitrate: 0 Kbit/s
Jan 13 20:10:37: INFO: Bitrate: 11763 Kbit/s
Jan 13 20:10:38: INFO: Bitrate: 0 Kbit/s
Jan 13 20:10:39: INFO: Bitrate: 9198 Kbit/s
Jan 13 20:10:40: INFO: Bitrate: 1686 Kbit/s
Jan 13 20:10:41: INFO: Bitrate: 0 Kbit/s
Jan 13 20:10:42: INFO: Bitrate: 14344 Kbit/s
Jan 13 20:10:43: INFO: Bitrate: 1273 Kbit/s
Jan 13 20:10:44: INFO: Bitrate: 0 Kbit/s
Jan 13 20:10:45: INFO: Bitrate: 0 Kbit/s
Jan 13 20:10:46: INFO: Bitrate: 0 Kbit/s
Jan 13 20:10:47: INFO: Bitrate: 20570 Kbit/s
Jan 13 20:10:48: INFO: Bitrate: 0 Kbit/s
Jan 13 20:10:49: INFO: Bitrate: 11492 Kbit/s
Jan 13 20:10:50: INFO: Bitrate: 4231 Kbit/s
Jan 13 20:10:51: INFO: Bitrate: 0 Kbit/s
Jan 13 20:10:52: INFO: Bitrate: 0 Kbit/s
Can someone explain this and give me solution?
I just want to change the protocol of the audio streams from an UDP MPEG TS multicast stream from mp2 to aac and stream it to another multicast address like my example above. That's all
Ivan