[FFmpeg-devel] [PATCH] avformat/demux: use producer timestamp as wallclock when available

2023-10-25 Thread Clément Péron
When use_wallclock_as_timestamps option is enabled the demux rely on the time of the system even when a producer wallclock is available. If a Producer Reference Timestamp is available use it instead of the system timestamp. Signed-off-by: Clément Péron --- libavformat/demux.c | 13

Re: [FFmpeg-devel] [RFC PATCH 0/3] Propagate PRFT side data

2023-10-24 Thread Clément Péron
Hi, On Sun, 24 Sept 2023 at 11:12, Clément Péron wrote: > > Hi, > > I plan to resent this series without the latest patch. > > Regarding Patch 1 and 2 do you have any comment? > > One thing is that unlike the decode.c which has a common > ff_decode_frame_props_from_p

Re: [FFmpeg-devel] [RFC PATCH 0/3] Propagate PRFT side data

2023-09-24 Thread Clément Péron
that the propagation of this data doesn't work when I enable the hardware Nvidia encoder. Does it make sense to introduce a ff_encode_packet_props_from_frame()? Thanks, On Thu, 21 Sept 2023 at 17:41, Clément Péron wrote: > > Hi Kieran, > > On Thu, 21 Sept 2023 at 15:13, Kieran Kunhya wrote: > &g

Re: [FFmpeg-devel] [RFC PATCH 3/3] HACK: avformat: rawenc: allow to output a raw PRFT

2023-09-22 Thread Clément Péron
Hi Paul, On Fri, 22 Sept 2023 at 15:17, Paul B Mahol wrote: > > On Fri, Sep 22, 2023 at 2:39 PM Clément Péron wrote: > > > Hi Paul, > > > > On Fri, 22 Sept 2023 at 13:41, Paul B Mahol wrote: > > > > > > On Fri, Sep 22, 2023 at 12:06 PM Cl

Re: [FFmpeg-devel] [RFC PATCH 3/3] HACK: avformat: rawenc: allow to output a raw PRFT

2023-09-22 Thread Clément Péron
Hi Paul, On Fri, 22 Sept 2023 at 13:41, Paul B Mahol wrote: > > On Fri, Sep 22, 2023 at 12:06 PM Clément Péron wrote: > > > Hi Paul > > > > On Fri, 22 Sept 2023 at 11:27, Paul B Mahol wrote: > > > > > > On Fri, Sep 22, 2023 at 10:38 AM Cléme

Re: [FFmpeg-devel] [RFC PATCH 3/3] HACK: avformat: rawenc: allow to output a raw PRFT

2023-09-22 Thread Clément Péron
Hi Andreas, On Fri, 22 Sept 2023 at 13:33, Andreas Rheinhardt wrote: > > Clément Péron: > > Hi Andreas, > > > > On Fri, 22 Sept 2023 at 12:01, Andreas Rheinhardt > > wrote: > >> > >> Clément Péron: > >>> Hi Andreas, > >>&

Re: [FFmpeg-devel] [RFC PATCH 3/3] HACK: avformat: rawenc: allow to output a raw PRFT

2023-09-22 Thread Clément Péron
Hi Andreas, On Fri, 22 Sept 2023 at 12:01, Andreas Rheinhardt wrote: > > Clément Péron: > > Hi Andreas, > > > > On Fri, 22 Sept 2023 at 09:58, Andreas Rheinhardt > > wrote: > >> > >> Clément Péron: > >>> Hi Michael, Andreas, &

Re: [FFmpeg-devel] [RFC PATCH 3/3] HACK: avformat: rawenc: allow to output a raw PRFT

2023-09-22 Thread Clément Péron
Hi Paul On Fri, 22 Sept 2023 at 11:27, Paul B Mahol wrote: > > On Fri, Sep 22, 2023 at 10:38 AM Clément Péron wrote: > > > Hi Andreas, > > > > On Fri, 22 Sept 2023 at 09:58, Andreas Rheinhardt > > wrote: > > > > > > Clément Péron: > >

Re: [FFmpeg-devel] [RFC PATCH 3/3] HACK: avformat: rawenc: allow to output a raw PRFT

2023-09-22 Thread Clément Péron
Hi Andreas, On Fri, 22 Sept 2023 at 09:58, Andreas Rheinhardt wrote: > > Clément Péron: > > Hi Michael, Andreas, > > > > On Thu, 21 Sept 2023 at 22:50, Andreas Rheinhardt > > wrote: > >> > >> Michael Niedermayer: > >>> On Thu, Sep 21,

Re: [FFmpeg-devel] [RFC PATCH 3/3] HACK: avformat: rawenc: allow to output a raw PRFT

2023-09-22 Thread Clément Péron
Hi Michael, Andreas, On Thu, 21 Sept 2023 at 22:50, Andreas Rheinhardt wrote: > > Michael Niedermayer: > > On Thu, Sep 21, 2023 at 02:17:00PM +0200, Clément Péron wrote: > >> Output the producer reference time to a dirty raw output. > >> >

Re: [FFmpeg-devel] [RFC PATCH 0/3] Propagate PRFT side data

2023-09-21 Thread Clément Péron
Hi Kieran, On Thu, 21 Sept 2023 at 15:13, Kieran Kunhya wrote: > > On Thu, 21 Sept 2023, 13:17 Clément Péron, wrote: >> >> 4I have a project where I need to synchronize multiple RTSP cameras with >> other >> network sensors (sync with NTP or PTP). > > &

[FFmpeg-devel] [RFC PATCH 3/3] HACK: avformat: rawenc: allow to output a raw PRFT

2023-09-21 Thread Clément Péron
Output the producer reference time to a dirty raw output. Signed-off-by: Clément Péron --- libavformat/rawenc.c | 122 +++ 1 file changed, 122 insertions(+) diff --git a/libavformat/rawenc.c b/libavformat/rawenc.c index f916db13a2..2953f07ec6 100644

[FFmpeg-devel] [RFC PATCH 2/3] avcodec: rawenc: Forward PRFT frame data to packet

2023-09-21 Thread Clément Péron
Producer Reference time could be used in the muxing, propagate it. Signed-off-by: Clément Péron --- libavcodec/rawenc.c | 12 1 file changed, 12 insertions(+) diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c index 8c577006d9..f238c8e165 100644 --- a/libavcodec/rawenc.c +++ b

[FFmpeg-devel] [RFC PATCH 1/3] frame: decode: propagate PRFT side data packet to frame

2023-09-21 Thread Clément Péron
Introduce a new AV_FRAME_DATA_PRFT to propagate Producer Reference Timestamp. Signed-off-by: Clément Péron --- libavcodec/decode.c | 1 + libavfilter/f_sidedata.c | 1 + libavutil/frame.c| 1 + libavutil/frame.h| 4 4 files changed, 7 insertions(+) diff --git

[FFmpeg-devel] [RFC PATCH 0/3] Propagate PRFT side data

2023-09-21 Thread Clément Péron
to output PRFT on the stdout, is there something "more standard" to communicate between Ffmpeg and a python script? Thanks for your help, Clément Clément Péron (3): frame: decode: propagate PRFT side data packet to frame avcodec: rawenc: Forward PRFT frame data to packet HACK: avform