# Recording a MPEG2 Transport Stream protocol (MPEG-TS)

**URL:** https://community.wowza.com/t/recording-a-mpeg2-transport-stream-protocol-mpeg-ts/36341
**Category:** Wowza Streaming Engine
**Created:** [March 30, 2011, 2:32pm UTC](https://community.wowza.com/t/recording-a-mpeg2-transport-stream-protocol-mpeg-ts/36341 "2011-03-30T14:32:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Paolo\_Latella](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@Paolo\_Latella](https://community.wowza.com/u/Paolo_Latella)
#### Post date: [March 30, 2011, 2:32pm UTC](https://community.wowza.com/t/recording-a-mpeg2-transport-stream-protocol-mpeg-ts/36341/1 "2011-03-30T14:32:14Z")

</div>

Hi all,

i need to recording a MPEG2 Transport Stream protocol (MPEG-TS) going out from a DVB-T/S. I have seen that it’s possible by setting the value stream-type = record.

The question is: the produced file in that format is it ? is possible to have a MP4 or FLV ?

thanks.

---

<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: [March 30, 2011, 6:46pm UTC](https://community.wowza.com/t/recording-a-mpeg2-transport-stream-protocol-mpeg-ts/36341/2 "2011-03-30T18:46:33Z")

</div>

For mpeg-ts stream, use StreamManager to start the stream with MediaCaster type “rtp-record”.

To record to mp4 container, use mp4: prefix in the stream name, for example stream name “mp4:mpegts.stream” will record to mpegts.stream.mp4

Where mpegts.stream is a .stream file in the content folder containing url to your stream.

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: [March 31, 2011, 6:40pm UTC](https://community.wowza.com/t/recording-a-mpeg2-transport-stream-protocol-mpeg-ts/36341/3 "2011-03-31T18:40:23Z")

</div>

Are you able to start the stream with MediaCaster type “rtp” and play it back in the Wowza LiveVideoStreaming player:

Server: rtmp://[wowza-address]:1935/dvbslive

Stream: mpegts.stream

Richard

---

<div class="post-metadata">

### Author: ![Paolo\_Latella](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@Paolo\_Latella](https://community.wowza.com/u/Paolo_Latella)
#### Post date: [March 31, 2011, 11:56am UTC](https://community.wowza.com/t/recording-a-mpeg2-transport-stream-protocol-mpeg-ts/36341/4 "2011-03-31T11:56:47Z")

</div>

Hi,

i try to record the stream but i get this error:

INFO application app-start _definst_ dvbslive/_definst_

INFO server comment - RTPMediaCaster.create[11324773]

INFO server comment - RTPMediaCaster.init[11324773]

INFO server comment - RTPMediaCaster.Reconnector[11324773:dvbslive/_definst_:dvbs-mpegts.stream]: start: 1

INFO server comment - HTTPStreamManager.onHTTPRequest: Publish stream successfully started [dvbslive/_definst_]: mp4:dvbs-mpegts.stream

INFO server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo[dvbslive/_definst_]: URI: udp://0.0.0.0:50000

INFO stream create - -

INFO stream publish dvbs-mpegts.stream -

INFO server comment - RTPUDPTransport.bind[dvbslive/_definst_]: /0.0.0.0:50000

INFO server comment - RTPMediaCaster.Reconnector[11324773:dvbslive/_definst_:dvbs-mpegts.stream]: done: 1

INFO server comment - RTPDePacketizerMPEGTS.handleRTPPacket: MPEG-TS over RTP

INFO server comment - UDPTransport.firstPacket: /0.0.0.0:50000

INFO server comment - RTPDePacketizerMPEGTS.handleRTPPacket: audioPID[MP3]: 0x28a

WARN server comment - RTPDePacketizerMPEGTS.handleRTPPacket: Packet decode error. The pesDSMTrickMode is not supported

INFO server comment - RTPMediaCaster.streamTimeout[11324773:dvbslive/_definst_:dvbs-mpegts.stream]: timeout:12000 diff:12096 reason:101

INFO server comment - RTPMediaCaster.resetConnection[11324773:dvbslive/_definst_:dvbs-mpegts.stream]:

INFO server comment - RTPMediaCaster.closeRTPSession[11324773:dvbslive/_definst_:dvbs-mpegts.stream]

INFO server comment - RTPUDPTransport.unbind[dvbslive/_definst_]: /0.0.0.0:50000

INFO stream unpublish dvbs-mpegts.stream -

INFO stream destroy dvbs-mpegts.stream -
