[vlc-devel] [patch] H.264 packetizer causes loss of first frame

Martin Kulas nntp at sosend.de
Mon Mar 15 09:42:27 CET 2010


Hello!

During my VoD streaming experiments with the Big Buck Bunny movie
(720p, H.264 inside MOV container) I have noticed that
VLC (version 1.0.5) acting as a VoD server always drops the first
video picture.  In my packet capture file the RTP packets for the first 
I-frame are missing.  After patching the H.264 packetizer (see below)
the first frame is sent as RTP packets.

Is this patch OK?

Regards,
Martin

--- a/modules/packetizer/h264.c        Thu Mar 11 09:17:52 2010 +0100
+++ b/modules/packetizer/h264.c        Thu Mar 11 09:59:36 2010 +0100
@@ -263,6 +263,8 @@
              if( !p_sps )
                  return VLC_EGENERIC;
              ParseNALBlock( p_dec, &b_dummy, p_sps );
+            p_sys->i_frame_dts = -1;
+            p_sys->i_frame_pts = -1;
              p += i_length;
          }
          /* Read PPS */
@@ -279,6 +281,8 @@
              if( !p_pps )
                  return VLC_EGENERIC;
              ParseNALBlock( p_dec, &b_dummy, p_pps );
+            p_sys->i_frame_dts = -1;
+            p_sys->i_frame_pts = -1;
              p += i_length;
          }
          msg_Dbg( p_dec, "avcC length size=%d, sps=%d, pps=%d",




More information about the vlc-devel mailing list