[FFmpeg-devel] [PATCH] Vivo demuxer

compn tempn at twmi.rr.com
Tue Jul 17 14:15:18 CEST 2012


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.

>+
>+    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.

-compn


More information about the ffmpeg-devel mailing list