Results 1 to 5 of 5

Thread: Problems with video recording

  1. #1

    Default Problems with video recording

    Hello

    I have some problems with video recording with LiveStreamRecord module

    Let me describe problem step by step

    1. I change a little videoChat sample. Now I use it to publish stream from webcam

    2. I unstall the LiveStreamRecord module and correclyly (I hope) change Application.xml of the videoChat sample.

    3. I start videoChat sample and start t publish stream from webcamera

    4. I start liveVideoStreaming sample. And try to record the stream from webcamera.

    5. All looks good - but as the result I receive the flv file in content folder with 0 length

    Here is my Application.xml

    Code:
    <Root>
    	<Application>
    		<!-- Uncomment to set application level timeout values
    		<ApplicationTimeout>60000</ApplicationTimeout>
    		<PingTimeout>12000</PingTimeout>
    		<ValidationFrequency>8000</ValidationFrequency>
    		<MaximumPendingWriteBytes>0</MaximumPendingWriteBytes>
    		<MaximumSetBufferTime>60000</MaximumSetBufferTime>
    		<MaximumStorageDirDepth>25</MaximumStorageDirDepth>
    		-->
    		<Connections>
    			<AutoAccept>true</AutoAccept>
    			<AllowDomains></AllowDomains>
    		</Connections>
    		<!--
    			StorageDir path variables
    			
    			${com.wowza.wms.AppHome} - Application home directory
    			${com.wowza.wms.ConfigHome} - Configuration home directory
    			${com.wowza.wms.context.VHost} - Virtual host name
    			${com.wowza.wms.context.VHostConfigHome} - Virtual host config directory
    			${com.wowza.wms.context.Application} - Application name
    			${com.wowza.wms.context.ApplicationInstance} - Application instance name
    			
    		-->
    		<Streams>
    			<StreamType>live</StreamType>
    			<StorageDir>${com.wowza.wms.context.VHostConfigHome}/content</StorageDir>
    			<KeyDir>${com.wowza.wms.context.VHostConfigHome}/keys</KeyDir>
    			<!-- LiveStreamPacketizers (separate with commas): cupertinostreamingpacketizer, smoothstreamingpacketizer, cupertinostreamingrepeater, smoothstreamingrepeater -->
    			<LiveStreamPacketizers></LiveStreamPacketizers>			
    			<!-- Properties defined here will override any properties defined in conf/Streams.xml for any streams types loaded by this application -->
    			<Properties>
    			</Properties>
    		</Streams>
    		<!-- HTTPStreamers (separate with commas): cupertinostreaming, smoothstreaming -->
    		<HTTPStreamers>cupertinostreaming,smoothstreaming</HTTPStreamers>			
    		<SharedObjects>
    			<StorageDir></StorageDir>
    		</SharedObjects>
    		<Client>
    			<IdleFrequency>-1</IdleFrequency>
    			<Access>
    				<StreamReadAccess>*</StreamReadAccess>
    				<StreamWriteAccess>*</StreamWriteAccess>
    				<StreamAudioSampleAccess></StreamAudioSampleAccess>
    				<StreamVideoSampleAccess></StreamVideoSampleAccess>
    				<SharedObjectReadAccess>*</SharedObjectReadAccess>
    				<SharedObjectWriteAccess>*</SharedObjectWriteAccess>
    			</Access>
    		</Client>
    		<RTP>
    			<!-- RTP/Authentication/[type]Methods defined in Authentication.xml. Default setup includes; none, basic, digest -->
    			<Authentication>
    				<PublishMethod>digest</PublishMethod>
    				<PlayMethod>digest</PlayMethod>
    			</Authentication>
    			<!-- RTP/AVSyncMethod. Valid values are: senderreport, systemclock, rtptimecode -->
    			<AVSyncMethod>senderreport</AVSyncMethod>
    			<MaxRTCPWaitTime>12000</MaxRTCPWaitTime>
    			<!-- Properties defined here will override any properties defined in conf/RTP.xml for any depacketizers loaded by this application -->
    			<Properties>
    			</Properties>
    		</RTP>
    		<MediaCaster>
    			<!-- Properties defined here will override any properties defined in conf/MediaCasters.xml for any MediaCasters loaded by this applications -->
    			<Properties>
    			</Properties>
    		</MediaCaster>
    		<MediaReader>
    			<!-- Properties defined here will override any properties defined in conf/MediaReaders.xml for any MediaReaders loaded by this applications -->
    			<Properties>
    			</Properties>
    		</MediaReader>
    		<LiveStreamPacketizer>
    			<!-- Properties defined here will override any properties defined in conf/LiveStreamPacketizers.xml for any LiveStreamPacketizers loaded by this applications -->
    			<Properties>
    			</Properties>
    		</LiveStreamPacketizer>
    		<HTTPStreamer>
    			<!-- Properties defined here will override any properties defined in conf/HTTPStreamers.xml for any HTTPStreamer loaded by this applications -->
    			<Properties>
    			</Properties>
    		</HTTPStreamer>
    		<Repeater>
    			<OriginURL></OriginURL>
    			<QueryString><![CDATA[]]></QueryString>
    		</Repeater> 
    		<Modules>
    			<Module>
    				<Name>base</Name>
    				<Description>Base</Description>
    				<Class>com.wowza.wms.module.ModuleCore</Class>
    			</Module>
    			<Module>
    				<Name>properties</Name>
    				<Description>Properties</Description>
    				<Class>com.wowza.wms.module.ModuleProperties</Class>
    			</Module>
    			<Module>
    				<Name>logging</Name>
    				<Description>Client Logging</Description>
    				<Class>com.wowza.wms.module.ModuleClientLogging</Class>
    			</Module>
    			<Module>
    				<Name>flvplayback</Name>
    				<Description>FLVPlayback</Description>
    				<Class>com.wowza.wms.module.ModuleFLVPlayback</Class>
    			</Module>
    			
    			<Module>
    				<Name>ModuleLiveStreamRecord</Name>
    				<Description>ModuleLiveStreamRecord</Description>
    				<Class>com.wowza.wms.plugin.livestreamrecord.ModuleLiveStreamRecord</Class>
    			</Module>
    			
    		</Modules>
    		<!-- Properties defined here will be added to the IApplication.getProperties() and IApplicationInstance.getProperties() collections -->
    		<Properties>
    		</Properties>
    	</Application>
    </Root>
    What I can do wrong?

    best
    Vladimir

  2. #2

    Default

    Are there any errors/warnings in the logs? Are you running at least Wowza 2.0.0.04 (which is required)?

    Charlie

  3. #3

    Default

    Hello Charlie

    Thanks for the answer. I have latest developer version on wowza

    Here is the wowza log with errors

    Code:
    INFO server server-start Wowza Media Server 2 Developer 2.0.0 build22912 -
    INFO server comment - Serial number: XXXXX-XXXXX-XXXXX-XXXXX-6ETTK
    INFO server comment - Maximum connections: 10
    INFO server comment - Hardware Available Processors: 1
    INFO server comment - Hardware Physical Memory: 562MB/1278MB
    INFO server comment - Hardware Swap Space: 1219MB/1901MB
    INFO server comment - Max File Descriptor Count: Unlimited
    INFO server comment - OS Name: Windows XP
    INFO server comment - OS Version: 5.1
    INFO server comment - OS Architecture: x86
    INFO server comment - Java Name: Java HotSpot(TM) Client VM
    INFO server comment - Java Vendor: Sun Microsystems Inc.
    INFO server comment - Java Version: 1.6.0_02
    INFO server comment - Java VM Version: 1.6.0_02-b06
    INFO server comment - Java Spec Version: 1.6
    INFO server comment - Java Home: C:\Program Files\Java\jre1.6.0_02
    INFO server comment - Java Max Heap Size: 762MB
    INFO server comment - Java Architecture: 32
    INFO server comment - CMDInterface now listening: [any]:8083
    INFO server comment - _defaultVHost_ home directory: C:\Program Files\Wowza Medi
    a Systems\Wowza Media Server 2
    INFO vhost vhost-start _defaultVHost_ -
    INFO vhost comment _defaultVHost_ Bind attempt ([any]:1935)
    INFO vhost comment _defaultVHost_ Bind successful ([any]:1935)
    INFO vhost comment _defaultVHost_ Bind attempt ([any]:8086)
    INFO vhost comment _defaultVHost_ Bind successful ([any]:8086)
    INFO server comment - ModuleStreamRecord.onAppStart
    INFO application app-start _definst_ videochat/_definst_
    INFO session connect-pending 127.0.0.1 -
    INFO session connect 127.0.0.1 -
    INFO stream create - -
    INFO stream publish testing -
    INFO session connect-pending 127.0.0.1 -
    INFO session connect 127.0.0.1 -
    INFO stream create - -
    INFO stream play testing -
    INFO stream stop testing -
    INFO stream destroy testing -
    INFO session disconnect 1737569583 -
    INFO session connect-pending 127.0.0.1 -
    INFO session connect 127.0.0.1 -
    INFO stream create - -
    INFO stream play testing -
    INFO server comment - ModuleStreamRecord.startRecording: stream:testing format:f
    lv append:true outputPath:C:\Program Files\Wowza Media Systems\Wowza Media Serve
    r 2\content\testing.flv versionFile:true startOnKeyFrame:true recordData:true
    ERROR server comment - getLastTC[1]: java.lang.NullPointerException
    INFO server comment - ModuleStreamRecord.stopRecording: testing
    Exception in thread "Thread-209" java.lang.NoSuchMethodError: com.wowza.wms.appl
    ication.IApplicationInstance.notifyMediaWriterOnWriteComplete(Lcom/wowza/wms/str
    eam/IMediaStream;Ljava/io/File;)V
            at com.wowza.wms.plugin.integration.liverecord.LiveStreamRecorderFLV.clo
    seFile(Unknown Source)
            at com.wowza.wms.plugin.integration.liverecord.LiveStreamRecorderFLV.wor
    kStop(Unknown Source)
            at com.wowza.wms.plugin.integration.liverecord.LiveStreamRecorderWorker.
    run(Unknown Source)
    best
    Vladimir

  4. #4

    Default

    You need to install the latest patch:

    http://www.wowzamedia.com/devbuild.html

    Charlie

  5. #5

    Default

    Hello Charlie

    Thanks a lot - this is help

    best
    Vladimir

Tags for this Thread

Posting Permissions

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