Re: [Libav-user] avcodec_decode_video2 strange behaviour on lost frame

2012-11-29 Thread serdel
Actually I yet I have no idea why do the frames get corrupted (at least this is what I suspect..). When I saw the packet loss it was obvious because it was enough for the whole frame to be dropped by live555. But why there is no packet loss and still the frame does not get decoded... that is still

[Libav-user] hello i have some developement question as for the decoding-encoding process

2012-11-29 Thread Rafi Fisher
i 'm trying to convert an mp2 audia file into wav file format. i.e decode mp2 file & then encode to wav file format. using the ffmpeg libraries under windows & visual studio ide. it works fine as long as i dont use different "frame_rate" of the one that was used in the source mp2 file. if i try

Re: [Libav-user] hello i have some developement question as for the decoding-encoding process

2012-11-29 Thread Carl Eugen Hoyos
Rafi Fisher writes: > so i dont know how for example to convert from mp2 > sample rate = 16000 to wav format 44000. Use swresample to change audio sample rate. Carl Eugen ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/li

Re: [Libav-user] hello i have some developement question as for the decoding-encoding process

2012-11-29 Thread Rafi Fisher
hi carl thanks for the answer. where can i find some sample code how to use the swsresampe api's thanks rafi On Thu, Nov 29, 2012 at 2:24 PM, Carl Eugen Hoyos wrote: > Rafi Fisher writes: > > > so i dont know how for example to convert from mp2 > > sample rate = 16000 to wav format 440

[Libav-user] How to connect to an IP camera in libav

2012-11-29 Thread Brian Martin
Hello, I'm trying to connect to a Foscam MJpeg IP camera (http) using libav on Windows and am getting an error code of -5 after AVFormatContext *pFormatCtx=NULL; int i, videoStream; AVCodecContext *pCodecCtx; AVCodec *

Re: [Libav-user] hello i have some developement question as for the decoding-encoding process

2012-11-29 Thread Carl Eugen Hoyos
Rafi Fisher writes: > thanks for the answer. where can i find some > sample code how to use the swsresampe api's See doc/examples/filtering_audio.c Please do not top-post here, Carl Eugen ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmp