[asterisk-app-dev] ARI Channel recording
Marcelo Garay
mgaray at quantumlogix.com
Wed Oct 16 13:03:19 CDT 2019
Thank you for your answer!!
Unfortunately I'm using the CEF browser based on Chromium and it doesn't support H264 because license isn't free so renegotiation is not an option.
I've noticed when recording a channel with video asterisk automatically tries to save the video feed to a separate file besides the .wav. In my case I can see "file.c:1484 ast_writefile: No such format 'vp9' " error in the logs, so I would assume is just that the code for VP9 encoding hasn't been added to Asterisk yet. Do you know if this is due to any other reason besides nobody taking the time to implement it (reasons like VP9 licensing, performance hit, etc.)? It seems like VP9 is royalty-free and the encoder source code is on GitHub. I might try to look into making a PR for this sometime in the future if I have some time, but I don't want to waste my time if this idea has already been discussed among developers and discarded for some reason.
Thanks again!
-----Original Message-----
From: asterisk-app-dev [mailto:asterisk-app-dev-bounces at lists.digium.com] On Behalf Of Joshua C. Colp
Sent: Tuesday, October 15, 2019 4:50 PM
To: asterisk-app-dev at lists.digium.com
Subject: Re: [asterisk-app-dev] ARI Channel recording
On Tue, Oct 15, 2019, at 5:14 PM, Marcelo Garay wrote:
> Hello,
>
> I’m trying to record video on a channel (from webrtc) using ARI (POST
> /channels/{channelId}/record), but when I specify h264 for the format
> I get error: ast_writestream: Unable to translate to format h264,
> source format vp9
>
> So my specific questions are:
>
> 1) Can video be recorded using ARI?
I don't know if it's ever really been tried, recording/playback of video is not something anyone has put a focus n.
> 2) What file formats can be used to record video?
Only really h264 and h263 I believe.
> 3) If H264 is possible, how do I solve the error shown above?
You'd need to negotiate h264 on the channel. As it is you're using VP9, and Asterisk does not do video transcoding.
--
Joshua C. Colp
Digium - A Sangoma Company | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
_______________________________________________
asterisk-app-dev mailing list
asterisk-app-dev at lists.digium.com
http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev
More information about the asterisk-app-dev
mailing list