[FFmpeg-devel] h264-parser splits before PPS thus muxing to mp4 fails
Wed Jan 30 12:38:27 CET 2008
i encountered a problem while remuxing h264 material from TS to MP4.
Video stream is copied, Audiostream transformed from AC3 to AAC, but
only video matters here.
The problem is that the input reader uses h264_parser to split the data,
which exits just after SPS is found (h264_parser.c line 129 ff) but the
MP4 muxer wants SPS and PPS, thus the assertion in mov_write_avcc_tag
fails (movenc.c line 478).
In these streams SPS comes first, then PPS.
My question is if it would be sensible to split only after having SPS
and PPS in the parser. If a stream has SPS there but no PPS this would
be of course problematic, but the question is if that could happen. I
guess it depends what the h264 spec says but you are the experts for
that h264 code.
What is your opinion? comments welcome...
More information about the ffmpeg-devel