[FFmpeg-devel] [WANTED] Fix incorrect audio duration reporting

Michael Niedermayer michael at niedermayer.cc
Sat Mar 13 16:48:12 EET 2021


On Sat, Mar 13, 2021 at 03:11:34PM +0100, Paul B Mahol wrote:
> On Sat, Mar 13, 2021 at 1:30 PM Michael Niedermayer <michael at niedermayer.cc>
> wrote:
> 
> > On Thu, Mar 11, 2021 at 07:33:53PM +0100, Paul B Mahol wrote:
> > > Hi,
> > >
> > > With latest master and with any audio only file, using "ffmpeg -i file -f
> > > null -" reports incorrect duration.
> >
> > ./ffmpeg -i ~/videos/1sec-zero.mp3 -f null -
> > shows durations at 2 points in the output
> > Duration: 00:00:01.03, start: 0.023021, bitrate: 129 kb/s
> > size=N/A time=00:00:00.98 bitrate=N/A speed= 620x
> >
> > the first is exactly the same in ffmpeg 4.3, 3.4 and 2.8.17
> > The 2nd is a regression since 50b49f833ae2f7d33bd2a99776fed6cb692c171a
> >
> 
> Check it with wav files.

No difference between master and 4.3 or 3.4
./ffmpeg  -i ~/videos/1sec-zero.wav -f null -
 Duration: 00:00:01.01, bitrate: 1536 kb/s
size=N/A time=00:00:01.00 bitrate=N/A speed=1.02e+03x 

Duration: 00:00:01.01, bitrate: 1536 kb/s
size=N/A time=00:00:01.00 bitrate=N/A speed= 993x


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Never trust a computer, one day, it may think you are the virus. -- Compn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210313/05187c3f/attachment.sig>


More information about the ffmpeg-devel mailing list