h264parse bug?: Files unplayable in flash because P Slices before I Slice

Mike Mitchell mike.mitchell at panometric.net
Tue Oct 4 14:26:07 PDT 2011


Videos I record from an IP camera with h264 using rtp to mp4mux
are slightly corrupted:
1. On flash players like jwplayer or flowplayer, they play but with no
video.
2. On native players like vlc, mplayer,  They play but do start poorly with
a gray screen until the first Iframe comes through.

My best clue is that VLC, ffmpeg and tcprobe all report: "Missing reference
picture decode_slice_header error". This seems to be related to the fact
that the h264 stream contains several P Slices before it contains the first
I slice. Some players just ignore this, but to flash it seems to ruin the
whole stream.

Since I'm forced to accept flash for compatibility reasons, and really want
to avoid transcoding everything, I'd like to fix the file by cleaning up
these useless P Slices at the front of the stream.

Can anyone suggest a gstreamer element that could do drop P Slices until the
first I Slice?

Or do I need to code this myself.... If I were going to add this
functionality, is h264parse the correct place to do it?


*Mike Mitchell*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111004/64fb0057/attachment.htm>


More information about the gstreamer-devel mailing list