What is the best way to modify seq_parameter_set_id and pic_parameter_set_id in an H.264 bitstream?
A bit of background: My encoder (NVENC) is producing some bitstreams with SPS and PPS ids of 1 or 2. When I go to concatenate these bitstreams with others whose SPS and PPS ids are 0, the resulting MP4s cause problems for some decoders (most recently Chrome's Video Decoder Accelerator on Mac). For efficiency I am using ffmpeg's "-codec copy" mechanism to avoid reencoding.