How To create Dynamic Playlist

Hello I have seen Stream Class Module but it is not running and i want to create dynamic playlist

Help Me

Try this one:

https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher

It is configurable, you can download the collection jar to get it without building any code, and there are many posts discussing its use:

Richard

I don’t see ‘live/Stream1’ staring as soon as wowza is started,

Are you sure you have added

<ServerListener>
	<BaseClass>com.wowza.wms.plugin.collection.serverlistener.ServerListenerStreamPublisher</BaseClass>
</ServerListener>

to /conf/Server.xml ?

This module in default streams to application called ‘live’ with Stream name ‘Stream1’ or the name you have specified under ‘/content/streamschedule.smil’ file.

Make sure you have created application called ‘live’ under ‘/conf/’ and ‘/applications/’.

ShekarKCB

hi ,

I have see this link and

add

com.wowza.wms.plugin.collection.serverlistener.ServerListenerStreamPublisher

into server.xml file and restart Wowza it show

Configure logging: file:///usr/local/WowzaMediaServer/conf/log4j.properties

INFO server server-start Wowza Media Server 3 Trial Edition (Expires: Nov 21, 2011) 3.0.2 build866 -

INFO server comment - Server License Key: SVRT3-XXXXX-XXXXX-XXXXX-XXXXX-yb9Kf

INFO server comment - Maximum Connections: Unlimited

INFO server comment - Transcoder Streams Available: Unlimited

INFO server comment - Transcoder Watermark: Yes

INFO server comment - nDVR Available: Yes

INFO server comment - DRM Available: Yes

INFO server comment - Hardware Available Processors: 4

INFO server comment - Hardware Physical Memory: 46MB/1869MB

INFO server comment - Hardware Swap Space: 5882MB/5887MB

INFO server comment - Max File Descriptor Count: 20000

INFO server comment - Open File Descriptor Count: 55

INFO server comment - OS Name: Linux

INFO server comment - OS Version: 2.6.35.13-92.fc14.x86_64

INFO server comment - OS Architecture: amd64

INFO server comment - Java Name: OpenJDK 64-Bit Server VM

INFO server comment - Java Vendor: Sun Microsystems Inc.

INFO server comment - Java Version: 1.6.0_20

INFO server comment - Java VM Version: 19.0-b09

INFO server comment - Java Spec Version: 1.6

INFO server comment - Java Home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre

INFO server comment - Java Max Heap Size: 1066MB

INFO server comment - Java Architecture: 64

INFO server comment - Java Encoding[file.encoding]: UTF-8

INFO server comment - Java Args[0]: -Xmx1200M

INFO server comment - Java Args[1]: -Djava.net.preferIPv4Stack=true

INFO server comment - Java Args[2]: -Dcom.sun.management.jmxremote=true

INFO server comment - Java Args[3]: -Dcom.wowza.wms.runmode=standalone

INFO server comment - Java Args[4]: -Dcom.wowza.wms.native.base=linux

INFO server comment - Java Args[5]: -Dcom.wowza.wms.AppHome=/usr/local/WowzaMediaServer

INFO server comment - Java Args[6]: -Dcom.wowza.wms.ConfigURL=

INFO server comment - Java Args[7]: -Dcom.wowza.wms.ConfigHome=/usr/local/WowzaMediaServer

INFO server comment - Java GC[0]: PS Scavenge

INFO server comment - Java GC[1]: PS MarkSweep

INFO server comment - Server runmode: standalone

INFO server comment - Server native.platform: linux

INFO server comment - Server threads[h/t]: 10/10

INFO server comment - CMDInterface now listening: [any]:8083

INFO vhost vhost-start defaultVHost -

INFO server comment - defaultVHost threads[h/t]:120/80 home:/usr/local/WowzaMediaServer

INFO vhost comment defaultVHost Bind attempt ([any]:1935:4)

INFO vhost comment defaultVHost Bind successful ([any]:1935)

INFO vhost comment defaultVHost Bind attempt ([any]:8086:1)

INFO vhost comment defaultVHost Bind successful ([any]:8086)

INFO server comment - -

INFO server comment - Wowza Media Server is started!

but when i do to play open [install-dir]/examples/LiveVideoStreaming/client/live.html

Server: rtmp://[wowza-address]/live

Stream: Stream1

it show on html page Stream1 not found but on terminal show stream create

What is actual problem

i do this but this error is occur now

INFO server comment - ServerListenerStreamPublisher Started.

WARN server comment - ApplicationInstance.setHTTPStreamerList[live/definst]: HTTPStreamer is not valid: sanjosestreaming

WARN server comment - ApplicationInstance.setLiveStreamPacketizerList[live/definst]: LiveStreamPacketizer is not valid: sanjosestreamingpacketizer

INFO application app-start definst live/definst

INFO server comment - ServerListenerStreamPublisher: Streame name is ‘Stream1’

