[Libav-user] Seeking backward to a key frame within transport stream

2013-09-26 Thread rolaoo Gazeta.pl
Hello, few days ago I met a problem with av_seek_frame with AVSEEK_FLAG_BACKWARD. In case of transport stream and mpeg2 or avc and others it seeks exactly to a specified time stamp and not to a previous key frame, so the first decoded frame is past desired time stamp, of course if I am unlucky to

[Libav-user] Error when open a camera on Android

2013-09-26 Thread craig04...@21cn.com
Hi to all, I am trying develop an video chat app on android and have ported ffmpeg 2.0.1 to android successfully. The code to open camera is very simple: AVFormatContext *fmt_ctx = NULL; AVInputFormat *input_fmt; input_fmt = av_find_input_format("video4linux2"); if (input_fmt == NULL) return -1;

[Libav-user] rtp timestamp overflow when output h.264 live stream in long time

2013-09-26 Thread Huang Soho
Hi All, When I try to use ffserver + ffmpeg to output a live h.264 rtp stream, I got the problem. the timestamp in rtp header may get overflow. since the pkt.pts, pkt.dts in ffmpeg are stored in 64bits length timestamp field in RTP header is stored in 32bits length it may get overflow when long t

Re: [Libav-user] Getting started with ffmpeg

2013-09-26 Thread Carl Eugen Hoyos
Nick Wood writes: > 1. Is ffmpeg the proper choice for decoding and > displaying the .ts files? I suspect you can try if ffmpeg (the command line tool) and ffplay can read your file to answer this question. (I don't think anybody else can answer the question unless you upload a sample which l

Re: [Libav-user] Number of cached frames in audio codecs

2013-09-26 Thread rolaoo Gazeta.pl
Hello, the delay field of AVCodecContext might interest you. However as the doc says, it is purely informative. And what you have proposed (gop_size) has nothing to do with codec delay. Why do you need this information? There are very less really usable needs for it. Video encoder delay may vary d