Dialogic Multimedia File Conversion Tools

Similar documents
Dialogic Multimedia API

Dialogic Media Gateway Installation and Configuration Integration Note

Dialogic Continuous Speech Processing API

COMMON-ISDN-API Version 2.0 Extension for Fax Paper Formats and Resolutions

Dialogic TX Series SS7 Boards

Dialogic 1000 Media Gateway Series

IMPORTANT NOTE. Dialogic Brooktrout SR140 Fax Software with Broadvox SIP Trunking Service. Installation and Configuration Integration Note

Dialogic Multimedia API

Dialogic Media Toolkit API

Dialogic Brooktrout SR140 Fax Software with Microsoft Exchange Server 2010

Dialogic Media Gateway Installation Site Survey

Dialogic DSI Protocol Stacks

Installing Dialogic NaturalAccess SS7 Monitor Software 3.0

Dialogic PowerMedia XMS WebRTC

Using Two Ethernet Network Interface Cards with Dialogic PowerMedia Extended Media Server (XMS) Tech Note

Application Note. Deploying Survivable Unified Communications Solutions with the Dialogic 2000 Media Gateway Series

Listed below are the specific details of the PBX and gateways used in the testing to construct the following documentation.

Listed below are the specific details of the PBX and gateways used in the testing to construct the following documentation.

Application Note. A Performance Comparison of Dialogic DM3 Media Boards for PCI Express and PCI

White Paper. V.34 Fax - Making Improved Performance and Cost Savings Possible

Dialogic Continuous Speech Processing API

Dialogic Brooktrout SR140 Fax Software with babytel SIP Trunking Service

8 Digital Station Lines

Application Note. Using Dialogic Boards to Enhance Unified Messaging Applications

IMPORTANT NOTE. Dialogic Brooktrout SR140 Fax Software with NEC Philips SOPHO is3000. Installation and Configuration Integration Note

Multimedia for Host Media Processing Demo

IMPORTANT NOTE. Dialogic Brooktrout SR140 Fax Software with Alcatel-Lucent OmniPCX Enterprise. Installation and Configuration Integration Note

Application Note. Dialogic 1000 Media Gateway Series Serial CPID Configuration and Timing

Dialogic PowerMedia XMS and Amazon Web Services (AWS)

IMPORTANT NOTE. Dialogic Brooktrout SR140 Fax Software with 3Com VCX V7000 IP PBX Platform. Installation and Configuration Integration Note

Deploying a Dialogic 4000 Media Gateway as a Survivable Branch Appliance for Microsoft Lync Server 2010

8 Digital Station Lines

IMPORTANT NOTE. Dialogic Brooktrout SR140 Fax Software with Cisco Unified Communications Manager 7.0. Installation and Configuration Integration Note

Dialogic Device Management API

Dialogic PowerVille LB Load Balancer for Real-Time Communications

Optimizing A/V Content For Mobile Delivery

Dialogic Host Media Processing Software Release 3.1LIN

Intel IXP400 Digital Signal Processing (DSP) Software: Priority Setting for 10 ms Real Time Task

STM32-MP3NL/DEC. STM32 audio engine MP3 decoder library. Description. Features

Enhanced Serial Peripheral Interface (espi) ECN

Dialogic Brooktrout Fax Service Provider Software

IMPORTANT NOTE. Dialogic Brooktrout SR140 Fax Software with Mitel 3300 MXe Controller. Installation and Configuration Integration Note

IMPORTANT NOTE. Dialogic Brooktrout SR140 Fax Software with ShoreTel Gateway. Installation and Configuration Integration Note

Dialogic Global Call API

Dialogic I-Gate 4000 Session Bandwidth Optimizer Mobile Backhaul Application Topologies

Dialogic PowerMedia HMP for Windows

Dialogic Vision CX Video Gateway

Event Service API for Windows Operating Systems

Migration Guide: Numonyx StrataFlash Embedded Memory (P30) to Numonyx StrataFlash Embedded Memory (P33)

Listed below are the specific details of the PBX and gateways used in the testing to construct the following documentation.

Dialogic System Configuration Guide October 2009

Dialogic PowerMedia Media Resource Broker (MRB)

IMPORTANT NOTE. Dialogic Brooktrout SR140 Fax Software with Aastra MX-ONE. Installation and Configuration Integration Note

Dialogic PowerMedia Host Media Processing Software Release 3.0Win

