Hi,

Before coding of a new patch, I prefer to ask here for your ideas and thus 
improve the changes
of acceptance of the patch.

I posted before a patch to select which pid will carry the PCR timestamps. This 
makes sense in
several scenarios: when using a non-video stream to carry PCR, when using 
multiple video
streams, and son on. See it here:
https://patchwork.ffmpeg.org/patch/12874/

However, this patch doesn’t support multiple programs, as only one stream can 
be specified.
Therefore, I like to improve it to allow the selection of the PCR for each 
program.

But, I’m not sure about what the best approach is. Here are some options:

- Enhance the “mpegtsenc” muxer with a multi-program option for selecting the 
PCR.
- Use the “-program” general parameter to mark which stream carries the PCR.

Examples:

$ “ffmpeg ... -f mpegts --progid_pcr_pid 1=101 ...”
   This indicates that for program with id 1 the PCR will be in the pid 101.
$ “ffmpeg ... -program title=Prog1:st=0,pcr:st=1 -f mpegts ...”
   Here the first stream in the Prog1 will carry the PCR.

Please comment on what you prefer/suggest.
Regards.
A. H.

---
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to