Opened 4 years ago

Closed 2 years ago

#8938 closed defect (invalid)

Merge sound wrong duration

Reported by: Truong Quoc Khanh Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:
Extract sound from video

-fflags +igndts -i "intro.mp4" -codec:a libmp3lame -vn -ss 00:00 -t 0:00:22.293 -y "intro.mp3"
-fflags +igndts -i "outro.mp4" -codec:a libmp3lame -vn -ss 00:00 -t 0:00:22.293 -y "outro.mp3"

Merge with mp3

-i "concat:intro.mp3|music.mp3|outro.mp3" -codec:a libmp3lame -b:a 321192 -af "adelay=2000|2000" -y "merge.mp3"

Output i need:

[delay 2 sec][intro][music][outro]

Output i got:

[delay 2 sec][intro][empty about 2sec][music][empty about 2sec][outro]

The error (i think):

[mp3 @ 00000296b50115c0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1165871 >= 20783

ffmpeg version: ffmpeg-4.3.1-win32-static

How do i fix it, thanks

Attachments (1)

log.txt (432.8 KB ) - added by Truong Quoc Khanh 4 years ago.

Download all attachments as: .zip

Change History (4)

by Truong Quoc Khanh, 4 years ago

Attachment: log.txt added

comment:1 by Truong Quoc Khanh, 4 years ago

Note for log:
New Process Arg is argument to run ffmpeg
ErrorDataReceived is console error output from process ffmpeg

comment:2 by Carl Eugen Hoyos, 4 years ago

Version: unspecified

This has currently very little similarities with a valid ticket: Is lame needed to reproduce the issue or is it also reproducible with a native audio encoder?
Please test current FFmpeg git head, use a normal console without additional messages that make reading the output very difficult, and provide the command line you tested together with the complete, uncut console output and the necessary input sample(s).

comment:3 by Elon Musk, 2 years ago

Resolution: invalid
Status: newclosed

Concat protocol is not supposed to work at all with bunch of input formats.

Use concat filter instead when already using filtering.

Note: See TracTickets for help on using tickets.