Opened 2 years ago

Closed 22 months ago

Last modified 21 months ago

#11168 closed defect (fixed)

When converting an image sequence and wav file to a prores mov using apad and shortest ffmpeg generates random leanth audio streams resulting in larger than expected files.

Reported by: Daniel Ott Owned by: Anton Khirnov <anton@khirnov.net>
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Daniel Ott Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

I've been using ffmpeg 5.1.1 to convert open exr file sequences and audio wav files to prores movs. We were trying to update to 7.0.2 to deal with the issue where ffmpeg generated prores movs would sometimes not decode on apple silicon macs. However we noticed the files being output were longer than they should be which seems to be due to using apad and shortest and ffmpeg generating random length audio streams in the resulting mov. I've also tested with static builds of git master on windows and linux.

Possibly related to defect #11061

How to reproduce:

ffmpeg -apply_trc iec61966_2_1 -color_primaries bt709 -colorspace bt709 -color_trc iec61966_2_1 -f image2 -start_number 0 -r 30000/1001 -i "solid_red_%05d.exr" -i 0101-Mix_Surround.wav -filter_complex "[1:0]apad" -shortest -c:a pcm_s24le -vendor ap10 -c:v prores_ks -profile:v 3 -pix_fmt yuv422p10le -qscale:v 4 -timecode "00:00:00;00" solid_red.mov

Attachments (1)

ffmpeg-20240903-122642-TICKET11168.log (484.0 KB ) - added by Daniel Ott 2 years ago.
Full log of ffmpeg command used to produce issue

Download all attachments as: .zip

Change History (4)

by Daniel Ott, 2 years ago

Full log of ffmpeg command used to produce issue

comment:1 by elenril, 22 months ago

Resolution: fixed
Status: newclosed

comment:2 by Anton Khirnov <anton@khirnov.net>, 21 months ago

Owner: set to Anton Khirnov <anton@khirnov.net>

In 9e2a2312/ffmpeg:

fftools/ffmpeg_filter: treat apad filter as a source

Ideally lavfi should have a dedicated API for detecting this.

Fixes #11168 and #11061

comment:3 by Anton Khirnov <anton@khirnov.net>, 21 months ago

In 9e2a2312/ffmpeg:

fftools/ffmpeg_filter: treat apad filter as a source

Ideally lavfi should have a dedicated API for detecting this.

Fixes #11168 and #11061

Note: See TracTickets for help on using tickets.