[Libav-user] simple format trouble using avc ?

Andy Shaules bowljoman at gmail.com
Sun Jun 9 08:25:05 CEST 2013


I think Im on to something here..

context->flags |= CODEC_FLAG_GLOBAL_HEADER;

and use extra_data rather than private data. hrrmm

Trying again :)


Andy

On 6/8/2013 12:37 PM, Andy Shaules wrote:
> Hello, First time poster, long wrapper user.
>
> Ive used various avcodec wrappers and this is the first time Im using 
> it directly.
>
> Im facing a rendering issue that I am assuming is just a rookie move.
>
> Pretty easy set up I have here. Let me describe a little context.
>
> Im pushing encoder output from a host to android's MediaCodec object 
> in I think 'jelly bean' api level 16. So far I have used the x264 VFW 
> interface directly with IC_Open and had successful rendering. Next I 
> tried using the cuda C library, and passed the raw output to the 
> android consumer and also had successful rendering.
>
> So now, Im trying  lib avcodec using zeranoe's precompiled windows 
> 32-bit builds, and Im not having successful rendering. If I write the 
> output to disk as a .264 file and invoke ffmpeg , there seems to not 
> be any issues with the content. My outputframes look  good.
>
> My question is, what step, setting, or preparation am I missing with 
> the  AVCodec? DO I need to manually encapsulate the private data ahead 
> of each key frame? Is there a setting that forces the same output that 
> the VFW and cuda provide, I believe is annex-b?
>
> Is there any core issues such as endianess im over looking?
>
> Mucho thanks in advance!
>
> Andy
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user



More information about the Libav-user mailing list