From: softworkz <ffmpegagent@gmail.com>
To: ffmpeg-devel@ffmpeg.org
Cc: softworkz <softworkz@hotmail.com>
Subject: [FFmpeg-devel] [PATCH] avformat/dump: Print stream start offsets for input streams
Date: Sat, 01 Mar 2025 20:17:47 +0000
Message-ID: <pull.58.ffstaging.FFmpeg.1740860267397.ffmpegagent@gmail.com> (raw)
From: softworkz <softworkz@hotmail.com>
Seeing the offset of video and audio streams to each other is often
a useful metric in diagnosing and understanding issues with playback
or transcoding.
This commit adds those offsets to the stream info print.
Signed-off-by: softworkz <softworkz@hotmail.com>
---
avformat/dump: Print stream start offsets for input streams
Seeing the offset of video and audio streams to each other is often a
useful metric in diagnosing and understanding issues with playback or
transcoding. This commit adds those offsets to the stream info print.
Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-58%2Fsoftworkz%2Fsubmit_start_offsets-v1
Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-58/softworkz/submit_start_offsets-v1
Pull-Request: https://github.com/ffstaging/FFmpeg/pull/58
libavformat/dump.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavformat/dump.c b/libavformat/dump.c
index 3d37623a41..8c7db7b275 100644
--- a/libavformat/dump.c
+++ b/libavformat/dump.c
@@ -678,6 +678,11 @@ FF_ENABLE_DEPRECATION_WARNINGS
print_fps(1 / av_q2d(st->time_base), "tbn", log_level);
}
+ if (st->start_time != AV_NOPTS_VALUE && st->start_time != 0 && st->time_base.den && st->time_base.num) {
+ const double stream_start = av_q2d(st->time_base) * st->start_time;
+ av_log(NULL, AV_LOG_INFO, ", Start-Time %.3fs", stream_start);
+ }
+
dump_disposition(st->disposition, log_level);
av_log(NULL, log_level, "\n");
base-commit: 0245e9382c748eba91645b65a377c4c9c4a44849
--
ffmpeg-codebot
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
reply other threads:[~2025-03-01 20:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=pull.58.ffstaging.FFmpeg.1740860267397.ffmpegagent@gmail.com \
--to=ffmpegagent@gmail.com \
--cc=ffmpeg-devel@ffmpeg.org \
--cc=softworkz@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git