# MPEG2MPTS:processNewBuffer: java.lang.IllegalArgumentException

**URL:** <https://community.wowza.com/t/mpeg2mpts-java-lang-illegalargumentexception/39669>\
**Category:** Wowza Streaming Engine\
**Created:** [April 19, 2014, 12:05pm UTC](https://community.wowza.com/t/mpeg2mpts-java-lang-illegalargumentexception/39669 "2014-04-19T12:05:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_Shmayev](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@Sam\_Shmayev](https://community.wowza.com/u/Sam_Shmayev)\
**Post date:** [April 19, 2014, 12:05pm UTC](https://community.wowza.com/t/mpeg2mpts-java-lang-illegalargumentexception/39669/1 "2014-04-19T12:05:10Z")

</div>

Hi,

I use Panasonic IP camera.

I force it (camera device) to publish RTP packets to UDP port let it be p1 = 10500 on IP i1 = 192.168.10.109.

I use stream file:

```auto
{
  "uri": "udp://192.168.10.109:10500",
  "rtpTransportMode":"udp"
}

```

There is no video output in player.

I see the following warning:

```auto
MPEG2MPTS:processNewBuffer: java.lang.IllegalArgumentException: Transport packet started with 0x90

```

If we use RTSP url video will work.

It’s Ok.

But, RTSP is just signaling protocol, media is deliveried via RTP over UDP or TCP.

So where is a problem when we just push RTP packets to known UDP port?

Richard, we use payed version of Wowza. Solutions to this problem will increase a number of our licenses.

Gstreamer / FFMPEG does opens the stream.

Thanks any ideas appreciated.

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [April 30, 2014, 7:05am UTC](https://community.wowza.com/t/mpeg2mpts-java-lang-illegalargumentexception/39669/2 "2014-04-30T07:05:32Z")

</div>

Can you please provide the video codec you are sending from the camera.

Salvadore

---

<div class="post-metadata">

**Author:** ![Stephan\_Waldtmann](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@Stephan\_Waldtmann](https://community.wowza.com/u/Stephan_Waldtmann)\
**Post date:** [December 9, 2014, 10:31am UTC](https://community.wowza.com/t/mpeg2mpts-java-lang-illegalargumentexception/39669/3 "2014-12-09T10:31:55Z")

</div>

Greetings,

having the same problem here with a Funkwerk encoder.

Did you solve that problem?

Thanks, Stephan

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [December 16, 2014, 12:22pm UTC](https://community.wowza.com/t/mpeg2mpts-java-lang-illegalargumentexception/39669/4 "2014-12-16T12:22:00Z")

</div>

Hello Stephan,

This error:

```auto
MPEG2MPTS:processNewBuffer: java.lang.IllegalArgumentException: Transport packet started with...

```

Potentially looks like an encoder issue. It could be that your encoder is splitting MPEG transport packets, and across the UDP packet boundaries.

Usually encoders have a way of configuring this.

Here is a forum response from a similar situation:

> My encoder was set to the normal setting of 7 MPEG packets per IP packet.
> 
> Through an educated guess based on your suggestion of splitting packets, I changed the encoder to output only 1 MPEG packet per UDP packet, restarted the stream, and it came right up.

If you are still having trouble with this please open a ticket by sending the following folders zipped to support@wowza.com:

**[install-dir]/conf**

**[install-dir]/logs**

**[install-dir]/transcoder**

**[install-dir]/manager/logs**

**NOTE:**

_Wowza may then request additional information, such as the following:_

_A screenshot of your exact live encoder settings._

_A copy of your .stream file(s)._

_A sample of a problematic VOD asset (media file)._

_A sample recording of a problematic incoming stream._

_Kind regards,_

_Salvadore_
