🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #120

Bug#1148502: libmedia-convert-perl: autopkgtest regression with ffmpeg 9.0

#120
From: Sebastian Ramacher
Date: Thu, 08 Oct 2026 08:00
138 lines
6088 bytes
Control: reassign -1 libmedia-convert-perl 1.5.2-1

Hi Wouter

On 2026-10-04 17:39:28 +0200, Wouter Verhelst wrote:
> reassign -1 ffmpeg
> thanks
> 
> On Sun, Sep 20, 2026 at 07:56:10AM +0200, Sebastian Ramacher wrote:
> > Source: libmedia-convert-perl
> > Version: 1.5.2-1
> > Severity: serious
> > X-Debbugs-Cc: sramacher@debian.org
> > 
> > Dear maintainer,
> > 
> > libmedia-convert-perl fails its autopkgtests with ffmpeg 9.0:
> 
> So, this happens only on armhf.

No, it doesn't. See for example here
https://ci.debian.net/packages/libm/libmedia-convert-perl/testing/ppc64el/76474853/

> 
> The problem is this:
> 
> > 549s progress: 84
> > 549s progress: 85
> > 549s progress: 87
> > 549s progress: 89
> > 549s progress: 91
> > 549s progress: 93
> > 549s progress: 95
> > 549s progress: 96
> > 549s progress: 97
> > 549s progress: 99
> > 549s progress: 92
> > 549s progress: 93
> > 549s progress: 94
> > 549s progress: 100
> > 549s not ok 6 - progress information is strictly incresing when doing multipass
> 
> As you can see, the progress information here jumps from 99 to 92%.
> 
> This is as received from ffmpeg. I ran, on amdahl, in a sid armhf
> chroot, the following command:
> 
> 'ffmpeg' '-progress' '/dev/stdout' '-loglevel' 'warning' '-y' '-i' 't/testvids/bbb.mp4' '-threads' '1' '-c:v' 'libvpx' '-speed' '4' '-pass' '2' '-passlogfile' 't/testvids/out.webm-multipass' '-c:a' 'libvorbis' '-t' '10' 't/testvids/out.webm' | grep -E '(out_time|progress)'
> 
> (the command as shown in the log, with the "-progress" and grep bits
> added)
> 
> And this resulted in output similar to the following:
> 
> [...]
> out_time_us=8823583
> out_time_ms=8823583
> out_time=00:00:08.823583
> progress=continue
> out_time_us=8826485
> out_time_ms=8826485
> out_time=00:00:08.826485
> progress=continue
> out_time_us=9019501
> out_time_ms=9019501
> out_time=00:00:09.019501
> progress=continue
> out_time_us=9357642
> out_time_ms=9357642
> out_time=00:00:09.357642
> progress=continue
> out_time_us=8416667
> out_time_ms=8416667
> out_time=00:00:08.416667
> progress=continue
> out_time_us=8625000
> out_time_ms=8625000
> out_time=00:00:08.625000
> progress=continue
> out_time_us=N/A
> out_time_ms=N/A
> out_time=N/A
> progress=continue
> out_time_us=N/A
> out_time_ms=N/A
> out_time=N/A
> progress=continue
> out_time_us=N/A
> out_time_ms=N/A
> out_time=N/A
> progress=continue
> out_time_us=N/A
> out_time_ms=N/A
> out_time=N/A
> progress=continue
> out_time_us=10000000
> out_time_ms=10000000
> out_time=00:00:10.000000
> progress=end
> 
> As you can see, the time indexes here jump backwards at the 8.625 second
> mark.
> 
> As I don't expect an encoder to jump backwards in time, and as I don't
> see the problem occurring anywhere except on armhf, I believe this to be
> a bug in ffmpeg. As such, I'm reassigning this to ffmpeg, with the
> understanding that I might be wrong :)

ffmpeg calculates the progress timestamp as the maximum DTS among
unfinished output streams. When the stream providing that maximum
finishes, it is excluded from the calculation, so the next reported
timestamp can be lower. In the case of this test, there are two streams:
the audio and the video stream. So one stream finishes early and then
out_time goes backwards.

I couldn't find any FFmpeg documentation. Therefore I don't think the
test should require it to increase monotonically. A consumer needing
monotonic progress will need to keep the maximum value seen so far.

Reassining it back to libmedia-convert-perl. It is making assumptions on
out_time that are not documented and not guaranteed.

Cheers

> 
> (if ffmpeg does in fact document that time stamps in progress
> information may jump backwards, then obviously that would be a strong
> indication that I'm wrong -- I looked but didn't see any documentation
> hinting this)
> 
> -- 
> "I never had a C in history!"
> "Yeah, but there was so much less of it when you were my age!"
>  -- Joe Brockmeier recounting a conversation with his father, cfgmgmtcamp 2026, Ghent
> 

-- 
Sebastian Ramacher
Technical Details
Message-ID: <NLRcK-4el1-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
References: <NFiKJ-GXS-1@gated-at.bofh.it> <NKwWJ-3wP4-3@gated-at.bofh.it> <NFiKJ-GXS-1@gated-at.bofh.it> <NKwWJ-3wP4-3@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Sebastian Ramacher <sramacher@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1148502: libmedia-convert-perl: autopkgtest regression with ffmpeg 9.0
Date: Thu, 08 Oct 2026 10:00:02 +0200
Message-ID: <NLRcK-4el1-7@gated-at.bofh.it>
References: <NFiKJ-GXS-1@gated-at.bofh.it> <NKwWJ-3wP4-3@gated-at.bofh.it> <NFiKJ-GXS-1@gated-at.bofh.it> <NKwWJ-3wP4-3@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Thu Oct  8 07:57:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Sebastian Ramacher <sramacher@debian.org>, 1148502@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-multimedia@lists.debian.org
X-Debian-Pr-Message: followup 1148502
X-Debian-Pr-Package: ffmpeg
X-Debian-Pr-Source: ffmpeg, ffmpeg-debian, ffmpeg-free, libav
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Debian-User: sramacher
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1995675
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 138
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: 1148502@bugs.debian.org, libmedia-convert-perl@packages.debian.org
X-Original-Date: Thu, 8 Oct 2026 09:55:53 +0200
X-Original-Message-ID: <asdMiZIaZvxO9kAZ@ramacher.at>
X-Original-References: <aq91eoo2mwezxjSk@ramacher.at> <asJzMN7is0JkmMSB@pc220518.home.grep.be> <aq91eoo2mwezxjSk@ramacher.at> <asJzMN7is0JkmMSB@pc220518.home.grep.be>