#9369 closed defect (fixed)
join audio files command never ends
Reported by: | Admir Okovic | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | git-master | Keywords: | join audio |
Cc: | Admir Okovic | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
I am trying to join two audio files and when i call following command ffmpeg does not stop it just keep running.
Command:
ffmpeg -y -i sideA.wav -i sideB.wav -filter_complex "[0:a][1:a]join=inputs=2[a]" -map "[a]" final.wav -loglevel debug
ffmpeg version 4.4
built on ... ubuntu 20.4
In output log i can not see any issues that will point on existing problem.
After few hours of debuging i realised that when i reorded files command works fine.
Working command:
ffmpeg -y -i sideB.wav -i sideA.wav -filter_complex "[0:a][1:a]join=inputs=2[a]" -map "[a]" final.wav -loglevel debug
Also i realised that when i add delay for one of the files(not both) command also works:
Working command with delay:
ffmpeg -y -i sideA.wav -i sideB.wav -filter_complex "[0:a]adelay=0[a0];[1:a]adelay=1[a1];[a0][a1]join=inputs=2[a]" -map "[a]" final.wav
My guess is that issue is with sideA file since there is no real audio its just some backgrounde noise but either way ffmpeg should not get stuck and block process.
Attachments (1)
Change History (6)
by , 3 years ago
Attachment: | Ffmpeg_issue.zip added |
---|
comment:1 by , 3 years ago
follow-up: 3 comment:2 by , 3 years ago
Version: | unspecified → git-master |
---|
comment:3 by , 3 years ago
Replying to Michael Koch:
Yes, its seems the same issue as you mentioned.I have few workarounds myself but i would like to know the root cause of this issue and will it be fixed
follow-up: 5 comment:4 by , 3 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I can reproduce the problem with the Windows version, the console output is below.
This might be the same problem as in ticket 9152.
Michael
C:\Users\astro\Desktop\ffmpeg_test>ffmpeg -y -i sideA.wav -i sideB.wav -filter_complex "[0:a][1:a]join=inputs=2[a]" -map "[a]" final.wav
ffmpeg version 2021-08-08-git-ac0408522a-essentials_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, wav, from 'sideA.wav':
Guessed Channel Layout for Input Stream #1.0 : mono
Input #1, wav, from 'sideB.wav':
Stream mapping:
Press [q] to stop, ? for help
Output #0, wav, to 'final.wav':
size= 64kB time=00:00:02.04 bitrate= 256.3kbits/s speed=0.202x
video:0kB audio:64kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.119019%
Exiting normally, received signal 2.
Batchvorgang abbrechen (J/N)?