# Streaming MPEGTS coming in over TCP

**URL:** <https://community.wowza.com/t/streaming-mpegts-coming-in-over-tcp/40371>\
**Category:** Wowza Streaming Engine\
**Created:** [April 30, 2013, 1:56pm UTC](https://community.wowza.com/t/streaming-mpegts-coming-in-over-tcp/40371 "2013-04-30T13:56:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![latish\_sehgal](https://avatars.discourse-cdn.com/v4/letter/l/7ba0ec/32.png) [@latish\_sehgal](https://community.wowza.com/u/latish_sehgal)\
**Post date:** [April 30, 2013, 1:56pm UTC](https://community.wowza.com/t/streaming-mpegts-coming-in-over-tcp/40371/1 "2013-04-30T13:56:27Z")

</div>

I have a video MPEG-TS video stream coming in over TCP and would like to use Wowza to stream it to a browser and ios.

One way I was able to get this to work was to use VLC to consume the tcp stream and broadcast it via RTP, and feed that to Wowza.

Is there a way for Wowza to consume the tcp (or udp) stream directly without using VLC in between? I used [this article](https://www.wowza.com/docs/how-to-publish-and-play-a-live-stream-mpeg-ts-based-encoder) as reference.

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 30, 2013, 8:13pm UTC](https://community.wowza.com/t/streaming-mpegts-coming-in-over-tcp/40371/2 "2013-04-30T20:13:57Z")

</div>

Yes, if necessary, you can VLC in between. Take a look at the transcoding examples in this article (at bottom):

[https://www.wowza.com/docs/how-to-use-vlc-as-a-live-stream-encoder-with-wowza-media-server-mpeg-ts](https://www.wowza.com/docs/how-to-use-vlc-as-a-live-stream-encoder-with-wowza-media-server-mpeg-ts)

Use the mpeg-ts guide you linked to re-stream from that source:

[https://www.wowza.com/docs/how-to-publish-and-play-a-live-stream-mpeg-ts-based-encoder](https://www.wowza.com/docs/how-to-publish-and-play-a-live-stream-mpeg-ts-based-encoder)

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 30, 2013, 8:25pm UTC](https://community.wowza.com/t/streaming-mpegts-coming-in-over-tcp/40371/3 "2013-04-30T20:25:02Z")

</div>

Oh, “without”, sorry. Then just follow the 2nd guide. You have to be able to reach the source from Wowza

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 30, 2013, 11:25pm UTC](https://community.wowza.com/t/streaming-mpegts-coming-in-over-tcp/40371/4 "2013-04-30T23:25:16Z")

</div>

What is the codec info in VLC when you play the source directly in VLC? Look in the menu: Tools \> Codec Info

Richard

---

<div class="post-metadata">

**Author:** ![latish\_sehgal](https://avatars.discourse-cdn.com/v4/letter/l/7ba0ec/32.png) [@latish\_sehgal](https://community.wowza.com/u/latish_sehgal)\
**Post date:** [April 30, 2013, 2:19pm UTC](https://community.wowza.com/t/streaming-mpegts-coming-in-over-tcp/40371/5 "2013-04-30T14:19:56Z")

</div>

Thanks Richard. As I mentioned in my post above, we can already get it to work using VLC, but would like to see if VLC can be eliminated and Wowza can consume MPEG-TS directly over tcp or udp.

> Yes, if necessary, you can VLC in between. Take a look at the transcoding examples in this article (at bottom):
> 
> [Publish a live stream from an MPEG-TS encoder](https://www.wowza.com/docs/how-to-use-vlc-as-a-live-stream-encoder-with-wowza-media-server-mpeg-ts)
> 
> Use the mpeg-ts guide you linked to re-stream from that source:
> 
> [Publish a live stream from an MPEG-TS encoder](https://www.wowza.com/docs/how-to-publish-and-play-a-live-stream-mpeg-ts-based-encoder)
> 
> Richard

---

<div class="post-metadata">

**Author:** ![latish\_sehgal](https://avatars.discourse-cdn.com/v4/letter/l/7ba0ec/32.png) [@latish\_sehgal](https://community.wowza.com/u/latish_sehgal)\
**Post date:** [April 30, 2013, 2:49pm UTC](https://community.wowza.com/t/streaming-mpegts-coming-in-over-tcp/40371/6 "2013-04-30T14:49:55Z")

</div>

I am seeing the following in the console if I try to consume UDP.

INFO stream destroy mpegts.stream -

INFO session disconnect 329289835 -

WARN server comment - RTPDePacketizerMPEGTS.handleRTPPacket: Incomplete packet: 1504:1472

WARN server comment - RTPDePacketizerMPEGTS.handleRTPPacket: Incomplete packet: 1504:1472

WARN server comment - RTPDePacketizerMPEGTS.handleRTPPacket: Incomplete packet: 1504:1472

INFO server comment - RTPMediaCaster.streamTimeout[782578434:wgv2/_definst_:mpegts.stream]: timeout:12000 diff:12013 reason:10

The udp stream is being produced using ffmpeg from a tcp source

ffmpeg -i tcp://video\_source\_ip -f mpegts -vcodec copy -acodec copy udp://local\_ip:10000