log4j:ERROR Failed to excute sql

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘Stream1’’, ‘-’, ‘-’, ‘-’, ‘33.277’, ‘-’, ‘-’, ‘-’, ‘-’, ‘-’, ‘-’, ‘-’, ‘-’, ‘-’,’ at line 1

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)

at com.mysql.jdbc.Util.getInstance(Util.java:382)

at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)

at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3603)

at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3535)

at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1989)

at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2150)

at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2620)

at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1664)

at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1583)

at org.apache.log4j.jdbc.JDBCAppender.execute(Unknown Source)

at org.apache.log4j.jdbc.JDBCAppender.flushBuffer(Unknown Source)

at org.apache.log4j.jdbc.JDBCAppender.append(Unknown Source)

at org.apache.log4j.AppenderSkeleton.doAppend(Unknown Source)

at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(Unknown Source)

at org.apache.log4j.Category.callAppenders(Unknown Source)

at org.apache.log4j.Category.forcedLog(Unknown Source)

at org.apache.log4j.Category.log(Unknown Source)

at com.wowza.wms.logging.WMSLogger.log(Unknown Source)

at com.wowza.wms.logging.WMSLogger.info(Unknown Source)

at com.wowza.wms.plugin.collection.serverlistener.ServerListenerStreamPublisher.onServerInit(ServerListenerStreamPublisher.java:103)

at com.wowza.wms.server.Server.notifyServerInit(Unknown Source)

at com.wowza.wms.server.Server.start(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.wowza.wms.bootstrap.Bootstrap.startServer(Unknown Source)

at com.wowza.wms.bootstrap.Bootstrap.main(Unknown Source)

INFO stream create - -

INFO stream publish Stream1 -

INFO server comment - ServerListenerStreamPublisher: Streame name is ‘Stream2’

INFO stream create - -

INFO stream publish Stream2 -

Error starting: java.lang.reflect.InvocationTargetException

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.wowza.wms.bootstrap.Bootstrap.startServer(Unknown Source)

at com.wowza.wms.bootstrap.Bootstrap.main(Unknown Source)

Caused by: java.lang.NoSuchMethodError: com.wowza.wms.stream.publish.Stream.setSendOnMetadata(Z)V

at com.wowza.wms.plugin.collection.serverlistener.ServerListenerStreamPublisher.onServerInit(ServerListenerStreamPublisher.java:159)

at com.wowza.wms.server.Server.notifyServerInit(Unknown Source)

at com.wowza.wms.server.Server.start(Unknown Source)

… 6 more

hi my server.xml file is like this

com.wowza.wms.plugin.amazonaws.ec2.env.ServerListenerEC2Variables

com.wowza.wms.plugin.amazonaws.ec2.mediacache.MediaCacheServerListenerAmazonEC2

com.wowza.wms.plugin.collection.serverlistener.ServerListenerStreamPublisher

till Now error is occur same , Plz Help me

then what should i do for better result

My Wowza Version is Wowza Media Server 2 for Amazon EC2 2.1.1 build24490

firstly i had try to trial version on wowza 3

Now i want to do same task on Wowza Media Server 2 for Amazon EC2 2.1.1

So problem is occurring

Try this one:

Schedule streaming

It is configurable, you can download the collection jar to get it without building any code, and there are many posts discussing its use:

Richard

Hi

This is the answer and you need to configure it like this.

Anything that you have added you need to strip it out if it doesn’t work, effectively testing each element as you go so that you know which is failing. (The last 1 you added).

Jason

Hi

Yes this is correct but this,

Caused by: java.lang.NoSuchMethodError: com.wowza.wms.stream.publish.Stream.setSendOnMetad ata(Z)V

Is usually caused by an incorrect version of Wowza or ServerListenerStreamPublisher but the above seams to be correct.

You also have,

log4j:ERROR Failed to excute sql,

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorEx ception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘Stream1’’, ‘-’, ‘-’, ‘-’, ‘33.277’, ‘-’, ‘-’, ‘-’, ‘-’, ‘-’, ‘-’, ‘-’, ‘-’, ‘-’,’ at line 1

This is a major issue that you need to get resolved before you try to get any extra parts working.

Jason

then what should i do for better result

My Wowza Version is Wowza Media Server 2 for Amazon EC2 2.1.1 build24490

Hi

You said it was this at the top of this thread,

"Configure logging: file:///usr/local/WowzaMediaServer/conf/log4j.properties

INFO server server-start Wowza Media Server 3 Trial Edition (Expires: Nov 21, 2011) 3.0.2 build866 -

INFO server comment - Server License Key: SVRT3-XXXXX-XXXXX-XXXXX-XXXXX-yb9Kf"

Jason

Hi

I believe that this only works on WMS 2.2.4+

I suggest that your best bet is to upgrade your system or move to EC2 2.2.4

Jason