* [FFmpeg-devel] [PATCH] mov: fix bit_rate calculation for fragmented MP4
@ 2026-01-21 12:39 Nariman Sayed via ffmpeg-devel
2026-01-22 9:06 ` Nicolas Gaullier via ffmpeg-devel
0 siblings, 1 reply; 2+ messages in thread
From: Nariman Sayed via ffmpeg-devel @ 2026-01-21 12:39 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Nariman Sayed
[-- 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [FFmpeg-devel] [PATCH] mov: fix bit_rate calculation for fragmented MP4
2026-01-21 12:39 [FFmpeg-devel] [PATCH] mov: fix bit_rate calculation for fragmented MP4 Nariman Sayed via ffmpeg-devel
@ 2026-01-22 9:06 ` Nicolas Gaullier via ffmpeg-devel
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Gaullier via ffmpeg-devel @ 2026-01-22 9:06 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Nicolas Gaullier
On 1/21/26 13:39, Nariman Sayed via ffmpeg-devel wrote:
> 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
It seems your code editor has re-formatted the whole file which is not
acceptable. Code style must be preserved and the diff must show only
modified lines.
Nicolas
_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-01-22 9:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-21 12:39 [FFmpeg-devel] [PATCH] mov: fix bit_rate calculation for fragmented MP4 Nariman Sayed via ffmpeg-devel
2026-01-22 9:06 ` Nicolas Gaullier via ffmpeg-devel
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