[Asterisk-video] Record 3GP files (only with AMRNB)
Borja SIXTO
borja.sixto at i6net.com
Tue Jun 10 16:01:14 CDT 2008
Hi Sergio,
3GP is a strict format.
It is a Iso File, but the allowed codecs are limited and we cannot add
normally the G711 codec.
I think we can keep the extension mp4, and be more permissive with this
extension (that generate a lot a mails too, because a lot of users
download mp4 from the web and try to prompt its directly).
An other reason, is that FFmpeg don't support the linear formats added
by Mpeg4Ip (natively).
Forcing to use AMR with 3GP, generate "portable" files allowing to send
(to an external player), convert or process them.
Regards,
Borja
Sergio Garcia Murillo a écrit :
> Hi Borja,
>
> I think than forzing 3gpp compliance would bring us more troubles than
> problems it would solve.
> How many emails asking, "why can't I record a video with pcmu? please
> help" ;)
>
> BR
> Sergio
>
> Borja SIXTO escribió:
>
>> Hi Sergio,
>>
>> Here a new path.
>> 3GP is a strict format (not allow linear codecs).
>> We can lock the audio codec to AMRNB (for the .3gp files) in the mp4save
>> application with :
>>
>> /* Lock module */
>> u = ast_module_user_add(chan);
>>
>> int length = strlen(data);
>> if (!strcmp(&data[length - 4], ".3gp"))
>> {
>> if (ast_set_read_format(chan, AST_FORMAT_AMRNB))
>> ast_log(LOG_WARNING, "mp4_save: Unable to set read format to
>> AMRNB!\n");
>> }
>> else
>> {
>> if (ast_set_read_format(chan,
>> AST_FORMAT_ULAW|AST_FORMAT_ALAW|AST_FORMAT_AMRNB))
>> ast_log(LOG_WARNING, "mp4_save: Unable to set read format to
>> ULAW|ALAW|AMRNB!\n");
>> }
>>
>> /* Send video update */
>> ast_indicate(chan, AST_CONTROL_VIDUPDATE);
>>
>> The permisive format can be mp4 extension.
>>
>> Regards,
>>
>>
>> Tech from i6net
>>
>>
>> _______________________________________________
>> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>>
>> asterisk-video mailing list
>> To UNSUBSCRIBE or update options visit:
>> http://lists.digium.com/mailman/listinfo/asterisk-video
>>
>>
>
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-video mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-video
>
More information about the asterisk-video
mailing list