IMPORTANT NOTE. Dialogic Brooktrout SR140 Fax Software with Mitel 3300 MXe Controller. Installation and Configuration Integration Note

COMMON-ISDN-API Version 2.0 Tone detection and generation extension for DTMF Facility

Dialogic System Release 6.0 PCI for Windows

Dialogic Multimedia API

Dialogic PowerMedia IP Media Server

Intel G31/P31 Express Chipset

Dialogic PowerMedia HMP for Windows Release 3.0

WHITE PAPER. Director Prof. Dr.-Ing. Albert Heuberger Am Wolfsmantel Erlangen

IMPORTANT NOTE. Dialogic Brooktrout SR140 Fax Software with ShoreTel Release 12.1 Gateway. Installation and Configuration Integration Note

Open AMR Initiative. Technical Documentation. Version 1.0 Revision

Intel Stress Bitstreams and Encoder (Intel SBE) 2017 AVS2 Release Notes (Version 2.3)

Dialogic TX 4000 Series SS7 Boards

Intel Setup and Configuration Service. (Lightweight)

Intel Education Theft Deterrent Release Note WW16'14. August 2014

White Paper Conquering Scalable WebRTC Conferencing

Intel IXP400 Software Version 1.5

Module 10 MULTIMEDIA SYNCHRONIZATION

White Paper. The Growing Importance of HD Voice in Applications

Intel 82580EB/82580DB GbE Controller Feature Software Support. LAN Access Division (LAD)

Network Working Group Request for Comments: 4424 February 2006 Updates: 4348 Category: Standards Track

Dialogic 1000 Media Gateway Series

IO [io] MAYAH. IO [io] Audio Video Codec Systems

Intel Platform Administration Technology Quick Start Guide

[MS-RTPRAD]: Real-Time Transport Protocol (RTP/RTCP): Redundant Audio Data Extensions

8 Digital Station Lines

Frequently Asked Questions (Dialogic BorderNet 500 Gateways)

DM3 Standard Component Interface Messages

Intel Server Board S2600CW2S

Aimetis Android Mobile Application. 2.x Release Notes

Encoder Core. API Specification. Revision: SOC Technologies Inc.

Dialogic Learn Mode and Tone Set File API Software Reference Copyright Dialogic Corporation

3GPP TS V5.2.0 ( )

TCG Physical Security Interoperability Alliance IP Video Use Case 002 (PSI-UC-IPV002) Specification Version 1.0 Revision 0.2

Setting up the DR Series System on Acronis Backup & Recovery v11.5. Technical White Paper

Request for Comments: 4393 Category: Standards Track March MIME Type Registrations for 3GPP2 Multimedia Files

Continuous Speech Processing API for Host Media Processing

AN3154 Application note

DbsEditor v1.8 (Database Editor) QUICK REFERENCE

AN2261 APPLICATION NOTE

Intel IXP400 Software Version 2.1

RTP Protocol Transport of H.264 Video and AAC Audio

BIOS Update Release Notes

Dialogic Vision 1000 Gateways A Smart Choice for Interactive 3G Mobile Multimedia Services.

Dialogic SS7 Protocols

ESP8266 Application Note Firmware Download Protocol

Solid State Graphics (SSG) SDK Setup and Raw Video Player Guide

Transcription:

Dialogic Multimedia File Conversion Tools User Guide November 2007 05-2453-006

3.About This Publication Purpose This document provides information on how to use the off-line multimedia file conversion tools (also referred to as utilities). These tools can be used to convert multimedia file data between industry-standard formats and the proprietary format. The proprietary multimedia format is used by the Dialogic Multimedia API, which provides the ability to record and play back digitized multimedia (audio and video) to support video services in application programs. Applicability The information in this version of the document is published for Dialogic Multimedia Software for AdvancedTCA Release 2.0. This document may apply to other releases of Dialogic Host Media Processing (HMP) Software as well as Dialogic Multimedia Software for AdvancedTCA, which is applicable to Dialogic Multimedia Platform for AdvancedTCA. How to Use this Publication The information in this publication is organized as follows: Section 1, Product Description, on page 4 provides a brief description of the Dialogic Multimedia File Conversion Tools, where to obtain them, and the proprietary multimedia format. Section 2, The mmconvert Utility, on page 5 provides detailed information for using the mmconvert utility. Section 3, The hmp3gp Utility, on page 8 provides detailed information for using the hmp3gp utility. Section 4, Proprietary Video File Format, on page 10 describes details of the proprietary video file format. Section 5, Proprietary Native Audio File Format, on page 12 describes details of the proprietary native audio file format. Dialogic Multimedia File Conversion Tools November 2007 2

