Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when attempting to crossfade with duration longer than one of the files #193

Closed
techlover10 opened this issue May 14, 2017 · 1 comment
Labels

Comments

@techlover10
Copy link

techlover10 commented May 14, 2017

Steps to reproduce

Create an audio segment from a sound file. Attempt to append a second sound file, with a crossfade duration longer than the actual sound file.

Expected behavior

Either an error message that explains the issue, or a default to crossfading with the maximum length that would be possible.

Actual behavior

A TooManyMissingFrames exception is thrown from an unintuitive place.

Your System configuration

  • Python version: 3.5.2
  • Pydub version: 0.18.0
  • ffmpeg or avlib?: ffmpeg
  • ffmpeg/avlib version: 2.8.11-0ubuntu0.16.04.1
@jiaaro jiaaro added the todo label Jun 12, 2017
@jiaaro
Copy link
Owner

jiaaro commented Aug 5, 2017

Minor update on this, that error happens when the crossfade is longer than original segment (not the one being appended).

…so in sound1.append(sound2, crossfade=1000), it happens when sound1 is shorter than 1000ms.

Rereading this now I understand but that wasn't what I expected :)

@jiaaro jiaaro closed this as completed in 8d11649 Aug 5, 2017
jiaaro added a commit that referenced this issue Aug 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants