Hello,
Ok. I have to explain my problem in more details:
I use the example code from the dranger-tutorial. How I said, it works for
ordinary mpeg2-ts-files. My own readFrame - method looks like the following:
bool CAVFile::readFrame(int& filenr, AVPacket* packet)
{
if (filenr == -1)
filenr = mSelectedFileIndex;
if (filenr != mSelectedFileIndex)
{
setSelectedFile( filenr );
}
if (av_read_frame(mPFormatCtx, packet) != 0)
{
...
}
return true;
}
As you can see, I use the av_read_frame-function to get all the frames. Later
I proof, if it is a videoframe with the streamID.
if (packet.streamID == mStreamID)
...
Only with ts-files containing a h.264 coded videostream I get these curious
errormessages (down below). Do I have to do more than described by the
drangertutorial? I can't find any errors and mplayer seems to work ok with my
ts-file.
Thanks.
regards,
Sven
Am Montag 19 Januar 2009 10:38 schrieb Sven Alisch:
> Hello all,
>
> When I try to open an h.264-Stream with libav I get following errors:
>
> [h264 @ 0x81ac290]non-existing PPS referenced
> [h264 @ 0x81ac290]decode_slice_header error
> [h264 @ 0x81ac290]non-existing PPS referenced
> [h264 @ 0x81ac290]decode_slice_header error
> [h264 @ 0x81ac290]non-existing PPS referenced
> [h264 @ 0x81ac290]decode_slice_header error
> [h264 @ 0x81ac290]non-existing PPS referenced
> [h264 @ 0x81ac290]decode_slice_header error
> [h264 @ 0x81ac290]non-existing PPS referenced
> [h264 @ 0x81ac290]decode_slice_header error
> [h264 @ 0x81ac290]non-existing PPS referenced
> [h264 @ 0x81ac290]decode_slice_header error
> [h264 @ 0x81ac290]no frame!
> ...
> and so on ...
>
> If I try to open the same stream with mplayer it works. It works too, if I
> open a mpeg2-stream with my app (programmed with libav). And of course, i
> don't use mpeg2-specific issues in my code, so i wonder. I work with the
> latest libav per svn/git.
>
> What my be is the reason for these errors? Could anyone help me?
>
> regards,
> Sven
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user