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

[0.2.4.0] Garbled audio when exporting mp3 from mp4? #891

Closed
MaZZly opened this issue Dec 19, 2018 · 3 comments · Fixed by #894
Closed

[0.2.4.0] Garbled audio when exporting mp3 from mp4? #891

MaZZly opened this issue Dec 19, 2018 · 3 comments · Fixed by #894
Labels
audio Related to AudioClip, or handling of audio in general. lib-misc Issues pertaining to misc. 3rd-party libraries.

Comments

@MaZZly
Copy link

MaZZly commented Dec 19, 2018

Expected Behavior

Audio extracted to mp3 should sound like in video

Actual Behavior

Low volume and weird sounds.
Video: https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_30mb.mp4
Extracted audio: https://www.dropbox.com/s/czytk0pudmn4xj7/bad-audio.mp3?dl=1

Steps to Reproduce the Problem

with VideoFileClip('big_buck_bunny_720p_30mb.mp4') as clip:
   clip.audio.write_audiofile('out.mp3')

Specifications

  • Python Version: 2.7.12
  • Moviepy Version: 0.2.4.0
  • Platform Name: Ubuntu
  • Platform Version: 18.04
@MaZZly
Copy link
Author

MaZZly commented Dec 19, 2018

Does not happen on 0.2.3.5

@MaZZly
Copy link
Author

MaZZly commented Dec 19, 2018

Same thing also happens if opening a working mp3 as AudioFileClip and doing write_audiofile()

@Zulko
Copy link
Owner

Zulko commented Dec 19, 2018

Yes it is the same system at play.

What happened here is that Numpy was throwing warnings that "np.fromstring" is deprecated and should be replaced by "np.frombuffer" when converting a blob to an array. I must have broken something in the convertion.

chrox added a commit to chrox/moviepy that referenced this issue Dec 21, 2018
@keikoro keikoro added lib-misc Issues pertaining to misc. 3rd-party libraries. audio Related to AudioClip, or handling of audio in general. labels Dec 30, 2018
@Zulko Zulko closed this as completed in #894 Feb 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audio Related to AudioClip, or handling of audio in general. lib-misc Issues pertaining to misc. 3rd-party libraries.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants