Results 1 to 5 of 5

Thread: Transcoding stream pulled from IP camera using .stream file

  1. #1

    Default Transcoding stream pulled from IP camera using .stream file

    I have read the docs on the Transcoder Add-on, but I'm confused about one thing.

    I've got a .stream file defined to allow me to pull a stream from an IP camera. This works fine. I need now to deliver the stream as received as well as a couple of smaller, lower bitrate versions. I've got my transcode.xml file defined and have enabled transcoder in my Application.xml.

    What I am not clear on is how to refer to my transcoded streams. Assuming that my stream file is named "camera1.stream", if my transrate.xml contains:

    <Encode>
    <Enable>false</Enable>
    <Name>720p</Name>
    <StreamName>mp4:${SourceStreamName}_720p</StreamName>
    <Video>
    <Codec>H.264</Codec>
    <Transcoder>default</Transcoder>
    <GPUID>-1</GPUID>
    <FrameSize>
    <FitMode>fit-height</FitMode>
    <Width>1280</Width>
    <Height>720</Height>
    </FrameSize>
    <Profile>main</Profile>
    <Bitrate>1300000</Bitrate>
    <KeyFrameInterval>
    <FollowSource>false</FollowSource>
    <Interval>60</Interval>
    </KeyFrameInterval>
    <Overlays>
    <Overlay>
    <Enable>false</Enable>
    <Index>0</Index>
    <ImagePath>${com.wowza.wms.context.VHostConfigHome}/content/wowzalogo.png</ImagePath>
    <Opacity>100</Opacity>
    <Location>
    <X>5</X>
    <Y>5</Y>
    <Width>${ImageWidth}</Width>
    <Height>${ImageHeight}</Height>
    <!-- horiz: left, right, hcenter - vert: top, bottom, vcenter -->
    <Align>left,top</Align>
    </Location>
    </Overlay>
    </Overlays>
    <Parameters>
    </Parameters>
    </Video>
    <Audio>
    <!-- AAC, PassThru, Disable -->
    <Codec>AAC</Codec>
    <Bitrate>96000</Bitrate>
    </Audio>
    <Properties>
    </Properties>
    </Encode>




    how would I refer to this transcoder output? Would it be "camera1.stream_720p"? Or, if my transrate.xml file also contains:
    <StreamNameGroups>
    <!-- Note: Play stream using stream name ngrp:[stream-name]. -->
    <StreamNameGroup>
    <Name>${SourceStreamName}_all</Name>
    <Members>
    <Member>
    <EncodeName>720p</EncodeName>
    </Member>
    <Member>
    <EncodeName>360p</EncodeName>
    </Member>
    <Member>
    <EncodeName>240p</EncodeName>
    </Member>
    <Member>
    <EncodeName>160p</EncodeName>
    </Member>
    </Members>
    </StreamNameGroup>

    could I access the output as "ngrp:camera1.stream_all"? As you might guess, this is my first time going live with the Transcoder.

    EDIT: More information...

    I was thinking that if my stream file is named "camera.stream" I might be able to access the 720p version by referencing "camera.stream_720p", but that is not the case. JWPlayer complains of no such stream. Trying to load "ngrp:camera.stream" works just fine. "ngrp:camera.stream_all" doesn't. Pointers, please?
    Last edited by catdude; 07-17-2012 at 06:30 AM.

  2. #2

    Default

    If you have started camera1.stream in the Stream Manager then your guesses for the stream names are correct. See the Transcoder Tutorial Troubleshooting section for help.

  3. #3

    Default

    Quote Originally Posted by randall View Post
    If you have started camera1.stream in the Stream Manager then your guesses for the stream names are correct. See the Transcoder Tutorial Troubleshooting section for help.
    I wonder now if my issue is a licensing problem. I'm currently using my developer license, trying to get transcoding figured out then I'll switch over to a full license.

    When I request:
    curl http://<server IP>:1935/live/camera.stream/playlist.m3u8
    I get:
    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=137425,CODECS="avc1.66.41",RESOLUTION=800x450
    chunklist.m3u8?wowzasessionid=990550988

    When I request:
    curl http://<server IP>:1935/live/ngrp:camera.stream
    or
    curl http://<server IP>:1935/live/ngrp:camera.stream_all
    I get
    <html><head><title>Wowza Media Server 3 Developer Edition (Expires: Jan 10, 2013) 3.1.2 build1624</title></head><body>Wowza Media Server 3 Developer Edition (Expires: Jan 10, 2013) 3.1.2 build1624</body></html>


    Should I be able to do this initial setup with my developer's license?

  4. #4

    Default

    Try:
    curl http://<server IP>:1935/live/ngrp:camera.stream_all/playlist.m3u8

  5. #5

    Default

    Duh! Thanks - I'm still half asleep this morning.

    However:
    dan@dan:~$ curl http://<Server IP>:1935/live/ngrp:camera.stream_all/playlist.m3u8#EXTM3U
    #EXT-X-VERSION:3

    Following the debugging info in the transcoding tutorial, looking through wowzamediaserver_access.log I see:
    2012-07-17 14:38:49 UTC comment server INFO 200 - Transcoder Streams Available: 1 - - - 2.982 - - - - - - - - - - - - - - - - - - - - - - - - -
    2012-07-17 13:20:15 UTC comment server INFO 200 - TranscoderSessionNative.loadLibrary: Load transcoder list: /usr/local/WowzaMediaServer/lib-native/linux64/transcoder.list - - - 71.496 - - - - - - - - - - - - - - - - - - - - - - - - -
    2012-07-17 13:20:15 UTC comment server INFO 200 - JNI:TranscoderSession.isCUDAAvailable[_defaultVHost_:live/_definst_/idju8dh638j7.stream]: NVidia CUDA hardware acceleration is NOT available on Linux - - - 71.521 - - - - - - - - - - - - - - - - - - - - - - - - -
    2012-07-17 13:20:15 UTC comment server INFO 200 - JNI:TranscoderSession.isQuickSyncAvailable[_defaultVHost_:live/_definst_/idju8dh638j7.stream]: Intel Quick Sync hardware acceleration is NOT available on Linux - - - 71.522 - - - - - - - - - - - - - -

    but I am NOT seeing anything like :

    comment server INFO 200 LiveStreamTranscoder.init[live/_definst_/myStream]: Load transcoder template: C:\Program Files (x86)\Wowza Media Systems\Wowza Media Server 3.0.0/transcoder/templates/transrate.xml



    My Application.xml contains (excerpt):
    <Transcoder>
    <!-- To turn on transcoder set to: transcoder -->
    <LiveStreamTranscoder>transcoder</LiveStreamTranscoder>
    <!-- [templatename].xml or ${SourceStreamName}.xml -->
    <!-- Templates>${SourceStreamName}.xml,transrate.xml</Templates -->
    <Templates>${SourceStreamName}.xml,live.xml</Templates>
    <ProfileDir>${com.wowza.wms.context.VHostConfigHome}/transcoder/profiles</ProfileDir>
    <TemplateDir>${com.wowza.wms.context.VHostConfigHome}/transcoder/templates</TemplateDir>
    <Properties>
    </Properties>
    </Transcoder>
    and my /usr/local/WowzaMediaServer/transcoder/templates contains:
    [root@ip-10-10-97-239 WowzaMediaServer]# ls -al transcoder/templates/
    total 52
    drwxrwxr-x 2 wowza wowza 4096 Jul 17 14:37 .
    drwxrwxr-x 3 wowza wowza 4096 Jun 19 15:34 ..
    -rwxrwxr-x 1 wowza wowza 874 May 29 14:44 audioonly.xml
    -rwxr-xr-x 1 wowza wowza 4125 Jul 17 00:31 catdudeTCode.xml
    -rwxr-xr-x 1 wowza wowza 4125 Jul 17 14:37 live.xml
    -rwxrwxr-x 1 wowza wowza 8369 Dec 23 2011 transcode.xml
    -rwxrwxr-x 1 wowza wowza 9078 Dec 23 2011 transrate.xml



    Should the transcoder be finding my "live.xml" file in the templates dir and logging it?

Similar Threads

  1. Issues with transcoding IP Camera video
    By xlk3099 in forum AddOn: Transcoder
    Replies: 4
    Last Post: 07-30-2013, 07:12 PM
  2. Ip camera video delay after G.711 transcoding
    By cruisher in forum AddOn: Transcoder
    Replies: 8
    Last Post: 03-29-2012, 05:40 AM

Posting Permissions

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