//flvenc.c
static const AVCodecTag flv_video_codec_ids[] = {
    {CODEC_ID_FLV1,    FLV_CODECID_H263  },
    {CODEC_ID_FLASHSV, FLV_CODECID_SCREEN},
    {CODEC_ID_VP6F,    FLV_CODECID_VP6   },
    {CODEC_ID_VP6,     FLV_CODECID_VP6   },
    {CODEC_ID_H264,    FLV_CODECID_H264  },
    {CODEC_ID_NONE,    0}
};

//flv.h
enum {
    FLV_CODECID_H263    = 2,
    FLV_CODECID_SCREEN  = 3,
    FLV_CODECID_VP6     = 4,
    FLV_CODECID_VP6A    = 5,
    FLV_CODECID_SCREEN2 = 6,
    FLV_CODECID_H264    = 7,
};

for H264 , codec_tag shoule be FLV_CODECID_H264  which is 7

On Tue, Oct 27, 2009 at 4:48 PM, srini vasan <[email protected]> wrote:

> Hi,
>
> After setting "c->codec_tag = 2", it works fine for "fmt->video_codec =
> CODEC_ID_FLV1".
> For example, if i change the Codec ID to "CODEC_ID_H264", what should be
> the
> value for "c->codec_tag"?
> suggest me where i can get full details on this.
>
> Thanks,
> Srinivasan.
>
> On Mon, Oct 12, 2009 at 10:15 AM, srini vasan <[email protected]> wrote:
>
> > Thanks... now its working fine.
> >
> > On Sat, Oct 10, 2009 at 8:47 AM, avcoder <[email protected]> wrote:
> >
> >> On Fri, Oct 9, 2009 at 6:45 PM, srini vasan <[email protected]> wrote:
> >>
> >> > Hi All,
> >> >
> >> > I am sorry for the previous incomplete post.
> >> > I want to encode the YUV video data in FLV1 format and put it in a flv
> >> > container. I made the necessary changes to the "output_example.c" to
> >> output
> >> > the flv video file. The following are the changes I made.
> >> > 1. The output file name with *.flv extension. So no problem with
> >> > "guess_format()".
> >> > 2. Audio & video Codec ID:
> >> >          fmt->audio_codec = CODEC_ID_NONE;
> >> >           fmt->video_codec = CODEC_ID_FLV1;
> >> > 3. Codec Tag:   c->codec_tag = MKTAG('F', 'L', 'V', '1');
> >> >
> >> >
> >> 3 is wrong
> >> please set c->codec_tag = 2;
> >> --
> >>
> >>
> -----------------------------------------------------------------------------------------
> >> My key fingerprint: d1:03:f5:32:26:ff:d7:3c:e4:42:e3:51:ec:92:78:b2
> >> Inspired by http://www.nextplayer.net. Your potential. Our passion.
> >> _______________________________________________
> >> libav-user mailing list
> >> [email protected]
> >> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
> >>
> >
> >
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>



-- 
-----------------------------------------------------------------------------------------
My key fingerprint: d1:03:f5:32:26:ff:d7:3c:e4:42:e3:51:ec:92:78:b2
Inspired by http://www.nextplayer.net. Your potential. Our passion.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to