Related Information Product documentation is available in the on-line documentation bookshelf provided with the software release or from the following support web site: http://www.dialogic.com/support/helpweb For information on the Dialogic Multimedia API, see the following documents in the bookshelf for your product release: For information on Dialogic Multimedia API features, as well as an overview of video technology and guidelines for developing applications using the Dialogic Multimedia API, see the Dialogic Multimedia API Programming Guide. For reference information on all functions, parameters, data structures, values, events, and error codes in the Dialogic Multimedia API, see the Dialogic Multimedia API Library Reference. For information about the Dialogic Multimedia API demo, see the Dialogic Multimedia Demo Guide. 3.Revision History This revision history summarizes the changes made in each published version of this document. Document No. Publication Date Description of Revisions 05-2453-006 November 2007 Product Description section: Added note stating that this utility is no longer recommended for use. The mmconvert Utility section: Added note stating that this utility is no longer recommended for use. Features of the hmp3gp Utility section: Updated video track information to include MPEG-4. Added 3GPP Release 5. hmp3gp Command Line Interface section: Added -i parameter. Changed g711b option to g711u option (correction). Added information about MPEG-4 and H.263. Added usage example for -i parameter. Proprietary Video File Format section: Updated for MPEG-4. 05-2453-005 September 2007 Made global changes to reflect Dialogic brand. How to Obtain the Tools section: Updated web site information. hmp3gp Command Line Interface section: Added g711a, g711u options for -a parameter. 05-2453-004 August 2007 hmp3gp Command Line Interface section: Added g723_5300, g723_6300, g726, g729a options for -a parameter. Dialogic Multimedia File Conversion Tools November 2007 3

Document No. Publication Date Description of Revisions 05-2453-003 May 2007 Product Description section: Added proprietary native audio file format in Proprietary Multimedia Format section. The mmconvert Utility section: Added mm08 option for -a in mmconvert Parameters table. The hmp3gp Utility section: Added -a audio-version parameter. Updated usage example. New Proprietary Native Audio File Format section: Added to provide details on this file format. 05-2453-002 July 2006 Global changes: Corrected document title references that referred only to the Linux operating system. 05-2453-001 January 2006 Initial version of document. Much of the information contained in this document was previously published in Chapter 5 of the Dialogic Multimedia API for Linux Programming Guide, document number 05-2455-001. The file conversion information from the Programming Guide was moved to this document and updated here with the following revisions. Global changes: Made general improvements to descriptive information and organization. The hmp3gp Utility section: Based on improvements to the utility, changed feature description to indicate conversion in both directions, and added new -d option to the command line interface for specifying the direction of the conversion between input (source) and output (destination) files. How to Obtain the Tools section: Based on web site revisions, changed the URL for the web page used to obtain the tools. 1 Product Description 1.1 Dialogic Multimedia File Conversion Tools Provided This document provides information on the following Dialogic Multimedia File Conversion Tools: mmconvert Converts multimedia file data between AVI type 2 format and the proprietary format. For details of the features and operation, see Section 2, The mmconvert Utility, on page 5. Note: The mmconvert utility is no longer recommended; it is supported for H.263 video and linear PCM audio only. Instead, use the hmp3gp utility; see Section 3, The hmp3gp Utility, on page 8. hmp3gp Converts multimedia file data between 3rd Generation Partnership Project (3GPP) Release 4 format and the proprietary format. For details of the features and operation, see Section 3, The hmp3gp Utility, on page 8. Dialogic Multimedia File Conversion Tools November 2007 4

