Re: [Libav-user] Swscale: Interlaced 4:2:2 to interlaced 4:2:0

2012-05-25 Thread Carl Eugen Hoyos
Carl Lindqvist lulebo@... writes: I have not yet looked at MPlayer/libmpcodecs/vf_scale.c, will do it tomorrow and see what I can find. How does the ffmpeg app do it? What file should I look at for source examples? libavfilter/vf_scale.c (look for isws) Not surprisingly, it looks similar

[Libav-user] SPS/PPS parameters generation

2012-05-25 Thread Dmitry Kosei
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();

Re: [Libav-user] [libav-api] Is it possible in some codec that AVFrame.pts is not derived from AVPacket.pts?

2012-05-25 Thread Anton Khirnov
On Thu, 24 May 2012 14:12:08 +0300, Andrey Utkin andrey.krieger.ut...@gmail.com 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

Re: [Libav-user] Why is HTTP streaming so slow?

2012-05-25 Thread Michael Bradshaw
On Thu, May 24, 2012 at 10:21 PM, Kalileo kali...@universalx.net wrote: On May 25, 2012, at 04:35 , Michael Bradshaw wrote: On Thu, May 24, 2012 at 2:05 PM, Andrey Utkin andrey.krieger.ut...@gmail.com wrote: Is there a particular reason FFmpeg streams so slowly? Coz while you decode, you

Re: [Libav-user] avcodec_decode_video2 got_picture parameter returns zero sometimes

2012-05-25 Thread Li Zhang
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

Re: [Libav-user] Why is HTTP streaming so slow?

2012-05-25 Thread Camera Man
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