H.264 SEI and NALU length?

Paul Stuart paul_stuart at seektech.com
Mon Feb 6 13:11:23 PST 2012


Hi All,

 I'm using the TI gstreamer plugin on a DM365 to encode H.264 and mux 
into .MP4 using qtmux. I need to add custom data in the SEI NAL on each 
frame. I have successfully added the SEI NAL by modifying my codec input 
parameters, but when I play the resultant video using VLC with verbose 
on, it throws  up a bunch of:

[00000306] ffmpeg decoder warning: AVC: Consumed only 64 bytes instead 
of 4046
 (h264 at 0x8495300)
[00000306] ffmpeg decoder warning: AVC: nal size -1699141818
 (h264 at 0x8495300)
[00000306] ffmpeg decoder warning: no frame!
 (h264 at 0x8495300)
[00000306] ffmpeg decoder warning: cannot decode one frame (4050 bytes)
[00000306] ffmpeg decoder warning: AVC: Consumed only 64 bytes instead 
of 3736
 (h264 at 0x8495300)
[00000306] ffmpeg decoder warning: AVC: nal size -1697044547
 (h264 at 0x8495300)
[00000306] ffmpeg decoder warning: no frame!




The SEI NAL I added, with type header, is 64 bytes long, so it looks 
like VLC is grabbing the length of the SEI instead of the frame. Do I 
need to add an avcC header to each frame that reports the SEI length or...?

Any insight would be appreciated, though I understand if this is out of 
scope for a gstreamer list.

Thanks,
Paul


More information about the gstreamer-devel mailing list