1.2 How to Obtain the Tools For Dialogic Host Media Processing (HMP) Software users on the Linux operating system, the conversion tools can be downloaded from the following web site. Check this web site periodically for any updates to the conversion tools and their capabilities, and for corresponding updates to this document: http://www.dialogic.com/support/helpweb/dxall/hmpmedia/default.htm For Dialogic Host Media Processing (HMP) Software users on the Windows operating system, the conversion tools can be downloaded from the following web site. Check this web site periodically for any updates to the conversion tools and their capabilities, and for corresponding updates to this document: http://www.dialogic.com/support/helpweb/dxall/hmpwin/hmp30/omf/default.htm For Dialogic Multimedia Platform for AdvancedTCA users, the conversion tools can be downloaded from the following web site. Check this web site periodically for any updates to the conversion tools and their capabilities, and for corresponding updates to this document: http://www.dialogic.com/support/helpweb/mmpatca/omf/default.htm 1.3 Proprietary Multimedia Format The proprietary multimedia format is used by the Dialogic Multimedia API for video and audio play and record operations. It consists of a separate video file and one of the audio file formats, as follows: Proprietary Video File Format: Details of the format are described in Section 4, Proprietary Video File Format, on page 10. Proprietary Audio File Format: Linear PCM (128 kbps); 16-bit, 8 khz, mono, LSB- MSB ( little-endian ). Proprietary Native Audio File Format: Details of the format are described in Section 5, Proprietary Native Audio File Format, on page 12. 2 The mmconvert Utility Note: The mmconvert utility is no longer recommended; it is supported for H.263 video and linear PCM audio only. Instead, use the hmp3gp utility; see Section 3, The hmp3gp Utility, on page 8. Dialogic Multimedia File Conversion Tools November 2007 5

This section provides detailed information for using the mmconvert utility. The following topics are covered: Features of the mmconvert Utility................................... 6 mmconvert Command Line Interface................................ 6 2.1 Features of the mmconvert Utility The mmconvert utility converts multimedia data between the following file formats: Audio Video Interleave (AVI) Type-2 format with DVSD and DV25 encoded video (in PAL 720 x 576 or NTSC 720 x 480 video format) and with PCM linear 16-bit (any rate) mono or stereo audio format Proprietary multimedia format using an audio and a video file The mmconvert utility can convert files from AVI file format to the proprietary multimedia file format. It does not convert from the proprietary multimedia file format to AVI file format. Conversion includes selectable picture format (sub-qcif, QCIF, CIF), aspect ratio adaptation, bit rate, and frames per second (30, 15, 10, 6). 2.2 mmconvert Command Line Interface This section describes the command line interface for the mmconvert utility. Note: The conversion utilities perform CPU-intensive tasks and should only be used when sufficient CPU capacity is available and when they will not affect other operations on the system. For example, they should not be used while performing audio/video operations or when processing audio/video calls, because this can impact the performance and operation of the system. Command Line Parameters mmconvert <AVI-filename> -a<audio-version> -v<video-version> -z<picture-format>:<adaptation-mode>:<bit-rate>:<fps> -y<parameter-file> -x<output-video-filename> -w<output-audio-filename> Dialogic Multimedia File Conversion Tools November 2007 6

Table 1. mmconvert Parameters Parameter input-filename Description specifies filename for AVI format file used for input -a audio-version specifies version of proprietary audio file format used for output. Set to one of the following: mm07 linear PCM (128 kbps) proprietary audio file format mm08 proprietary native audio file format. For details, see Section 5, Proprietary Native Audio File Format, on page 12. -v video-version specifies version of proprietary video file format used for output. Set to version mm07. For details on the video file format, see Section 4, Proprietary Video File Format, on page 10. -z picture-format specifies the output picture format. Set to one of the following: CIF Common Intermediate Format (CIF) picture size (PAL 352 pixels by 288 pixels) QCIF Quarter Common Intermediate Format (QCIF) picture size (PAL 176 pixels by 144 pixels) SQCIF Sub-QCIF picture size (PAL 128 pixels by 96 pixels), used for mobile handsets adaptation-mode bit-rate fps specifies mode for picture adaptation. Set to one of the following: 0 keep original aspect ratio, cut sides, fill top and bottom (valid for CIF and QCIF only) 2 fit to target aspect ratio by stretching or shrinking specifies video bit rate (kbps) for output file specifies video frames per second (30, 15, 6) for output file -y parameter-filename specifies parameter file name. The file contains internal configuration parameters required for multimedia conversion algorithms, and should not be modified under normal circumstances. -x output-video-filename specifies file name of proprietary format video file used for output -w output-audio-filename specifies file name of proprietary format audio file used for output Usage Example Command Line: mmconvert /src/demo.avi -amm07 -vmm07 -zcif:0:200:30 -y./h263.par -x /dst/demo.vid -w /dst/demo.aud This command takes the AVI file (demo.avi) and produces the proprietary format video file (demo.vid) and audio file (demo.aud) as output. The resulting demo.vid video file is produced as CIF (352 x 288 pixels), in adaptation mode 0, and is suitable for transmission over 200 kbps line at 30 frames per second. Dialogic Multimedia File Conversion Tools November 2007 7

