[FFmpeg-devel] [PATCH] Vivo demuxer
Paul B Mahol
onemda at gmail.com
Tue Jul 17 18:40:49 CEST 2012
On 7/17/12, compn <tempn at twmi.rr.com> wrote:
> On Tue, 17 Jul 2012 02:36:44 +0000, Paul B Mahol wrote:
>>From: Daniel Verkamp <daniel at drv.nu>
>>
>>---
>>
>>Looks like G.723_1 works (more or less) fine for version 1 files,
>>
>>Audio and video are out of sync.
>>
>>+ if (!strcmp(key, "Version")) {
>>+ if (sscanf(value, "Vivo/%d.", &vivo->version) != 1)
>>+ return AVERROR_INVALIDDATA;
>>+ value_used = 1;
>>+ } else if (!strcmp(key, "FPS")) {
>>+ vivo->fps = atof(value);
>>+ value_used = 1;
>>+ }
>>+
>>+ if (!value_used)
>>+ av_dict_set(&s->metadata, key, value, 0);
>>+ }
>>+
>>+ return 0;
>>+}
>
> does this mean viv2 files will fail to play? mplayer has binary codecs
> for viv2, if you'd like to make the demuxer support it.
I would first need to add new codec entries. And using fourcc is not
possible because fourcc are made up by mplayer.
>
>>+
>>+ if (vivo->version == 1) {
>>+ vst->codec->codec_id = CODEC_ID_H263;
>>+ ast->codec->codec_id = CODEC_ID_G723_1;
>
> the twocc list says two codecs:
> http://wiki.multimedia.cx/index.php?title=Talk:TwoCC
> 0x0111 Vivo G723 Vivo Software
> 0x0112 Vivo SIREN Vivo Software
>
> but that could have been introduced in version2. i will have to collect
> some more samples.
Version 1 files appears to always have G723_1 speech codec, note that
FFmpeg decoder
have some issues.
Version 2 appears to always have Vivo siren audio codec which i think
is ADPCM G.723.
More information about the ffmpeg-devel
mailing list