Tool/software:
Hi,
I'm currently using the "h264_v4l2m2m" hw encoder to encode video in h264 format on TDA4 with the ffmpeg library and stream it using TCP.
The problem I'm facing is that I cannot join the stream in the middle of playback. The player needs to be present when the stream starts to have all the headers for playback.
I have been looking into the output stream and indeed there is no repeating of the SPS/PPS information: this information is only contained in the first frame of the stream.
I currently can't find a way to tell the hw encoder to repeat the SPS/PPS information, I have tried using the following v4l2 controls, without success:
- V4L2_CID_MPEG_VIDEO_REPEAT_SEQ_HEADER -> this gives me an error since the control does not seem to be available in the wave5 driver.
- V4L2_CID_MPEG_VIDEO_PREPEND_SPS_AND_PPS_TO_IDR -> this is correctly applied but I don't get more SPS/PPS information in the output stream.
Do you have any idea of how I could add this SPS/PPS information to frames with the hw encoder?
Thanks,
Matthieu