[FFmpeg-devel] Stream pass throught "buffer underflow"
Pablo Yaggi
pyaggi
Thu Aug 16 23:18:32 CEST 2007
Hi,
????????I have an mpeg encapsulated file with one mp4 video stream and one mp3
audio
stream.
????????I open the file and create an ouputContext with the same format as the
input file, i also add to that context one mp4 video stream and one mp3 audio
stream with the same codecs id's and stream's ids as the input file.
????????I open an output url for the context and did this:
????????????????av_write_header(outputContext);
????????????????while(av_read_frame(inputContext, &packet)>=0)
????????????????{
????????????????????????????????av_write_frame(outputContext,&packet);
????????????????}
????????????????av_write_trailer(outputContext);????????
????????while the frames were being writen a "buffer underflow" error kept
showing
up.
????????when i try to play the resulting file only audio is available and
mplayer
warning this :
MPEG-PS file format detected.
missing marker bit!
MPEG: bad sequence header
missing marker bit!
MPEG: bad sequence header
missing marker bit!
MPEG: bad sequence header
missing marker bit!
MPEG: bad sequence header
missing marker bit!
MPEG: bad sequence header
missing marker bit!
MPEG: bad sequence header
missing marker bit!
MPEG: bad sequence header
missing marker bit!
MPEG: bad sequence header
missing marker bit!
MPEG: bad sequence header
missing marker bit!
MPEG: bad sequence header
missing marker bit!
MPEG: bad sequence header
missing marker bit!
MPEG: bad sequence header
missing marker bit!
MPEG: bad sequence header
MPEG: FATAL: EOF while searching for sequence header.
Video: Cannot read properties.
????????If it is necesary i could post the full code. I also noticed that with
mpeg 2
video streams the buffer underflow error keeps showing but the resulting file
has playable audio and video.
????????Any ideas how to fix this ?
Best regards
Pablo Yaggi
-------------- next part --------------
An embedded message was scrubbed...
From: Pablo Yaggi <pyaggi at alsurdelsur.com>
Subject: Stream pass throught "buffer underflow"
Date: Thu, 16 Aug 2007 18:15:36 -0300
Size: 2097
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070816/1ef8f848/attachment.eml>
More information about the ffmpeg-devel
mailing list