Wowza Community

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:

false

720p

mp4:${SourceStreamName}_720p

how would I refer to this transcoder output? Would it be “camera1.stream_720p”? Or, if my transrate.xml file also contains:

${SourceStreamName}_all

720p

360p

240p

160p

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?

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.

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://: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://:1935/live/ngrp:camera.stream

or

curl http://:1935/live/ngrp:camera.stream_all

I get

Wowza Media Server 3 Developer Edition (Expires: Jan 10, 2013) 3.1.2 build1624Wowza Media Server 3 Developer Edition (Expires: Jan 10, 2013) 3.1.2 build1624

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

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

However:

dan@dan:~$ curl http://: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

${SourceStreamName}.xml,live.xml

${com.wowza.wms.context.VHostConfigHome}/transcoder/profiles

${com.wowza.wms.context.VHostConfigHome}/transcoder/templates

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?

Try:

curl http://:1935/live/ngrp:camera.stream_all/playlist.m3u8