Change #276618
| Category | ffmpeg |
| Changed by | shadowcaster3 <vasyl.samoilov@gmail.com> |
| Changed at | Fri 31 Jul 2026 08:25:59 |
| Repository | https://git.ffmpeg.org/ffmpeg.git |
| Project | ffmpeg |
| Branch | master |
| Revision | ad53728984531cebdb027e70e78d7165a6bdfe20 |
Comments
avformat/mpegtsenc: add mpegts_pcr_pid option for separate PCR PID 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>
Changed files
- doc/muxers.texi
- libavformat/mpegtsenc.c