3 The hmp3gp Utility This section provides detailed information for using the hmp3gp utility. The following topics are covered: Features of the hmp3gp Utility..................................... 8 hmp3gp Command Line Interface.................................. 8 3.1 Features of the hmp3gp Utility The hmp3gp utility converts multimedia data between the following file formats: 3rd Generation Partnership Project (3GPP) Release 4/Release 5 file format (.3gp) proprietary multimedia format using an audio and a video file Note: The hmp3gp utility can convert files in either direction between 3GP format and proprietary multimedia format. The 3GP file contains two tracks: a video track with H.263 or MPEG-4 video data, and an audio track with Global System for Mobile communication Adaptive Multi-Rate Narrow Band (GSM-AMR-NB) audio encoded at a bitrate of 12.2 kbps. Note: No transrating or resizing is done, so the destination frame rate and the picture size will be the same as the source. 3.2 hmp3gp Command Line Interface This section describes the command line interface for the hmp3gp utility. Note: The conversion utilities perform CPU-intensive tasks and should only be used when sufficient CPU capacity is available and when they will not affect other operations on the system. For example, they should not be used while performing audio/video operations or when processing audio/video calls, because this can impact the performance and operation of the system. Command Line Parameters hmp3gp -i<information-on-proprietary file> -d<direction> -a<audio-file-format> -v<video-file-format> <video-filename> <audio-filename> <3gp-filename> Dialogic Multimedia File Conversion Tools November 2007 8

Table 2. hmp3gp Parameters Parameter Description -i information returns information about the proprietary file. See Usage Example 2. Note: This parameter is not supported for linear PCM file (mm07), as there is no file header on a linear file. -d direction specifies direction or destination of conversion between the specified files. The sequence of file names in the command line stays the same, and the direction parameter indicates which files are used as source and which as destination for the conversion. Set to one of the following: 0 convert to 3GP format (default) 1 convert to proprietary multimedia format -a audio file format specifies proprietary audio file format used for output. Set to one of the following: Note: This parameter is optional for -d0 (convert to 3gp format). The hmp3gp utility can determine the format based on header information. mm07 linear PCM (128 kbps) proprietary audio file format (default) mm08 proprietary native audio file format for AMR. For details, see Section 5, Proprietary Native Audio File Format, on page 12. g723_5300 proprietary native audio file format for G.723 5.3 kbps g723_6300 proprietary native audio file format for G.723 6.3 kbps g726 proprietary native audio file format for G.726 g729a proprietary native audio file format for G.729a g711a proprietary native audio file format for G.711 a-law g711u proprietary native audio file format for G.711 mu-law -v video file format This parameter is not currently supported. video filename audio filename 3gp filename specifies file name of proprietary format video file specifies file name of proprietary format audio file specifies file name for 3GP format file. Only 3GP files with H.263 or MPEG-4 video tracks are supported. Usage Example 1 Command Line: hmp3gp -d0 -amm07 /src/demo.vid /src/demo.aud /dst/demo.3gp This command takes the proprietary format video file (demo.vid) and audio file (demo.aud) and produces the 3GP format file (demo.3gp) as output. This is the default conversion direction if the -d parameter is not specified. For -d0, -a parameter is optional. If -d1 is specified, the command takes the 3GP file and produces proprietary format audio and video files from it. Dialogic Multimedia File Conversion Tools November 2007 9

Usage Example 2 Command Line: hmp3gp -i test.vid Version: 0x1 - HMP Proprietary video file codec: mp4v hmp3gp -i greeting.aud HMP Proprietary audio file codec: G729a These two examples illustrate the -i parameter which displays information about the proprietary format video file or audio file. 4 Proprietary Video File Format This section describes the proprietary video file format. Version of this File: 0.8 General: Video and Audio are in two different files. The audio will be in Linear or G.711 format. Audio file does not contain any time information. Only Video file contains the time information with respect to audio (it can be Network time stamp/local time stamp). Advantages of two files: Audio file can be played using non video channels. If a video clip contains multiple audio languages/channels (English, Spanish, German, etc.), the application can choose which one can be played. Frames need to be stored in frame decode order or sequence number order. *********************************************** Video File Format: Header Video_Data Index_Table *********************************************** Header: Contains information regarding the File: { VID_Header_HdInfo VID_Header_NTSInfo VID_Header_IndxInfo VID_Header_CodecInfo Padding } char FileType[8]; UInt32 HeaderSize; UInt32 VersionOfFileFormat; UInt32 PadSize; UInt32 nframe; }VID_Header_HdInfo; UInt32 nindex; Dialogic Multimedia File Conversion Tools November 2007 10

