Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Nariman Sayed via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: ffmpeg-devel@ffmpeg.org
Cc: Nariman Sayed <narimansayed28@gmail.com>
Subject: [FFmpeg-devel] [PATCH] mov: fix bit_rate calculation for fragmented MP4
Date: Wed, 21 Jan 2026 14:39:30 +0200
Message-ID: <CACt+UE5Cktafy1yLDrMqMN8a-K7L6FG29CrC4b+wYz_-G6yn0g@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]

Hello FFmpeg developers,

This patch fixes the calculation of bit_rate for fragmented MP4 files,
ensuring
that the reported bit_rate covers the entire fragmented file instead of only
the first fragment.

This addresses GitHub issue: https://github.com/FFmpeg/FFmpeg/issues/20450

Changes include modifications in:
- libavformat/mov.c
- libavformat/isom.h

Tested using ffprobe on sample fragmented MP4 files (12.mp4 and 21.mp4), and
the bit_rate is now calculated correctly over the whole file.

Patch attached.

Best regards,
 Nariman Sayed

[-- Attachment #2: fix-bitrate-fragmented-mp4.patch --]
[-- Type: application/octet-stream, Size: 379834 bytes --]

[-- Attachment #3: Type: text/plain, Size: 163 bytes --]

_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org

             reply	other threads:[~2026-01-22  0:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-21 12:39 Nariman Sayed via ffmpeg-devel [this message]
2026-01-22  9:06 ` Nicolas Gaullier via ffmpeg-devel

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=CACt+UE5Cktafy1yLDrMqMN8a-K7L6FG29CrC4b+wYz_-G6yn0g@mail.gmail.com \
    --to=ffmpeg-devel@ffmpeg.org \
    --cc=narimansayed28@gmail.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