mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-08-09 17:39:08 +00:00
Add a new muxer option mpegts_pcr_pid that generates PCR on a dedicated adaptation-field-only PID, separate from any elementary stream. ISDB-T 1seg receivers require PCR on a standalone PID. When PCR shares the video PID, these receivers acquire the service but refuse to decode video and audio. This is standard practice in Japanese digital terrestrial broadcasting per ARIB TR-B14. When mpegts_pcr_pid is set to a valid PID value: - PCR packets are generated as adaptation-field-only packets on the specified PID at the interval set by pcr_period - The video stream adaptation fields do not carry PCR flags - The PMT PCR_PID field is set to the specified PID When mpegts_pcr_pid is -1 (default): existing behavior is unchanged. The existing mpegts_insert_pcr_only function is refactored into a parameterized mpegts_insert_pcr_only_pid(s, pid, cc, discontinuity) to avoid code duplication. Fixes: https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/23649 Signed-off-by: shadowcaster3 <vasyl.samoilov@gmail.com>