[FFmpeg-devel] [PATCH 1/3] avformat/hlsenc: Log information about segments written
Marton Balint
cus at passwd.hu
Sat Jun 14 00:02:45 EEST 2025
On Fri, 13 Jun 2025, softworkz wrote:
> From: softworkz <softworkz at hotmail.com>
>
> Signed-off-by: softworkz <softworkz at hotmail.com>
> ---
> libavformat/hlsenc.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
> index a93d35ab75..a3e523a5df 100644
> --- a/libavformat/hlsenc.c
> +++ b/libavformat/hlsenc.c
> @@ -2703,6 +2703,12 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt)
> if (ret < 0)
> return ret;
>
> + if (oc->url[0]) {
> + av_log(s, AV_LOG_VERBOSE, "SegmentComplete=%s:%d Index=%d StartPts=%"PRId64" EndPts=%"PRId64" Duration=%f filename=%s\n",
> + av_get_media_type_string(vs->streams[stream_index]->codecpar->codec_type),
> + stream_index, vs->number, vs->start_pts, vs->end_pts, vs->duration, av_basename(oc->url));
snake_case consistently please here and in the following patches.
Thanks,
Marton
> + }
> +
> old_filename = av_strdup(oc->url);
> if (!old_filename) {
> return AVERROR(ENOMEM);
> --
> ffmpeg-codebot
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>
More information about the ffmpeg-devel
mailing list