Results 1 to 5 of 5

Thread: Converting audio to AAC before pushing

  1. #1
    Join Date
    Jun 2012
    Posts
    19

    Default Converting audio to AAC before pushing

    Hello,

    I'm trying to convert a video's audio to AAC before pushing it to a FMS based CDN. I configured the Encode/Video/Codec to PassThru, but I'm getting a blank screen (audio only?) with this configuration. Then I tried to set it to H.264 to see if it works, but with this configuration Wowza closes with a "Java(TM) Platform SE binary has stopped working" error.

    Here is what was wrote to log file before it stops:
    #Version: 1.0
    #Start-Date: 2013-03-11 13:39:13 UTC
    #Software: Wowza Media Server 3.5.0 build2989
    #Date: 2013-03-11
    #Fields: date time tz x-event x-category x-severity x-status x-ctx x-comment x-vhost x-app x-appinst x-duration s-ip s-port s-uri c-ip c-proto c-referrer c-user-agent c-client-id cs-bytes sc-bytes x-stream-id x-spos cs-stream-bytes sc-stream-bytes x-sname x-sname-query x-file-name x-file-ext x-file-size x-file-length x-suri x-suri-stem x-suri-query cs-uri-stem cs-uri-query
    2013-03-11 13:39:15 UTC server-start server INFO 200 Wowza Media Server 3 Monthly Edition 3.5.0 build2989 - - - - 1.451 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Server License Key: SVRM3-XXXXX-XXXXX-XXXXX-XXXXX-fynRF - - - 1.451 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Maximum Connections: Unlimited - - - 1.451 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Transcoder Streams Available: Unlimited - - - 1.466 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Transcoder Watermark: No - - - 1.466 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - nDVR Available: Yes - - - 1.466 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - DRM Available: Yes - - - 1.466 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Hardware Available Processors: 1 - - - 1.466 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Hardware Physical Memory: 165MB/613MB - - - 1.466 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Hardware Swap Space: 3908MB/4690MB - - - 1.466 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Max File Descriptor Count: Unlimited - - - 1.466 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - OS Name: Windows Server 2008 - - - 1.466 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - OS Version: 6.0 - - - 1.466 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - OS Architecture: amd64 - - - 1.466 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - OS CPU: amd64 - - - 1.466 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Java Name: Java HotSpot(TM) 64-Bit Server VM - - - 1.466 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Java Vendor: Oracle Corporation - - - 1.466 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Java Version: 1.7.0_10 - - - 1.466 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Java VM Version: 23.6-b04 - - - 1.466 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Java Spec Version: 1.7 - - - 1.466 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Java Home: C:\Program Files\Java\jdk1.7.0_10\jre - - - 1.466 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Java Max Heap Size: 742MB - - - 1.466 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Java Architecture: 64 - - - 1.466 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Java Locale[user.language]: en - - - 1.482 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Java Locale[user.country]: US - - - 1.482 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Java Locale[user.variant]: - - - 1.482 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Java Locale[file.encoding]: Cp1252 - - - 1.482 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Java Timezone[user.timezone]: UTC - - - 1.482 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Java Args[0]: -Xmx768M - - - 1.482 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Java Args[1]: -Dcom.sun.management.jmxremote=true - - - 1.482 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Java Args[2]: -Dcom.wowza.wms.runmode=standalone - - - 1.482 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Java Args[3]: -Dcom.wowza.wms.native.base=win - - - 1.482 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Java Args[4]: -Dcom.wowza.wms.ConfigURL= - - - 1.482 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Server runmode: standalone - - - 1.482 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Server native.platform: win - - - 1.482 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:15 UTC comment server INFO 200 - Server threads[h/t]: 10/10 - - - 1.482 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:16 UTC comment server INFO 200 - CMDInterface now listening: [any]:8083 - - - 3.058 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:18 UTC vhost-start vhost INFO 200 _defaultVHost_ - - - - 4.399 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:18 UTC comment server INFO 200 - _defaultVHost_ threads[h/t]:120/80 home:C:/Program Files (x86)/Wowza Media Systems/Wowza Media Server 3.5.0 - - - 4.586 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:18 UTC comment vhost INFO 200 _defaultVHost_ Bind attempt ([any]:80:4) - - - 4.586 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:18 UTC comment vhost INFO 200 _defaultVHost_ Bind successful ([any]:80) - - - 4.602 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:18 UTC comment vhost INFO 200 _defaultVHost_ Bind attempt ([any]:443:4) - - - 4.602 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:18 UTC comment vhost INFO 200 _defaultVHost_ Bind successful ([any]:443) - - - 4.602 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:18 UTC comment vhost INFO 200 _defaultVHost_ Bind attempt ([any]:1935:4) - - - 4.602 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:18 UTC comment vhost INFO 200 _defaultVHost_ Bind successful ([any]:1935) - - - 4.602 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:18 UTC comment vhost INFO 200 _defaultVHost_ Bind attempt ([any]:8086:1) - - - 4.602 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:18 UTC comment vhost INFO 200 _defaultVHost_ Bind successful ([any]:8086) - - - 4.618 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:18 UTC comment server INFO 200 - Server.startShutdownHook: Start server shutdown hook - - - 4.618 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:18 UTC comment server INFO 200 - Wowza Media Server is started! - - - 4.727 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:21 UTC comment server INFO 200 - ModulePushPublish.onAppStart[VCastingLive/_definst_]: Wowza Push Publishing AddOn 3.5 build3309 - - - 7.894 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:21 UTC app-start application INFO 200 _definst_ VCastingLive/_definst_ - - - 8.112 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:21 UTC connect-pending session INFO 100 189.120.209.162 - _defaultVHost_ VCastingLive _definst_ 0.764 [any] 443 rtmp://54.232.102.5/VCastingLive 189.120.209.162 rtmp rtmp://54.232.102.5/VCastingLive FMLE/3.0 (compatible; FMSc/1.0) 38409398 3277 3073 - - - - - - - - - - - - - rtmp://54.232.102.5/VCastingLive -
    2013-03-11 13:39:21 UTC connect session INFO 200 189.120.209.162 - _defaultVHost_ VCastingLive _definst_ 0.764 [any] 443 rtmp://54.232.102.5/VCastingLive 189.120.209.162 rtmp rtmp://54.232.102.5/VCastingLive FMLE/3.0 (compatible; FMSc/1.0) 38409398 3277 3073 - - - - - - - - - - - - - rtmp://54.232.102.5/VCastingLive -
    2013-03-11 13:39:22 UTC create stream INFO 200 - - _defaultVHost_ VCastingLive _definst_ 0.031 [any] 443 rtmp://54.232.102.5/VCastingLive 189.120.209.162 rtmp rtmp://54.232.102.5/VCastingLive FMLE/3.0 (compatible; FMSc/1.0) 38409398 3422 3564 1 0 0 0 - - - - - - rtmp://54.232.102.5/VCastingLive rtmp://54.232.102.5/VCastingLive - rtmp://54.232.102.5/VCastingLive -
    2013-03-11 13:39:22 UTC publish stream INFO 200 teste_1 - _defaultVHost_ VCastingLive _definst_ 0.047 [any] 443 rtmp://54.232.102.5/VCastingLive 189.120.209.162 rtmp rtmp://54.232.102.5/VCastingLive FMLE/3.0 (compatible; FMSc/1.0) 38409398 3514 3605 1 0 0 0 teste_1 videoKeyframeFrequency=5&totalDatarate=414 - - - - rtmp://54.232.102.5/VCastingLive/teste_1?videoKeyframeFrequency=5&totalDatarate=414 rtmp://54.232.102.5/VCastingLive/teste_1 videoKeyframeFrequency=5&totalDatarate=414 rtmp://54.232.102.5/VCastingLive -
    2013-03-11 13:39:23 UTC comment server INFO 200 - TranscoderSessionNative.loadLibrary: Load transcoder list: C:/Program Files (x86)/Wowza Media Systems/Wowza Media Server 3.5.0/lib-native/win64/transcoder.list - - - 9.438 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:23 UTC comment server INFO 200 - LiveStreamTranscoder.init[VCastingLive/_definst_/teste_1]: Load transcoder template: file:///C:/Program Files (x86)/Wowza Media Systems/Wowza Media Server 3.5.0/conf/VCastingLive/transcoder/templates/AudioToAAC.xml - - - 9.469 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:23 UTC comment server WARN 200 - TranscodingStreamUtils.loadTemplateStreamVideo: Error parsing transcoding template: (file:///C:/Program Files (x86)/Wowza Media Systems/Wowza Media Server 3.5.0/conf/VCastingLive/transcoder/templates/AudioToAAC.xml:aac). Video <Bitrate> can only be set to ${SourceVideoBitrate} if <Codec> is set to PassThru. Video <Bitrate> will be set to: 250000 - - - 9.516 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:23 UTC comment server INFO 200 - JNI:TranscoderSession.isCUDAAvailable[_defaultVHost_:VCastingLive/_definst_/teste_1]: NVidia CUDA hardware acceleration is NOT available - - - 9.579 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:23 UTC comment server INFO 200 - JNI:TranscoderSession.isQuickSyncAvailable[_defaultVHost_:VCastingLive/_definst_/teste_1]: Intel Quick Sync hardware acceleration is NOT available. - - - 9.579 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:23 UTC create stream INFO 200 - - - - - 0.001 - - - - - - - - - - 1 0 0 0 - - - - - - - - - - -
    2013-03-11 13:39:23 UTC publish stream INFO 200 teste_1_aac - - - - 0.003 - - - - - - - - - - 1 0 0 0 teste_1_aac - - - - - /teste_1_aac /teste_1_aac - - -
    2013-03-11 13:39:23 UTC comment server INFO 200 - JNI:TranscoderSession.videoDecoderCreate[_defaultVHost_:VCastingLive/_definst_/teste_1]: Create video decoder: H.264: default - - - 9.61 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:23 UTC comment server INFO 200 - JNI:TranscoderSession.audioDecoderCreate[_defaultVHost_:VCastingLive/_definst_/teste_1]: Create audio decoder: MP3: default - - - 9.653 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:23 UTC decoder-audio-start transcoder INFO 200 teste_1 {codec:MP3, objectType:MPEG1LAYER3, sampleRate:44100, channels:1} - - - 9.653 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:23 UTC comment server INFO 200 - JNI:TranscoderSession.audioEncoderAdd[_defaultVHost_:VCastingLive/_definst_/teste_1:aac]: Create audio encoder: AAC: default - - - 9.653 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:23 UTC comment server INFO 200 - JNI:AudioDecoderMP2.decodeFirstFrame[_defaultVHost_:VCastingLive/_definst_/teste_1]: sampleRate:44100 channels:1 - - - 9.653 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:23 UTC comment server INFO 200 - JNI:AudioEncoderAAC.initialize[_defaultVHost_:VCastingLive/_definst_/teste_1:aac]: channels:1 sampleRate:44100 bitRate:44100 - - - 9.653 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:23 UTC encoder-audio-start transcoder INFO 200 teste_1 {name:"aac", bitrate:44100, codec:AAC, objectType:LC, sampleRate:44100, channels:1} - - - 9.661 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:28 UTC decoder-video-start transcoder INFO 200 teste_1 {codec:H264, profile:Baseline, level:3.0, frameSize:640x480, displaySize:640x480, frameRate:30.0} - - - 15.191 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:28 UTC comment server INFO 200 - JNI:VideoDecoderH264.updateDecodeInfo[_defaultVHost_:VCastingLive/_definst_/teste_1]: aspect:4x3 frame:640x480 display:640x480 frameRate:30 - - - 15.191 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:28 UTC comment server INFO 200 - JNI:TranscoderSession.videoEncoderAdd[_defaultVHost_:VCastingLive/_definst_/teste_1:aac]: Create video encoder: H.264: default - - - 15.191 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:28 UTC comment server WARN 200 - TranscoderWorkerVideoEncoder.setupEncoder[aac]: Error videoEncoderInitialize[H264]: 1 - - - 15.204 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:41 UTC comment server INFO 200 - TranscodingSession.updateBehindFilter[VCastingLive/_definst_/teste_1]: Video behind filter state change. New state: KEYFRAMESONLY - - - 27.589 - - - - - - - - - - - - - - - - - - - - - - - - -
    It is running in a Windows based m1.micro EC2 instance. Is there anything I can do?!

    Thanks!

    Renato A. Ferreira

  2. #2

    Default

    Hi,

    If you look at the last couple of lines of the log it shows the instance doesnt have enough CPU.

    2013-03-11 13:39:28 UTC comment server WARN 200 - TranscoderWorkerVideoEncoder.setupEncoder[aac]: Error videoEncoderInitialize[H264]: 1 - - - 15.204 - - - - - - - - - - - - - - - - - - - - - - - - -
    2013-03-11 13:39:41 UTC comment server INFO 200 - TranscodingSession.updateBehindFilter[VCastingLive/_definst_/teste_1]: Video behind filter state change. New state: KEYFRAMESONLY - - - 27.589 - - - - - - - - - - - - - - - - - - - - - - - - -

    It is not recommended to do transcoding on anything less than a xlarge instance and even then you may get issues as CPU is not guaranteed to be available 100% of the time using EC2 I believe.

    Andrew.

  3. #3
    Join Date
    Jun 2012
    Posts
    19

    Default

    OK, Andrew. I agree with you. It's only a test instance to help me to choose a CDN provider. But I still don't think this is a reason for a JVM crash.

    But now I'm thinking that it was an issue in CDN network, because, once I said that I'm facing problems in my tests to their sales staff, everything started to work without notice. I'm using PassThru for video and AAC/44100 to audio, exactly the same configuration that was giving me a blank screen when I started. It's not the first time I think that they silently fix things when I claim.

    The JVM was crashing when I was trying H.264 in place of PassThru.

    Thank-you, Andrew!

    Renato A. Ferreira
    Last edited by Renato@Voitel; 03-11-2013 at 11:01 AM.

  4. #4
    Join Date
    Jun 2012
    Posts
    19

    Default

    I tried all the process again this morning in the following sequence:

    • Started to encode to Wowza’s transcoder;
    • => Wowza pushs the transcoded stream to CDN publishing point;
    • => RTMP streaming starts to work immediately;
    • => HTTP streaming plays only audio with a blank screen;
    • Then I try to encode directly from FMLE to CDN;
    • => RTMP streaming starts to work immediately;
    • => HTTP streaming shows the video with a bad audio (lack of AAC codec);
    • Finally I try to encode the same stream again, but using Wowza’s transcoder;
    • => Wowza pushes the transcoded stream to CDN publishing point;
    • => Everything starts to work.


    The CDN network starts to publish the transcoded video (audio to AAC) properly only after I encode the stream directly to its publishing point. Once I do this, I can start to use Wowza's transcoder again to get a good audio (AAC) support. As RTMP worked during all the process, since the first try, I suppose that we had an issue with the HTTP support. It sounds weird and I'm tired of trying to fix CDN issues. I'm observing 6% of cpu usage in EC2 instance while transcoding audio to aac.
    Last edited by Renato@Voitel; 03-13-2013 at 08:09 AM.

  5. #5
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    In the first step, you start to encode with Wowza's Transcoder.

    In the 8th step (Finally,...) you say, encode the stream again, but using the Wowza's Transcoder.

    I don't understand exactly. Did you use the Wowza Transcoder in the first step and again in the 8th step, or for the first time in the 8th step?

    Richard

Similar Threads

  1. AAC Audio only transrate
    By magpar in forum AddOn: Transcoder
    Replies: 1
    Last Post: 01-11-2012, 02:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •