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

audio conversion failed: Audio encoding failed #2655

Closed
Nothing4You opened this issue Mar 30, 2014 · 3 comments
Closed

audio conversion failed: Audio encoding failed #2655

Nothing4You opened this issue Mar 30, 2014 · 3 comments

Comments

@Nothing4You
Copy link

@Nothing4You Nothing4You commented Mar 30, 2014

Hi there, youtube-dl was installed as binary from yt-dl.org.
I'm using youtube-dl -v -f 22/45/35/44/18/34/43/6/5/36/17/13 -x --audio-format mp3 --audio-quality 0 -k --add-metadata ytsearch100:braindrillerz.

[debug] System config: []
[debug] User config: ['-v']
[debug] Command-line args: ['-v', '-f', '22/45/35/44/18/34/43/6/5/36/17/13', '-x', '--audio-format', 'mp3', '--audio-quality', '0', '-k', '--add-metadata', 'ytsearch100:braindrillerz']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.03.30
[debug] Python version 2.7.3 - Linux-2.6.32-openvz-042stab083.2-amd64-x86_64-with-debian-7.4
[debug] Proxy map: {}
[youtube:search] query "braindrillerz": Downloading page 1
[youtube:search] query "braindrillerz": Downloading page 2
[download] Downloading playlist: braindrillerz
[youtube:search] playlist braindrillerz: Collected 100 video ids (downloading 100 of them)
[download] Downloading video #1 of 100
[youtube] Setting language
[youtube] I6_CcDGMbYs: Downloading webpage
--- SNIP ---
[download] Downloading video #66 of 100
[youtube] _GT_KUTgwIc: Downloading webpage
[youtube] _GT_KUTgwIc: Downloading video info webpage
[youtube] _GT_KUTgwIc: Extracting video information
[download] Destination: Randy vs The Braindrillerz LIVE @ FOOTWORXX 10.03.2012-_GT_KUTgwIc.mp4
[download] 100% of 19.46MiB in 00:02
[ffmpeg] Adding metadata to 'Randy vs The Braindrillerz LIVE @ FOOTWORXX 10.03.2012-_GT_KUTgwIc.mp4'
[debug] ffmpeg command line: avconv -y -i 'Randy vs The Braindrillerz LIVE @ FOOTWORXX 10.03.2012-_GT_KUTgwIc.mp4' -c copy -metadata date=20120312 -metadata artist=WonderlandsTerror -metadata 'title=Randy vs The Braindrillerz LIVE @ FOOTWORXX 10.03.2012' 'Randy vs The Braindrillerz LIVE @ FOOTWORXX 10.03.2012-_GT_KUTgwIc.temp.mp4'
[avconv] Destination: Randy vs The Braindrillerz LIVE @ FOOTWORXX 10.03.2012-_GT_KUTgwIc.mp3
[debug] ffmpeg command line: avconv -y -i 'Randy vs The Braindrillerz LIVE @ FOOTWORXX 10.03.2012-_GT_KUTgwIc.mp4' -vn -acodec libmp3lame -q:a 0 'Randy vs The Braindrillerz LIVE @ FOOTWORXX 10.03.2012-_GT_KUTgwIc.mp3'
ERROR: audio conversion failed: Audio encoding failed
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1059, in post_process
    keep_video_wish, new_info = pp.run(info)
  File "/usr/local/bin/youtube-dl/youtube_dl/postprocessor/ffmpeg.py", line 189, in run
    raise PostProcessingError(msg)
PostProcessingError
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Mar 30, 2014

It works fine her with libav 9.11. Could you post the output of running avconv -y -i 'Randy vs The Braindrillerz LIVE @ FOOTWORXX 10.03.2012-_GT_KUTgwIc.mp4' -vn -acodec libmp3lame -q:a 0 'Randy vs The Braindrillerz LIVE @ FOOTWORXX 10.03.2012-_GT_KUTgwIc.mp3' (the command that is printed)?

@Nothing4You
Copy link
Author

@Nothing4You Nothing4You commented Mar 31, 2014

avconv version 0.8.10-6:0.8.10-1, Copyright (c) 2000-2013 the Libav developers
  built on Feb  5 2014 03:52:19 with gcc 4.7.2
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Randy vs The Braindrillerz LIVE @ FOOTWORXX 10.03.2012-_GT_KUTgwIc.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2012-03-11 16:05:14
    title           : Randy vs The Braindrillerz LIVE @ FOOTWORXX 10.03.2012
    artist          : WonderlandsTerror
    date            : 20120312
    encoder         : Lavf53.21.1
  Duration: 00:04:23.98, start: 0.000000, bitrate: 620 kb/s
    Stream #0.0(und): Video: h264 (Constrained Baseline), yuv420p, 480x360, 519 kb/s, 30 fps, 30 tbr, 60 tbn, 60 tbc
    Metadata:
      creation_time   : 2012-03-11 16:05:14
    Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 95 kb/s
    Metadata:
      creation_time   : 2012-03-11 16:05:14
Output #0, mp3, to 'Randy vs The Braindrillerz LIVE @ FOOTWORXX 10.03.2012-_GT_KUTgwIc.mp3':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    TDEN            : 2012-03-11 16:05:14
    TIT2            : Randy vs The Braindrillerz LIVE @ FOOTWORXX 10.03.2012
    TPE1            : WonderlandsTerror
    TDRL            : 20120312
    TSSE            : Lavf53.21.1
    Stream #0.0(und): Audio: libmp3lame, 44100 Hz, stereo, s16, 200 kb/s
    Metadata:
      creation_time   : 2012-03-11 16:05:14
Stream mapping:
  Stream #0:1 -> #0:0 (aac -> libmp3lame)
Press ctrl-c to stop encoding
lame: output buffer too small (buffer index: 8308, free bytes: 1484)
Audio encoding failed

After googling a bit it seems like this was a known bug in lame 3.98, however, on my system I have libmp3lame0 3.99.5+repack1-3 (debian ) installed so I'm not sure it's the same issue.

@Nothing4You
Copy link
Author

@Nothing4You Nothing4You commented Aug 18, 2017

I don't have any system with this issue anymore so I'm closing this. If someone happens to run into the same issue feel free to open a new issue for this.

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.