Hi,

Vladimir Eremeev wrote:
> At every call to av_write_frame I am getting lots of messages like the 
> following 
> 
> [svcd @ 0089E7C0]buffer underflow i=0 bufi=0 size=9304
> [svcd @ 0089E7C0]buffer underflow i=0 bufi=0 size=9304
> [svcd @ 0089E7C0]buffer underflow i=0 bufi=2016 size=9304
> [svcd @ 0089E7C0]buffer underflow i=0 bufi=4040 size=9304
> [svcd @ 0089E7C0]buffer underflow i=0 bufi=6064 size=9304
> [svcd @ 0089E7C0]buffer underflow i=0 bufi=8088 size=9304
> 
> I am capturing the MPEG2 Transport Stream from a DVB-S card. FFmpeg functions 
> are used for writing elementary stream data to a file. 
> Transport stream is parsed with my code, not FFmpeg's functions.
> I have to save only part of the transport stream to a file (one video stream 
> from user defined program and one of accompanying audio streams, also user-
> defined)
> 
> [...]
> 
> What's wrong??
> 
> What else didn't I set in the output AVFormatContext??
> 

Yes, I noticed current MPEG PS muxer always prints those error when no
delay nor preload are set. I don't know why yet, and I'll investigate
this when I have time.

static float mux_preload= 0.5;
static float mux_max_delay= 0.7;

oc->preload= (int)(mux_preload*AV_TIME_BASE);
oc->max_delay= (int)(mux_max_delay*AV_TIME_BASE);

For svcd you might set it to:
mux_preload= (36000+3*1200) / 90000.0; //0.44

I hope this helps.

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG SAS                                     http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to