I have no idea as how can i set the extradata using the getpicparamset and. But a new question emerges because i dont konw what correct value of spspps. The ffmpeg h264 decoding fails whenever there a input stream where sps pps is sent along every slice of an idr frame. First run ffmpeg on the command line to extract h264 stream.
Set the conformance window cropping offsets in the sps. Contribute to ffmpeg ffmpeg development by creating an account on github. I am developing a software involve h264 encode using ffmpeg, recently. Hi, i am using h264videoencoder class from umc which is part of ipp library to encode a video frame into h264 nal. Placing sps and pps right before the idr frame means that ffmpeg will split the stream just before the sps, pps pair which is exactly what we want. Contribute to ffmpegffmpeg development by creating an account on github. Basically i was facing the same questions and got enlightened.
Now iam facing a problem that i need sps and pps data to set that into ffmpeg s extradata because flv format needs global header. The reason for that is that were next going to pass the stream to ffmpeg to be split into chunks a few seconds long and it can only split the stream at a key frame. Why mp4 generated through ffmpeg api cant be played in the. Now generated mp4 can be played in windows media player. A new single global pps is created, and all of the redundant ppss within the stream are removed. It seems like the decoder treats every slice as a single frame but incomplete and try to perform some error concealment, and of course the followed p frames get corrupted.
See threads named demuxed raw h264 cannot be reread and h264. For vlc this is working so far without the headerinformation sps pps but on android the media player dont accept my videostream. Since i didnt know how to set up a working x264 configuration in ccode on uptodate build without deprecated header files which i cant translate into newer ones i m using a default codecconfiguration via. Ffmpeg gstreamer h264 multicast missing spspps information.