Re: [MEDIACTRL] ISSUE 4 - IVR Package - <record> append

Stéphane Bastien <> Sat, 09 October 2010 11:57 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 954263A69E0 for <>; Sat, 9 Oct 2010 04:57:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -0.809
X-Spam-Status: No, score=-0.809 tagged_above=-999 required=5 tests=[BAYES_05=-1.11, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.3]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id r6Mp3dzp5amt for <>; Sat, 9 Oct 2010 04:57:48 -0700 (PDT)
Received: from ( []) by (Postfix) with ESMTP id 21FA33A6894 for <>; Sat, 9 Oct 2010 04:57:47 -0700 (PDT)
Received: from CASUMHUB02.citservers.local ( by FW02.citservers.local ( with Microsoft SMTP Server (TLS) id 8.1.436.0; Sat, 9 Oct 2010 04:58:53 -0700
Received: from EXMBXCLUS01.citservers.local ([fe80::a488:d1ec:a706:3a6d]) by CASUMHUB02.citservers.local ([::1]) with mapi; Sat, 9 Oct 2010 04:58:53 -0700
From: =?iso-8859-1?Q?St=E9phane_Bastien?= <>
To: Victor Paulsamy <>
Date: Sat, 9 Oct 2010 04:58:50 -0700
Thread-Topic: [MEDIACTRL] ISSUE 4 - IVR Package - <record> append
Thread-Index: ActnqVe7eiHxQwI2RB2Z8bw5TnR8/w==
Message-ID: <>
References: <> <21866C7FE177A4449B9136B5B24B1B13052A10605C@EXMBXCLUS01.citservers.local> <> <>
In-Reply-To: <>
Accept-Language: fr-FR, en-US
Content-Language: en-US
acceptlanguage: fr-FR, en-US
Content-Type: multipart/alternative; boundary="_000_26335AEE83474F6EAF2883E547E1D058broadsoftcom_"
MIME-Version: 1.0
Cc: Melnikov Alexey <>, "" <>, "" <>, "" <>
Subject: Re: [MEDIACTRL] ISSUE 4 - IVR Package - <record> append
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Media Control WG Discussion List <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Sat, 09 Oct 2010 11:57:51 -0000


Just appending data to the end of media files work for some audio file formats, but fails for common file formats such as MOV, 3GP, and MP4. (Even appending audio to a WAV file fails unless you modify the WAV header - which means that the HTTP server handling the POST must know how to do this.) And as Lorenzo mentions in another e-mail, how can the HTTP POST deal with issues such as the first part of a recording is in one codec, while the remainder of the recording is using some other codec. This is just one more failure mode when using plain HTTP POST for appending.

I strongly recommend that we leave the appending mechanism as an implementation-specific issue in the spec.


Le 2010-10-08 à 20:09, Victor Paulsamy a écrit :

2010/10/8 Lorenzo Miniero <<>>
I agree with Stephane, appending to a media file is not like appending
text and so a "brutal" POST might result in a corrupted file.

Are you anticipating corruption or have you encountered it?

In my testing, during the last 8-months or so, append works like a charm -- even under load; I'm yet to run into recorded media corruption. We download files only for playback. Recorded media are transferred to remote (HTTP or NFS) storage, in chunks of about 40-ms audio, without storing it onboard (append is heavily used.)