Results 1 to 4 of 4

Thread: How to record video stream to custom file name

  1. #1
    Join Date
    Oct 2012

    Default How to record video stream to custom file name

    Flash client streams:
    _ns.publish("myStreamName", "record");

    How can I record this stream to file with name "customServerStreamName.flv" ?

  2. #2
    Join Date
    Dec 2007

  3. #3
    Join Date
    Oct 2012


    This doesnt work.
    I made simple test application

    package tv.golos.wowza;

    import com.wowza.wms.amf.AMFDataList;
    import com.wowza.wms.application.IApplicationInstance;
    import com.wowza.wms.client.IClient;
    import com.wowza.wms.module.ModuleBase;
    import com.wowza.wms.request.RequestFunction;

    public class MainApplication extends ModuleBase {

    public void onAppStart(IApplicationInstance appInstance) {

    public void onConnect(IClient client, RequestFunction function, AMFDataList params) {

    public void publish(IClient client, RequestFunction function,
    AMFDataList params) {
    getLogger().info("Overriding Publish");

    /*String streamName = getParamString(params, PARAM1);

    if (streamName.startsWith("myStream"))
    params.set(PARAM1, "yourStream");

    invokePrevious(client, function, params);*/

    public void onConnectAccept(IClient client) {


    public void onConnectReject(IClient client) {
    getLogger().info("onConnectReject: " + client.getClientId());

    public void onDisconnect(IClient client) {
    getLogger().info("onDisconnect: " + client.getClientId());

    public void onStreamCreate(IMediaStream stream) {
    getLogger().info("onStreamCreate: " + stream.getSrc());

    public void onStreamDestroy(IMediaStream stream) {
    getLogger().info("onStreamDestroy: " + stream.getSrc());
    My flash client publish stream as
    _ns.publish("testfolder/testStream", "record");
    Wowza log:
    [exec] INFO server comment - MainApplicationStarted
    [exec] INFO application app-start _definst_ golos/_definst_
    [exec] INFO session connect-pending -
    [exec] INFO session connect -
    [exec] INFO server comment - onStreamCreate: 1
    [exec] INFO stream create - -
    [exec] INFO stream publish testfolder/testStream -
    [exec] INFO stream record testfolder/testStream -
    [exec] INFO stream recordstop testfolder/testStream -
    [exec] INFO stream unpublish testfolder/testStream -
    [exec] INFO server comment - onStreamDestroy: 1
    [exec] INFO stream destroy testfolder/testStream -
    [exec] INFO session disconnect 191785254 -
    [exec] INFO server comment - onDisconnect: 191785254
    [exec] INFO application app-stop _definst_ golos/_definst_
    And file "c:\Program Files (x86)\Wowza Media Systems\Wowza Media Server 3.5.0\content\testfolder\testStream.flv"
    Successfully created.

    But I cant see this message
    getLogger().info("Overriding Publish");
    in wowza logs

  4. #4
    Join Date
    Dec 2007


    Did you add the "tv.golos.wowza.MainApplication" Module at the bottom of the /conf/[app-name]/Application.xml /Modules list?

    You should uncomment this line:

    invokePrevious(client, function, params);
    The Application.xml /StreamType can be "default" with this method.

    Try setting a break point in the publish command, see if it is running.

    Try publishing from FMLE or other stand-alone RTMP live encoder.


Similar Threads

  1. Custom filename on record stream.
    By Oleg39 in forum Live Streaming and Encoders
    Replies: 5
    Last Post: 09-05-2015, 01:47 AM
  2. How can I record the live stream and need to place it as VOD file?
    By satyanarayana.lella@gmail in forum General Forum
    Replies: 1
    Last Post: 09-23-2014, 04:49 AM
  3. Live stream record only 1 KB file
    By bizkit1 in forum AddOn: Other AddOns
    Replies: 10
    Last Post: 11-04-2012, 07:43 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