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

[soundcloud] Error when adding metadata to mp3 #1766

Closed
diffycat opened this issue Nov 14, 2013 · 1 comment
Closed

[soundcloud] Error when adding metadata to mp3 #1766

diffycat opened this issue Nov 14, 2013 · 1 comment
Labels
bug

Comments

@diffycat
Copy link

@diffycat diffycat commented Nov 14, 2013

$ youtube-dl https://soundcloud.com/simgretina/just-your-problem-baby-1 --verbose --add-metadata 
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['https://soundcloud.com/simgretina/just-your-problem-baby-1', '--verbose', '--add-metadata']
[debug] youtube-dl version 2013.11.13
[debug] Python version 3.3.2 - Linux-3.12.0-1-ARCH-x86_64-with-arch
[debug] Proxy map: {}
[soundcloud] simgretina/just-your-problem-baby-1: Resolving id
[soundcloud] simgretina/just-your-problem-baby-1: Downloading info JSON
[soundcloud] simgretina/just-your-problem-baby-1: Extracting information
[download] Destination: Just Your Problem Baby (Acapella)-105614606.mp3
[download] 100% of 40.05MiB in 04:11
[ffmpeg] Adding metadata to 'Just Your Problem Baby (Acapella)-105614606.mp3'
[debug] ffmpeg command line: ffmpeg -y -i 'Just Your Problem Baby (Acapella)-105614606.mp3' -c copy -metadata 'title=Just Your Problem Baby (Acapella)' -metadata date=20130815 -metadata 'artist=Sim Gretina' -f mp3 'Just Your Problem Baby (Acapella)-105614606.mp3.temp'
ERROR: Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Traceback (most recent call last):
  File "/usr/lib/python3.3/site-packages/youtube_dl/YoutubeDL.py", line 731, in post_process
    keep_video_wish, new_info = pp.run(info)
  File "/usr/lib/python3.3/site-packages/youtube_dl/PostProcessor.py", line 508, in run
    self.run_ffmpeg(filename, temp_filename, options)
  File "/usr/lib/python3.3/site-packages/youtube_dl/PostProcessor.py", line 102, in run_ffmpeg
    self.run_ffmpeg_multiple_files([path], out_path, opts)
  File "/usr/lib/python3.3/site-packages/youtube_dl/PostProcessor.py", line 99, in run_ffmpeg_multiple_files
    raise FFmpegPostProcessorError(msg)
youtube_dl.PostProcessor.FFmpegPostProcessorError: Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument

Without "--add-metadata" it works fine.

$ youtube-dl --version 
2013.11.13

Python 3.3.2

@jaimeMF jaimeMF closed this in e3b9ab5 Nov 14, 2013
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Nov 14, 2013

Fixed, the file is actually a wav file (we considered they were always mp3). You may want to convert it to other format.
Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.