[Libav-user] generating blank video frame?

2012-01-27 Thread David Henry
I'm working on an application where if a UDP transport stream is lost/dropped for some time, I want to insert blank frames of video and silence for audio. My calling sequence looks like this (inside a loop): av_read_frame(m_formatInfo, &packet); ... avcodec_get_frame_defaults(&frame); avcodec_d

Re: [Libav-user] feeding frames to ffmpeg manually?

2012-01-27 Thread Matthew Einhorn
On Fri, Jan 27, 2012 at 1:40 PM, Csillag Kristof wrote: > Hi there, > > I am interested in using ffmpeg in a very non-standard way. > > There is an application that is currently displaying images to an X11 > display. > I would like to modify application, so that the pictures are not displayed > vi

[Libav-user] feeding frames to ffmpeg manually?

2012-01-27 Thread Csillag Kristof
Hi there, I am interested in using ffmpeg in a very non-standard way. There is an application that is currently displaying images to an X11 display. I would like to modify application, so that the pictures are not displayed via X, but fed into ffmpeg, and encoded as frames of a H264 video str

[Libav-user] Is there a way to get the error count/texts programatically?

2012-01-27 Thread Camera Man
I want errors (such as "unknown PPS referenced" and "motion vectors concealed") to go to my application's log files; and furthermore, I want to count them and timestamp them. How can one do that? Thanks in advance. __

[Libav-user] Cross-compiling under MIPS: av_read_frame return wrong PTS

2012-01-27 Thread Pavel Sokolov
Hi all! I have problem with wrong PTS when compiling ffmpeg under MIPS Little Endian: av_read_frame return wrong PTS, but on the PC all works fine. Configure options for MIPS: --disable-network --disable-everything --enable-demuxer=mpegts,mpeg2vob,mpegvideo,mpeg

Re: [Libav-user] Handle signal loss

2012-01-27 Thread Andrey Utkin
2012/1/26 Scott Brown : > Subsequent calls to av_read_frame (after timeout occurred) return > immediately a negative value. interrupting is not intended to be used this way. It is intended for exiting. -- Andrey Utkin ___ Libav-user mailing list Libav-

Re: [Libav-user] Compressed h264 avc1 frames to transport stream

2012-01-27 Thread Andrey Utkin
2012/1/27 Valérian : > maybe I'm doing something wrong before passing these frames on. You should wrap your frames to some media container. -- Andrey Utkin ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user

Re: [Libav-user] Handle signal loss

2012-01-27 Thread Andrey Utkin
I have opinion that this approach is not adequate, as assumptions are wrong. Exactly: 1. that exceeding some interval between av_read_frame means data loss. In fact, your UDP stream can "pulse" in terms of bitrate/frames arrival. 2. i think gettimeofday()'ing on each frame arrival is unneeded load,

Re: [Libav-user] Compressed h264 avc1 frames to transport stream

2012-01-27 Thread Valérian
2012/1/27 Carl Eugen Hoyos : > Valérian writes: > >> http://dl.dropbox.com/u/28482555/output.h264 > > Which software can read this file? > The JVT reference decoder fails. > > Carl Eugen > Well actually I receive the frames directly compressed of my webcam through Apple's AVFoundation framework.

Re: [Libav-user] Compressed h264 avc1 frames to transport stream

2012-01-27 Thread Carl Eugen Hoyos
Valérian writes: > http://dl.dropbox.com/u/28482555/output.h264 Which software can read this file? The JVT reference decoder fails. Carl Eugen ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user

[Libav-user] AVCODEC_MAX_AUDIO_FRAME_SIZE

2012-01-27 Thread Marlon Reid
Hi everyone, In the function "avcodec_decode_audio3" there is a check to see if the frame_size_ptr passed in is not smaller than AVCODEC_MAX_AUDIO_FRAME_SIZE. I don't really understand this. Why can I not pass in a frame_size that is smaller than AVCODEC_MAX_AUDIO_FRAME_SIZE? This means that m

Re: [Libav-user] Compressed h264 avc1 frames to transport stream

2012-01-27 Thread Valérian
2012/1/25 Carl Eugen Hoyos : > Valérian writes: > >> [h264 @ 0x101031600] non-existing PPS 0 referenced >> [h264 @ 0x101031600] decode_slice_header error >> [h264 @ 0x101031600] no frame! >> [h264 @ 0x10101ae00] Could not find codec parameters (Video: h264) >> [h264 @ 0x10101ae00] Estimating durat