Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
ffmpeg works ok but youtube-dl fails #11424
Comments
|
Could you run youtube-dl with |
|
I can't even re-produce this very ODD problem now: Since it's all good now, I am going to close this issue. Thanks for looking into it. |
Here the ffmpeg works fine but youtube-dl throws exception with 'Error opening filters!'. Is there an integration problem between youtube-dl and ffmpeg?
Thanks,
Colin
goyoutub@box276$ youtube-dl --extract-audio --audio-format mp3 --audio-quality 0 https://www.youtube.com/watch?v=C0DPdy98e4c --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--extract-audio', u'--audio-format', u'mp3', u'--audio-quality', u'0', u'https://www.youtube.com/watch?v=C0DPdy98e4c', u'--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.12.12
[debug] Python version 2.7.12 - Linux-3.12.65-20161020.132.ELK6.x86_64-x86_64-with-glibc2.3
[debug] exe versions: ffmpeg 3.2.2-static, ffprobe 3.2.2-static
[debug] Proxy map: {}
[youtube] C0DPdy98e4c: Downloading webpage
[youtube] C0DPdy98e4c: Downloading video info webpage
[youtube] C0DPdy98e4c: Extracting video information
[youtube] C0DPdy98e4c: Downloading MPD manifest
[debug] Invoking downloader on u'https://r2---sn-a5mlrn76.googlevideo.com/videoplayback?id=0b40cf772f7c7b87&itag=140&source=youtube&requiressl=yes&ms=au&mv=u&nh=IgpwcjAzLmxheDE2KgkxMjcuMC4wLjE&pl=23&mm=31&mn=sn-a5mlrn76&ratebypass=yes&mime=audio/mp4&gir=yes&clen=283612&lmt=1407412007036143&dur=17.600&mt=1481546959&signature=5F645614A67511A81A31ED61563D356B0338ADAD.3CC11473240E446772EA6063C45454F7844B5CE7&upn=rl10RMcdWfI&key=dg_yt0&ip=69.89.31.76&ipbits=0&expire=1481568656&sparams=ip,ipbits,expire,id,itag,source,requiressl,ms,mv,nh,pl,mm,mn,ratebypass,mime,gir,clen,lmt,dur'
[download] TEST VIDEO-C0DPdy98e4c.m4a has already been downloaded
[download] 100% of 274.68KiB
[ffmpeg] Correcting container in "TEST VIDEO-C0DPdy98e4c.m4a"
[debug] ffmpeg command line: ffmpeg -y -i 'file:TEST VIDEO-C0DPdy98e4c.m4a' -c copy -f mp4 'file:TEST VIDEO-C0DPdy98e4c.temp.m4a'
[debug] ffmpeg command line: ffprobe -show_streams 'file:TEST VIDEO-C0DPdy98e4c.m4a'
[ffmpeg] Destination: TEST VIDEO-C0DPdy98e4c.mp3
[debug] ffmpeg command line: ffmpeg -y -i 'file:TEST VIDEO-C0DPdy98e4c.m4a' -vn -acodec libmp3lame -q:a 0 'file:TEST VIDEO-C0DPdy98e4c.mp3'
ERROR: audio conversion failed: Error opening filters!
Traceback (most recent call last):
File "/home2/goyoutub/python27/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1837, in post_process
files_to_delete, info = pp.run(info)
File "/home2/goyoutub/python27/lib/python2.7/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 296, in run
'audio conversion failed: ' + e.msg)
PostProcessingError
[ ~/ffmpeg-3.2.2-64bit-static ]
goyoutub@box276$ ffmpeg -y -i 'file:TEST VIDEO-C0DPdy98e4c.m4a' -c copy -f mp4 'file:TEST VIDEO-C0DPdy98e4c.temp.m4a'
ffmpeg version 3.2.2-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.1 (Debian 5.4.1-4) 20161202
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:TEST VIDEO-C0DPdy98e4c.m4a':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf57.56.100
Duration: 00:00:17.60, start: 0.000000, bitrate: 127 kb/s
Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
handler_name : SoundHandler
Output #0, mp4, to 'file:TEST VIDEO-C0DPdy98e4c.temp.m4a':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf57.56.100
Stream #0:0(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 125 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
size= 275kB time=00:00:17.57 bitrate= 128.0kbits/s speed=2.42e+03x
video:0kB audio:270kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.650115%
[ ~/ffmpeg-3.2.2-64bit-static ]
goyoutub@box276$ ffprobe -show_streams 'file:TEST VIDEO-C0DPdy98e4c.m4a'
ffprobe version 3.2.2-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2007-2016 the FFmpeg developers
built with gcc 5.4.1 (Debian 5.4.1-4) 20161202
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:TEST VIDEO-C0DPdy98e4c.m4a':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf57.56.100
Duration: 00:00:17.60, start: 0.000000, bitrate: 127 kb/s
Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
handler_name : SoundHandler
[STREAM]
index=0
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_time_base=1/44100
codec_tag_string=mp4a
codec_tag=0x6134706d
sample_fmt=fltp
sample_rate=44100
channels=2
channel_layout=stereo
bits_per_sample=0
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/44100
start_pts=0
start_time=0.000000
duration_ts=776204
duration=17.600998
bit_rate=125769
max_bit_rate=125769
bits_per_raw_sample=N/A
nb_frames=758
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
TAG:language=und
TAG:handler_name=SoundHandler
[/STREAM]
[ ~/ffmpeg-3.2.2-64bit-static ]
goyoutub@box276$ ffmpeg -y -i 'file:TEST VIDEO-C0DPdy98e4c.m4a' -vn -acodec libmp3lame -q:a 0 'file:TEST VIDEO-C0DPdy98e4c.mp3'
ffmpeg version 3.2.2-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.1 (Debian 5.4.1-4) 20161202
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:TEST VIDEO-C0DPdy98e4c.m4a':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf57.56.100
Duration: 00:00:17.60, start: 0.000000, bitrate: 127 kb/s
Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
handler_name : SoundHandler
Output #0, mp3, to 'file:TEST VIDEO-C0DPdy98e4c.mp3':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
TSSE : Lavf57.56.100
Stream #0:0(und): Audio: mp3 (libmp3lame), 44100 Hz, stereo, fltp (default)
Metadata:
handler_name : SoundHandler
encoder : Lavc57.64.101 libmp3lame
Stream mapping:
Stream #0:0 -> #0:0 (aac (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
size= 119kB time=00:00:17.60 bitrate= 55.3kbits/s speed= 102x
video:0kB audio:118kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.290099%
[ ~/ffmpeg-3.2.2-64bit-static ]