Hi,
I am using libavformat to get the stream information...but there is a
problem in getting the total stram information
here is my code...
typedef struct Duration
{
int hours, mins, secs, us;
}Duration;
Duration getDuration(AVFormatContext *ic)
{
Duration dur;
if (ic->duration != AV_NOPTS_VA
On 05/24/2012 03:07 PM, Michael Bradshaw wrote:
Is there a particular reason FFmpeg streams so slowly?
Speculation: Sounds like it might be a buffering problem: The easy
way to test it is to time transfers from a nearby machine (localhost
or anything with <1ms
Hi,
I also got the similar problem.
I used avcodec_decode_video2() to decode mpeg2 video and
avcodec_decode_audio4() to decode audio in TS. Most of the time the decoding
is correct. But sometimes it will fail. And the audio decoding is far more
failure than video decoding.
Now if the video
On Thu, May 24, 2012 at 10:21 PM, Kalileo wrote:
>
> On May 25, 2012, at 04:35 , Michael Bradshaw wrote:
>
>> On Thu, May 24, 2012 at 2:05 PM, Andrey Utkin
>> wrote:
Is there a particular reason FFmpeg streams so slowly?
>>>
>>> Coz while you decode, you don't fetch, and while you fetch, you
On Thu, 24 May 2012 14:12:08 +0300, Andrey Utkin
wrote:
> Is that right or wrong that at some cases the frame pts (reachable
> after decoding) is _not_ derived from packet pts/dts (reachable after
> demux), but is encapsulated in the coded frame itself?
What pts do you mean? AVFrame.pkt_pts sho
Hi! I'm using such code for initialization:
avcodec_register_all();
av_register_all();
avformat_network_init();
const char *filename="rtp://192.168.0.101:10202";
AVOutputFormat *formatRTP = av_guess_format("rtp", filename, NULL);
pFormatRTP = avformat_alloc_context();