Problem with H.264 P-Slices with out-of-order POC

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
blauer
New Cone
New Cone
Posts: 2
Joined: 19 Jan 2009 14:20

Problem with H.264 P-Slices with out-of-order POC

Postby blauer » 19 Jan 2009 15:02

Hi all,

I have a problem with playing back H.264 files with VLC 0.9.8a. The sequence contains P-Slices not used for reference (nal_ref_idc=0). There are no B-Slices present, but POCs of the P-Slices can be out of order.

It seems that the reordering of frames is not done correctly, see
http://home.arcor.de/wg.list/seq/fire.264 (1.8 MB)
The display order of some frames is broken.

However, if you put the same sequence into an mp4-container
http://home.arcor.de/wg.list/seq/fire.mp4 (1.8 MB)
VLC decodes the sequence without errors.

The ffplay sample application from ffmpeg also decodes the original h.264 file without display errors.

I did some debugging with the two different demuxers involved (modules/demux/mp4/mp4.c for the mp4-file and modules/demux/avformat/demux.c for the h.264 raw stream). It seems that PTS/DTS timing generation gets somehow wrong with the 264-file "demuxer".

However, I cannot find the part of the code that causes this problem. Does anybody know what is the problem here?

Thanks,
Kurt

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Problem with H.264 P-Slices with out-of-order POC

Postby Jean-Baptiste Kempf » 19 Jan 2009 17:10

ARe you sure this isn't the same issue than http://trac.videolan.org/vlc/ticket/1450 ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

blauer
New Cone
New Cone
Posts: 2
Joined: 19 Jan 2009 14:20

Re: Problem with H.264 P-Slices with out-of-order POC

Postby blauer » 19 Jan 2009 17:48

Hi,

I just did some quick analysis of the sample stream linked to ticket 1450
http://www.mediafire.com/?7royf3j3yzc.

It basically shows the same error: the display order is corrupt, but plays fine when the same stream is embedded in an mp4 container.

However, the streams are totally different:

Stream from ticket 1450 has:
- B-Slices
- SEI timing
- reference picture list reordering
- main profile

My stream http://home.arcor.de/wg.list/seq/fire.264 has:
- only P-Slices
- no SEI timing information
- no reference picture list reordering
- baseline profile

Maybe this information is useful for someone working on that ticket.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Problem with H.264 P-Slices with out-of-order POC

Postby Jean-Baptiste Kempf » 19 Jan 2009 23:54

Create new ticket or append this information to this thread.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 40 guests