UInt32 IOffset; }VID_Header_IndxInfo; UInt32 StartVideoNTS; UInt32 StartAudioNTS; }VID_Header_NTSInfo; char VideoCodecName[8]; UInt32 FrameRate; UInt32 BitRate; UInt32 ImageWidth; UInt32 ImageHeight; UInt32 SizeOfCodecConfig; }VID_HEADER_CODECINFO; UInt32 profile; UInt32 level; }VID_Header_H263CodecConfig; Uint32 profilelevelid; Uint8 dcibuffer[350]; UInt16 dcisize; } VID_Header_MPEG4CodecConfig 00000000 CHAR FileType[8]= "VIDEO ". Indicates that it is a Video File. 00000008 UINT32 Size_of_the_Header: Total Header size in bytes including the Size_of_the_Header and Padding 0000000C UINT32 Version_of_File_Format: 16.16 Format, "XX.YY" XX=Major Number, YY=Minor Number 00000010 UINT32 PADsize: To make sure Video Data can start on 4 byte boundaries Add some padding. 0 means no Pad 00000014 UINT32 nframe: Number of Video Frames in the File 00000018 UINT32 StartVideoNTS: First Video packet Network or System Time Stamp 0000001C UINT32 StartAudioNTS: Video and Audio TSs are converted to either Network or System TS when they arrive and stored. This is to maintain the synchronization between Video and Audio 00000020 UINT32 nindex: Number of Frames in Index Table, 0 means there is no Index_Table and ignore the offset 00000024 UINT32 IOffset: Offset for the Index_Table: Offset in 32 bit from the start of the file 00000028 CHAR videocodecname[8]: NULL Terminated Video Codec Name. For MPEG-4 "mp4v", for H263 "s263" 00000030 UINT32 FrameRate: (16.16 Format), From this we can deduct frame buffering required for a given Task rate 00000034 UINT32 Bitrate: Bitrate of the Video Stream 00000038 UINT32 Imagewidth: 0000003C UINT32 ImageHeight: These are used by the decoders to figure out buffering requirements without scanning the compressed data. 00000040 UINT32 size of VideoCodecConfig :siz 00000044 UNION VideoCodecConfig: H.263/MPEG-4 Simple profile 00000044+siz CHAR PAD[PADsize]: *********************************************** *********************************************** Video_Data: Video_frame data[nframe]; *********************************************** Each Video_frame: UINT32 Frame_Size: Frame Size in bytes including (Frame_Size + Packet_Count + npad + RTPPacket + Pad_data) Dialogic Multimedia File Conversion Tools November 2007 11

UINT32 Packet_Count: Number of Packets in the Current Frame. UINT32 npad: Size of Pad; To make Frames as 4 byte boundaries we need some padding. Indicates the amount of padding in bytes. 0 means no pad. RTPPacket packets[packet Count]: CHAR Pad_data[npad]; *********************************************** Each RTPPacket: UINT32 Packet_Size: Packet Size including the Header. UINT32 Packet_Arrival_Time_offset: With respect to the Video Arrival TS. UINT32 Video_RTP_Header: First 4 bytes of RTP Header +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ V=2 P X CC M PT sequence number +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ timestamp +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Sequence number is stored in the file, to make sure that we present the packets the same way when we play back, i.e., if there is a packet loss and gap in the sequence numbers, while playback the same will be maintained. UINT32 Video_RTP_Timestamp: Absolute Timestamp of the Video RTP Header While playback these absolute values need to be converted to relative values and added to the video current sequence number and time stamp. Payload_Type needs to be replaced with the payload_type negotiated. CHAR Raw_Video_Data [Packet Size - 16]: Including Specific Playload Header. *********************************************** Index_Table: Contains the I Frames offset in the file. UINT32 frame_offset[nindex]: Offset of I frame from the start of the file. 5 Proprietary Native Audio File Format This section describes the proprietary native audio file format. Version of this File: 0.8 FILE_FORMAT: AUDIO_HEADER AUDIO_CODEC_HEADER SAMPLE 1 SAMPLE 2 SAMPLE 3 : : Dialogic Multimedia File Conversion Tools November 2007 12

