# Transcoding from mpeg2 mpeg2-ts to H.264

**URL:** <https://community.wowza.com/t/transcoding-from-mpeg2-mpeg2-ts-to-h-264/36516>\
**Category:** Wowza Streaming Engine\
**Created:** [October 13, 2011, 2:22pm UTC](https://community.wowza.com/t/transcoding-from-mpeg2-mpeg2-ts-to-h-264/36516 "2011-10-13T14:22:08Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carl\_Spangenberger](https://avatars.discourse-cdn.com/v4/letter/c/48db29/32.png) [@Carl\_Spangenberger](https://community.wowza.com/u/Carl_Spangenberger)\
**Post date:** [October 13, 2011, 2:22pm UTC](https://community.wowza.com/t/transcoding-from-mpeg2-mpeg2-ts-to-h-264/36516/1 "2011-10-13T14:22:08Z")

</div>

Trying to trans code from mpeg2 codec with mpeg2-ts with mp3 audio container to h.264 with mp4 container and the java 6 is getting a fatal error and Woza crashed when it started to set up the trans coder. Also tried with mpeg1/2 audio in mpeg2 file.

have you had other people having this problem.

Thanks for you help,

Carl Spangenberger

Error output

HTTPStreamManager.onHTTPRequest: Publish stream not found[Translive/_definst_]: stream1.stream

INFO server comment - RTPMediaCaster.create[830152036]

INFO server comment - RTPMediaCaster.init[830152036]

INFO server comment - RTPMediaCaster.Reconnector[830152036:Translive/_definst_:stream1.stream]: start: 1

INFO server comment - HTTPStreamManager.onHTTPRequest: Publish stream successfully started [Translive/_definst_]: flv:stream1.stream

INFO server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo[Translive/_definst_]: URI: udp://@0.0.0.0:10000/

INFO stream create - -

INFO server comment - RTPUDPTransport.bind[Translive/_definst_]: /0.0.0.0:10000

INFO stream publish stream1.stream -

INFO server comment - RTPMediaCaster.Reconnector[830152036:Translive/_definst_:stream1.stream]: done: 1

INFO server comment - UDPTransport.firstPacket: bind:/0.0.0.0:10000 msg:/127.0.0.1:54532

INFO server comment - RTPDePacketizerMPEGTS.handleRTPPacket: IMPORT: programID[prg:0x1,filter:none]

INFO server comment - RTPDePacketizerMPEGTS.handleRTPPacket: IMPORT: audioPID[prg:0x1,pid:0x44,filter:none]: streamType:MP3:3 audioLanguage:uknown

INFO server comment - RTPDePacketizerMPEGTS.handleRTPPacket: IMPORT: videoPID[prg:0x1,pid:0x45,filter:none]: streamType:MPEG2:2

INFO server comment - TranscoderSessionNative.loadLibrary: Load transcoder list: /usr/local/WowzaMediaServer/lib-native/linux64/transcoder.list

INFO server comment - LiveStreamTranscoder.init[Translive/_definst_/stream1.stream]: Load transcoder template: /usr/local/WowzaMediaServer/transcoder/templates/transrate.xml

INFO server comment - JNI:TranscoderSession.isCUDAAvailable[Translive/_definst_/stream1.stream]: NVidia CUDA hardware acceleration is NOT available on Linux

INFO server comment - JNI:TranscoderSession.isQuickSyncAvailable[Translive/_definst_/stream1.stream]: Intel Quick Sync hardware acceleration is NOT available on Linux

INFO stream create - -

INFO stream publish stream1.stream\_source -

INFO stream create - -

INFO stream publish stream1.stream\_360p -

INFO stream create - -

INFO stream publish stream1.stream\_160p -

INFO server comment - JNI:TranscoderSession.videoDecoderCreate[Translive/_definst_/stream1.stream]: Create video decoder: MPEG2: default

INFO transcoder decoder-video-start stream1.stream {codec:MPEG2, profile:4, level:8, frameSize:720x480, displaySize:640x480, frameRate:29.97002997002997}

INFO server comment - JNI:VideoDecoderMP2.updateDecodeInfo[Translive/_definst_/stream1.stream]: aspect:4x3 frame:720x480 display:640x480 frameRate:29.97

INFO server comment - JNI:TranscoderSession.videoEncoderAdd[Translive/_definst_/stream1.stream:360p]: Create video encoder: H.264: default

INFO server comment - JNI:TranscoderSession.videoEncoderAdd[Translive/_definst_/stream1.stream:160p]: Create video encoder: H.264: default

INFO transcoder encoder-video-start stream1.stream {name:“160p”, bitrate:200000, codec:H264, profile:66, level:12, frameSize:214x160, displaySize:214x160, frameRate:29.97}

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [October 13, 2011, 1:50pm UTC](https://community.wowza.com/t/transcoding-from-mpeg2-mpeg2-ts-to-h-264/36516/2 "2011-10-13T13:50:04Z")

</div>

We do not have similar reports. What version are you running? Is the server properly tuned:

[https://www.wowza.com/docs/how-to-do-performance-tuning](https://www.wowza.com/docs/how-to-do-performance-tuning)

What is the source of the stream. What OS and version of Java. If Java created a stack trace log we would like to see it.

The transcoder does not work on all flavors of Linux. What is the exact flavor of Linux and version.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [October 15, 2011, 10:26am UTC](https://community.wowza.com/t/transcoding-from-mpeg2-mpeg2-ts-to-h-264/36516/3 "2011-10-15T10:26:04Z")

</div>

I know that RedHat, Fedora, CentOS, Debian (5.x) and Ubuntu all work. I have not tried all versions but I have tried stable version of all of these.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [December 29, 2011, 4:58am UTC](https://community.wowza.com/t/transcoding-from-mpeg2-mpeg2-ts-to-h-264/36516/4 "2011-12-29T04:58:04Z")

</div>

If you have not already try the latest patch:

[https://www.wowza.com/docs/wowza-streaming-engine-software-updates](https://www.wowza.com/docs/wowza-streaming-engine-software-updates)

This may not resolve the problem. There is a known issue with the MainConcept libraries on SandyBridge processors on Linux. We are working with MainConcept on a resolution. We do not have a timeframe as to when this will be fixed.

Charlie

---

<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:** [January 11, 2012, 3:04pm UTC](https://community.wowza.com/t/transcoding-from-mpeg2-mpeg2-ts-to-h-264/36516/5 "2012-01-11T15:04:35Z")

</div>

Try updating to latest Sun JDK.

[http://www.oracle.com/technetwork/java/javase/downloads/index.html](http://www.oracle.com/technetwork/java/javase/downloads/index.html)

And apply latest patch

[https://www.wowza.com/docs/wowza-streaming-engine-software-updates](https://www.wowza.com/docs/wowza-streaming-engine-software-updates)

Richard

---

<div class="post-metadata">

**Author:** ![Adam\_McDonald](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/adam_mcdonald/32/384_2.png) [@Adam\_McDonald](https://community.wowza.com/u/Adam_McDonald)\
**Post date:** [January 11, 2012, 11:45am UTC](https://community.wowza.com/t/transcoding-from-mpeg2-mpeg2-ts-to-h-264/36516/6 "2012-01-11T11:45:54Z")

</div>

Michal, try adding the following to all Encode/Parameter blocks in your transcoder XML file:

mainconcept.cpu\_opt

6

Integer

---

<div class="post-metadata">

**Author:** ![Carl\_Spangenberger](https://avatars.discourse-cdn.com/v4/letter/c/48db29/32.png) [@Carl\_Spangenberger](https://community.wowza.com/u/Carl_Spangenberger)\
**Post date:** [October 14, 2011, 8:45am UTC](https://community.wowza.com/t/transcoding-from-mpeg2-mpeg2-ts-to-h-264/36516/7 "2011-10-14T08:45:17Z")

</div>

> We do not have similar reports. What version are you running? Is the server properly tuned:
> 
> [Tune Wowza Streaming Engine for performance](https://www.wowza.com/docs/how-to-do-performance-tuning)
> 
> What is the source of the stream. What OS and version of Java. If Java created a stack trace log we would like to see it.
> 
> The transcoder does not work on all flavors of Linux. What is the exact flavor of Linux and version.
> 
> Charlie

Java Error

# 

# A fatal error has been detected by the Java Runtime Environment:

# 

# SIGSEGV (0xb) at pc=0x00007fc7843d139c, pid=28723, tid=140494771353344

# 

# JRE version: 6.0\_26-b03

# Java VM: Java HotSpot™ 64-Bit Server VM (20.1-b02 mixed mode linux-amd64 compressed oops)

# Problematic frame:

# C [libmc\_enc\_avc.so+0x5c39c] unsigned char+0x325cc

# 

# An error report file with more information is saved as:

# /usr/local/WowzaMediaServer-3.0.0/bin/hs\_err\_pid28723.log

# 

# If you would like to submit a bug report, please visit:

# [http://java.sun.com/webapps/bugreport/crash.jsp](http://java.sun.com/webapps/bugreport/crash.jsp)

# 

Java version:

JRE version: 6.0\_26-b03

Linux kernel version:

Linux version 2.6.37.6-0.7-desktop (geeko@buildhost) (gcc version 4.5.1 20101208 [gcc-4\_5-branch revision 167585] (SUSE Linux) ) #1 SMP PREEMPT 2011-07-21 02:17:24 +0200

Linux OS:

OpenSuse 11.4 Desktop.

I have not tuned the server because it is a development system.

Does only work with Red hat? I know programs compiled on red hat is not compatible with other system with out patches.

---

<div class="post-metadata">

**Author:** ![Carl\_Spangenberger](https://avatars.discourse-cdn.com/v4/letter/c/48db29/32.png) [@Carl\_Spangenberger](https://community.wowza.com/u/Carl_Spangenberger)\
**Post date:** [November 3, 2011, 10:51am UTC](https://community.wowza.com/t/transcoding-from-mpeg2-mpeg2-ts-to-h-264/36516/8 "2011-11-03T10:51:30Z")

</div>

It works on Centos 6.0 vm but not on a openSUSE 11.4

Carl

---

<div class="post-metadata">

**Author:** ![csadi\_csadi](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@csadi\_csadi](https://community.wowza.com/u/csadi_csadi)\
**Post date:** [December 29, 2011, 12:47am UTC](https://community.wowza.com/t/transcoding-from-mpeg2-mpeg2-ts-to-h-264/36516/9 "2011-12-29T00:47:05Z")

</div>

cspangen, (Carl Spangenberger)

Yes, we _DO_ have the same problem as you:

_#_

_# A fatal error has been detected by the Java Runtime Environment:_

_#_

_# SIGSEGV (0xb) at pc=0x00007fae709af39c, pid=6930, tid=140386916529920_

_#_

_# JRE version: 6.0\_26-b03_

_# Java VM: Java HotSpot™ 64-Bit Server VM (20.1-b02 mixed mode linux-amd64 compressed oops)_

_# Problematic frame:_

_# C [libmc\_enc\_avc.so+0x5c39c] unsigned char+0x325cc_

_#_

_# An error report file with more information is saved as:_

_# /usr/local/WowzaMediaServer-3.0.3/bin/hs\_err\_pid6930.log_

_[thread 140386832602880 also had an error]_

_INFO transcoder encoder-video-start rtl.stream {name:“160p”, bitrate:200000, codec:H264, profile:66, level:12, frameSize:284x160, displaySize:284x160, frameRate:25.0}_

_INFO transcoder encoder-video-start rtl.stream {name:“240p”, bitrate:350000, codec:H264, profile:66, level:21, frameSize:426x240, displaySize:426x240, frameRate:25.0}_

_#_

_# If you would like to submit a bug report, please visit:_

_# [http://java.sun.com/webapps/bugreport/crash.jsp](http://java.sun.com/webapps/bugreport/crash.jsp)_

_#_

_Aborted_

Our tests previously went on well with the following configuration:

1. Dell R210 server (Intel Xeon CPU X3430 @ 2.40GHz) having Ubuntu Server 11.10, Java version OpenJDK 20.0-B11 [OK]

but now with:

1. Asus P8Z68-Vpro v3.0 (Intel Core i7-2600K CPU @ 3.40GHz) having Ubuntu Server 11.10, Java version OpenJDK 20.0-B11 [FAILED]

2. Asus P8Z68-Vpro v3.0 (Intel Core i7-2600K CPU @ 3.40GHz) having Ubuntu Server 11.10, Java version Sun 6.0\_26-b03 [FAILED]

All failures came with input of Multicast Mpeg TS stream + transcoding to H.264 + audio mp3

Any help would be appreciated. Today we contacted Sun with the errorcodes, sofar no reply yet.

Regards,

csadi

Budapest, HUNGARY

---

<div class="post-metadata">

**Author:** ![Michal\_Podlejski](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@Michal\_Podlejski](https://community.wowza.com/u/Michal_Podlejski)\
**Post date:** [January 11, 2012, 1:43pm UTC](https://community.wowza.com/t/transcoding-from-mpeg2-mpeg2-ts-to-h-264/36516/10 "2012-01-11T13:43:15Z")

</div>

Hello,

I have this same problem od Debian 64 and i7 2600 CPU:

Linux version 2.6.32-5-amd64 (Debian 2.6.32-39) ([dannf@debian.org](mailto:dannf@debian.org)) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Thu Nov 3 03:41:26 UTC 2011

INFO transcoder decoder-video-start mpegts.stream {codec:MPEG2, profile:4, level:8, frameSize:704x576, displaySize:1024x576, frameRate:25.0}

INFO server comment - JNI:VideoDecoderMP2.updateDecodeInfo[_defaultVHost_:live/_definst_/mpegts.stream]: aspect:16x9 frame:704x576 display:1024x576 frameRate:25

INFO server comment - JNI:TranscoderSession.videoEncoderAdd[_defaultVHost_:live/_definst_/mpegts.stream:360p]: Create video encoder: H.264: default

INFO server comment - JNI:TranscoderSession.videoEncoderAdd[_defaultVHost_:live/_definst_/mpegts.stream:160p]: Create video encoder: H.264: default

# 

[thread 140506733590272 also had an error]# A fatal error has been detected by the Java Runtime Environment:

# 

# SIGSEGV (0xb) at pc=0x00007fca50902bcc, pid=13528, tid=140506491250432

# 

# JRE version: 6.0\_26-b03

# Java VM: Java HotSpot™ 64-Bit Server VM (20.1-b02 mixed mode linux-amd64 compressed oops)

# Problematic frame:

# C [libmc\_enc\_avc.so+0x5cbcc] unsigned char+0x3265c

# 

# An error report file with more information is saved as:

# /usr/local/WowzaMediaServer-3.0.3/bin/hs\_err\_pid13528.log

INFO transcoder encoder-video-start mpegts.stream {name:“160p”, bitrate:200000, codec:H264, profile:Baseline, level:1.2, frameSize:284x160, displaySize:284x160, frameRate:25.0}

INFO transcoder encoder-video-start mpegts.stream {name:“360p”, bitrate:850000, codec:H264, profile:Main, level:3.0, frameSize:640x360, displaySize:640x360, frameRate:25.0}

# 

# If you would like to submit a bug report, please visit:

# [http://java.sun.com/webapps/bugreport/crash.jsp](http://java.sun.com/webapps/bugreport/crash.jsp)

# 

Aborted

root@wowza:/usr/local/WowzaMediaServer/bin# java -server -version

java version “1.6.0\_26”

Java™ SE Runtime Environment (build 1.6.0\_26-b03)

Java HotSpot™ 64-Bit Server VM (build 20.1-b02, mixed mode)

Do you have any solution for this yet?

cheers,

Michal
