[Libav-user] Function definition for reading packets

2014-10-10 Thread Tilak Varisetty
Hello all, I would like to know how the function int (* AVInputFormat::read_packet) (struct AVFormatContext *, AVPacket *pkt) works. I cannot find the function definition for how *read_packet is mapped in the structure AVInputFormat. I want to know what the function is doing at the run time.. I

Re: [Libav-user] Writing .mkv files with libav API

2014-10-10 Thread vishnukumarmdu
Hi, i also facing the same problem. my code is same as what you have mentioned as solution. but still i am having same problem. please find sample code below. av_init_packet(pkt); pkt.data = NULL;// packet data will be allocated by the encoder pkt.size = 0; int out_size =

[Libav-user] autodetect framerate for burn in timestamp with drawtext filter

2014-10-10 Thread Patrick Fischer
Hello I'm using the drawtext filter to burn in the timestamp. drawtext=fontfile=FreeMono.ttf:shadowcolor=white:shadowx=2:shadowy=2:x=10:y=19:timecode='12\:49\:18\:00': rate=*25*:fontsize=22:text=\'7.10.2014 \' But with this filter i can only handle videos with framerate=25 Who can i use the

Re: [Libav-user] Function definition for reading packets

2014-10-10 Thread wm4
On Thu, 9 Oct 2014 16:47:08 +0200 Tilak Varisetty vtilak...@gmail.com wrote: Hello all, I would like to know how the function int (* AVInputFormat::read_packet) (struct AVFormatContext *, AVPacket *pkt) works. I cannot find the function definition for how *read_packet is mapped in the