Wowza Community

mpeg-ts TCP

Hello

I’ve been testing the new mpeg-ts by TCP feature introduced in 4.5.0.02 (I was among those who requested it).

Unfortunately this fails to work.

setup:

encoder: ffmpeg pushes mpeg-ts to URI: http://IP_dedicated_server:PORT

stream file: set to URI: http://IP_dedicated_server:PORT

with relevant audio and video PID selected in Properties.

In the logs I have the following error message once the stream file is started as mpegtstcp:

MPEGTSTCPReceiver.internalConnect: Failed to connect[IP_dedicated_server:PORT] : org.apache.mina.common.RuntimeIOException: Failed to get the session[ConnectException: Connexion refusée].|at org.apache.mina.common.support.DefaultConnectFuture.getSession(DefaultConnectFuture.java:71)|at com.wowza.wms.mediacaster.MediaCasterConnection.connect(MediaCasterConnection.java:67)|at com.wowza.wms.mediacaster.MediaCasterConnection.connect(MediaCasterConnection.java:38)|at com.wowza.wms.mediacaster.mpegtstcp.MPEGTSTCPReceiver.c(MPEGTSTCPReceiver.java:313)|at com.wowza.wms.mediacaster.mpegtstcp.MPEGTSTCPReceiver.h(MPEGTSTCPReceiver.java:25)|

The same setup works fine in udp …

Is mpeg-ts tcp designed in PUSH or PULL from the encoder ?

Thanks for any insights.

same issues with wms 4.5.0.03 which supposedly did a few fixes for the mpeg-ts tcp .

but ingest from ffmpeg still fails

Hello phamkv,

I know that this question was addressed via a ticket, I wanted to post answers to your questions for other customers.

The MPEG-TS is a Pull from the encoder.

This would be a pull style of stream where the source is listening for a connection. This works only for TCP.

ffmpeg -re -i inputfile.mp4 -vcodec copy -acodec copy -f mpegts tcp://[encoder_address]:10000?listen

Regards,

Alex