SAMPLE N AUDIO_HEADER: char AudioFileType[8]; UInt32 SizeoftheHeader; UInt32 VersionOfFileForamt; UInt32 padsize; //Number of extra bytes at the end of header to make it word aligned UInt32 nframe; }AUD_HeadInfo; AudioFileType[]={'A','U','D','I','O',' ',' ',' '}; VersionOfFileFormat = 0x00000008; SizeoftheHeader = sizeof(aud_headinfo); UInt32 Size; //Size of this structure. UInt32 Coding; UInt32 SampleRate; UInt32 BitsPerSample; }AUD_CODEC_HEADER; //Same as the MM_AUDIO_CODEC except version SAMPLE: SAMPLE HEADER PayLoad SAMPLE HEADER: UInt32 size; //includes payload + size of this structure UInt32 CoderType; UInt32 TimeStamp; UInt32 RefLocalTime; UInt16 SeqNo; UInt16 m; //marker Bit }mm_aud_native_sample; /* Marker Bit is set according to RFC The RTP header marker bit (M) SHALL be set to 1 if the first frameblock carried in the packet contains a speech frame which is the first in a talkspurt. For all other packets the marker bit SHALL be set to zero (M=0). The coder type allows us to record RFC2833 or other Coder Packets in the same file. Seq Numbers are required so that we can record missed packets. TimeStamp and RefLocalTime are required to capture the jumps in TS. */ Dialogic Multimedia File Conversion Tools November 2007 13

Copyright 2006-2007,. All rights reserved. You may not reproduce this document in whole or in part without permission in writing from. All contents of this document are furnished for informational use only and are subject to change without notice and do not represent a commitment on the part of or its subsidiaries ( Dialogic ). Reasonable effort is made to ensure the accuracy of the information contained in the document. However, Dialogic does not warrant the accuracy of this information and cannot accept responsibility for errors, inaccuracies or omissions that may be contained in this document. INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH DIALOGIC PRODUCTS. NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. EXCEPT AS PROVIDED IN A SIGNED AGREEMENT BETWEEN YOU AND DIALOGIC, DIALOGIC ASSUMES NO LIABILITY WHATSOEVER, AND DIALOGIC DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR USE OF DIALOGIC PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY INTELLECTUAL PROPERTY RIGHT OF A THIRD PARTY. Dialogic products are not intended for use in medical, life saving, life sustaining, critical control or safety systems, or in nuclear facility applications. It is possible that the use or implementation of any one of the concepts, applications, or ideas described in this document, in marketing collateral produced by or on web pages maintained by Dialogic may infringe one or more patents or other intellectual property rights owned by third parties. Dialogic does not provide any intellectual property licenses with the sale of Dialogic products other than a license to use such product in accordance with intellectual property owned or validly licensed by Dialogic and no such licenses are provided except pursuant to a signed agreement with Dialogic. More detailed information about such intellectual property is available from Dialogic s legal department at 9800 Cavendish Blvd., 5th Floor, Montreal, Quebec, Canada H4M 2V9. Dialogic encourages all users of its products to procure all necessary intellectual property licenses required to implement any concepts or applications and does not condone or encourage any intellectual property infringement and disclaims any responsibility related thereto. These intellectual property licenses may differ from country to country and it is the responsibility of those who develop the concepts or applications to be aware of and comply with different national license requirements. Dialogic, Diva, Eicon, Eicon Networks, Dialogic Pro, EiconCard and SIPcontrol, among others, are either registered trademarks or trademarks of Dialogic. Dialogic's trademarks may be used publicly only with permission from Dialogic. Such permission may only be granted by Dialogic s legal department at 9800 Cavendish Blvd., 5th Floor, Montreal, Quebec, Canada H4M 2V9. Any authorized use of Dialogic's trademarks will be subject to full respect of the trademark guidelines published by Dialogic from time to time and any use of Dialogic s trademarks requires proper acknowledgement. Windows is a registered trademark of Microsoft Corporation in the United States and/or other countries. Other names of actual companies and products mentioned herein are the trademarks of their respective owners. Publication Date: November 2007 Document Number: 05-2453-006 Dialogic Multimedia File Conversion Tools 14