Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Live-record stream formats?

  1. #1
    Join Date
    Apr 2012
    Posts
    133

    Default Live-record stream formats?

    Hi,
    Can you please tell me the way
    1. To record live stream in mp4 format
    2. To record live stream both in flv and mp4 format at a same time.

    Thanks

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    If the stream contains h.264 video and AAC or MP3 audio, you can record to .mp4 file by adding a "mp4:" prefix to the stream name in the live encoder. Or if you are using StreamManager or /conf/StartUpStreams.xml to start MediaCaster (IP camera, eg) streams, then using "mp4:" prefix on the stream name there. If you are using LivestreamRecord addon or API, it has settings for recording to .mp4 also.

    You should be able to record to .flv and .mp4 with LiveStreamRecord API. With MediaCaster streams you can use different .stream files or StreamNameAlias aliases to start different recordings, one to .flv and another to .mp4 by using "mp4:" prefix to start on and not the other.

    Richard

  3. #3
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    I.e., a stream named "mp4:myStream" will be recorded to myStream.mp4

    Richard

  4. #4
    Join Date
    Apr 2012
    Posts
    133

    Default

    Thank you Richard,
    1. I can record stream in myStream.mp4 format by publishing in a stream named "mp4:myStream" as you said successfully.
    2. I can record .flv and .mp4 format of file when recording a stream using the LivestreamRecord addon recording settings as given below:
    wms-plugin-livestreamrecordexamplemodule_3.5.jar in lib folder
    <Module>
    <Name>ModuleMediaWriterFileMover</Name>
    <Description>ModuleMediaWriterFileMover</Description>
    <Class>com.wowza.wms.module.ModuleMediaWriterFileMover</Class>
    </Module>

    At bottom:
    -----------
    <Property>
    <Name>fileMoverDestinationPath</Name>
    <Value>${com.wowza.wms.context.VHostConfigHome}/content/${com.wowza.wms.context.ApplicationInstance}</Value>
    </Property>
    <Property>
    <Name>fileMoverDeleteOriginal</Name>
    <Value>false</Value>
    <Type>Boolean</Type>
    </Property>
    <Property>
    <Name>fileMoverVersionFile</Name>
    <Value>true</Value>
    <Type>Boolean</Type>
    </Property>

    <Property>
    <Name>fileMoverFileExtension</Name>
    <Value>mp4</Value>
    <Type>String</Type>
    </Property>


    My problem is when i use the second method to record in .mp4 file, that file is not playing in iphone.
    The .mp4 file which i recorded using first method (mp4: in prefix of streamname), is playing in iphone.

    What i did wrong with second method? How to make that method as successful one since i need to record in both format

    Thanks

  5. #5
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    You are mostly showing how you are moving the file in the 2nd case. Follow this guide:

    http://www.wowza.com/forums/content....eStreamRecord)

    Set format to "2" to record to .mp4

    Richard

  6. #6
    Join Date
    Apr 2012
    Posts
    133

    Default

    Thank you richard,
    format=2 in querystring means recording in .mp4 format. Is it possible to record the stream in both .flv and .mp4 formats without moving the file?


    Thanks.

  7. #7
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    You can start two recordings: one .mp4, the other .flv. Moving the file and changing the extension by renaming has no affect, you will have an .mp4 file with an .flv extension or vice-versas

    Richard

  8. #8
    Join Date
    Apr 2012
    Posts
    133

    Default

    Quote Originally Posted by rrlanham View Post
    You can start two recordings: one .mp4, the other .flv. Moving the file and changing the extension by renaming has no affect, you will have an .mp4 file with an .flv extension or vice-versas

    Richard

    Thank you Richard,

    Please explain how can i start with two recordings as you said. What change i have to do in my application.xml?

    Thanks.

  9. #9
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Run the command once for .mp4 and again for .flv with format=1

    Richard

  10. #10
    Join Date
    Apr 2012
    Posts
    133

    Default

    Quote Originally Posted by rrlanham View Post
    Run the command once for .mp4 and again for .flv with format=1

    Richard

    Thank you Richard,

    When I follow the url (http://www.wowza.com/forums/content....eStreamRecord))


    I come to know this:

    You can add the following optional URL parameters to the URL querystring:

    option=version | append | overwrite (default value is version)
    startonkeyframe=true | false (default value is false)
    recorddata=true | false (default value is true)
    outputPath=[path] (default value is left blank, which means that files are recorded to the [install-dir]/content folder)
    outputFile=[filename].[ext] (default value is left blank, which means that the [filename] is the same as the [stream-name] and [ext] takes on the specified format value)
    format=1 | 2 (1 = FLV, 2 = MP4, default value is 1)
    SegmentSize=[bytes] (default value is 10485760 (10 megabytes))
    SegmentDuration=[seconds] (default is 900 (15 minutes))
    SegmentSchedule=[crontab string] (see Understanding crontab expressions for more information)


    http://[username]:[password]@[wowza-address]:8086/livestreamrecord?app=live&streamname=myStream&action=startRecording


    But I need not set the file format in my url but in xml.And i Know that format 1 means FLV and 2 means MP4. But I need to stream in this both at a time simultaneously.


    Help plz...

Page 1 of 2 12 LastLast

Similar Threads

  1. RTSP RECORD to record live stream
    By kkoster in forum Live Streaming and Encoder Discussion
    Replies: 2
    Last Post: 06-13-2013, 07:24 AM
  2. How to choose to record or not to record a live stream with a plugin
    By enricod75 in forum Live Streaming and Encoder Discussion
    Replies: 1
    Last Post: 12-09-2012, 05:53 AM
  3. live-record stream contnuous record without client
    By attilabiro in forum Server-side Modules and Code Samples Discussion
    Replies: 5
    Last Post: 02-02-2012, 09:59 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
  •