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

ffmpeg incompatible bitstream filter error downloading from cbc.ca #11893

Closed
kevmitch opened this issue Jan 31, 2017 · 2 comments
Closed

ffmpeg incompatible bitstream filter error downloading from cbc.ca #11893

kevmitch opened this issue Jan 31, 2017 · 2 comments

Comments

@kevmitch
Copy link

@kevmitch kevmitch commented Jan 31, 2017

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.01.29. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2017.01.29

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

(this is the second attempt after the video component is already downloaded)

$ ~/.config/mpv/youtube-dl -v  http://watch.cbc.ca/share/episode/38e815a-00b89eedc76
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'http://watch.cbc.ca/share/episode/38e815a-00b89eedc76']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.01.29
[debug] Python version 2.7.13 - Linux-4.7.10.01+-x86_64-with-debian-stretch-sid
[debug] exe versions: ffmpeg 3.2.2-1, ffprobe 3.2.2-1, rtmpdump 2.4
[debug] Proxy map: {}
[cbc.ca:watch] 38e815a-00b89eedc76: Downloading XML
[download] Downloading playlist: Squirrels
[cbc.ca:watch] playlist Squirrels: Collected 1 video ids (downloading 1 of them)
[download] Downloading video 1 of 1
[cbc.ca:watch:video] abc54df5-36d0-4579-a874-7f3e84ab9b11: Downloading XML
[cbc.ca:watch:video] abc54df5-36d0-4579-a874-7f3e84ab9b11: Downloading m3u8 information
/home/kevmitch/.config/mpv/youtube-dl/youtube_dl/extractor/cbc.py:308: FutureWarning: The behavior of this method will change in future versions.  Use specific 'len(elem)' or 'elem is not None' test instead.
[debug] Invoking downloader on u'http://v.watch.cbc.ca/p//38e815a-00b89eedc76//CBC_MICHAEL_EVERYDAY_SEASON_01_S01E01-v2-11591261/segments/CBC_MICHAEL_EVERYDAY_SEASON_01_S01E01_v9/prog_index.m3u8'
[download] Squirrels-38e815a-00b89eedc76.f8006.mp4 has already been downloaded
[download] 100% of 960.51MiB
[debug] Invoking downloader on u'http://v.watch.cbc.ca/p//38e815a-00b89eedc76//CBC_MICHAEL_EVERYDAY_SEASON_01_S01E01-v2-11591261/segments/CBC_MICHAEL_EVERYDAY_SEASON_01_S01E01_a3/prog_index.m3u8'
[download] Destination: Squirrels-38e815a-00b89eedc76.fAC3-5_1-English.mp4
[debug] ffmpeg command line: ffmpeg -y -headers 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)
' -i http://v.watch.cbc.ca/p//38e815a-00b89eedc76//CBC_MICHAEL_EVERYDAY_SEASON_01_S01E01-v2-11591261/segments/CBC_MICHAEL_EVERYDAY_SEASON_01_S01E01_a3/prog_index.m3u8 -c copy -f mp4 -bsf:a aac_adtstoasc file:Squirrels-38e815a-00b89eedc76.fAC3-5_1-English.mp4.part
ffmpeg version 3.2.2-1 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 6.2.1 (Debian 6.2.1-5) 20161124
  configuration: --prefix=/usr --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-libopencv --enable-frei0r --enable-libx264 --enable-chromaprint --enable-shared
  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
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
Input #0, hls,applehttp, from 'http://v.watch.cbc.ca/p//38e815a-00b89eedc76//CBC_MICHAEL_EVERYDAY_SEASON_01_S01E01-v2-11591261/segments/CBC_MICHAEL_EVERYDAY_SEASON_01_S01E01_a3/prog_index.m3u8':
  Duration: 00:22:36.22, start: 10.000000, bitrate: 0 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Metadata:
      variant_bitrate : 0
[AVBSFContext @ 0x561717b3f120] Codec 'ac3' (86019) is not supported by the bitstream filter 'aac_adtstoasc'. Supported codecs are: aac (86018) 
Error initializing bitstream filter: aac_adtstoasc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
    Last message repeated 1 times


ERROR: ffmpeg exited with code 1
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/kevmitch/.config/mpv/youtube-dl/__main__.py", line 19, in <module>
    youtube_dl.main()
  File "/home/kevmitch/.config/mpv/youtube-dl/youtube_dl/__init__.py", line 451, in main
    _real_main(argv)
  File "/home/kevmitch/.config/mpv/youtube-dl/youtube_dl/__init__.py", line 441, in _real_main
    retcode = ydl.download(all_urls)
  File "/home/kevmitch/.config/mpv/youtube-dl/youtube_dl/YoutubeDL.py", line 1791, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/home/kevmitch/.config/mpv/youtube-dl/youtube_dl/YoutubeDL.py", line 705, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/home/kevmitch/.config/mpv/youtube-dl/youtube_dl/YoutubeDL.py", line 866, in process_ie_result
    extra_info=extra)
  File "/home/kevmitch/.config/mpv/youtube-dl/youtube_dl/YoutubeDL.py", line 776, in process_ie_result
    new_result, download=download, extra_info=extra_info)
  File "/home/kevmitch/.config/mpv/youtube-dl/youtube_dl/YoutubeDL.py", line 751, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/home/kevmitch/.config/mpv/youtube-dl/youtube_dl/YoutubeDL.py", line 1435, in process_video_result
    self.process_info(new_info)
  File "/home/kevmitch/.config/mpv/youtube-dl/youtube_dl/YoutubeDL.py", line 1693, in process_info
    partial_success = dl(fname, new_info)
  File "/home/kevmitch/.config/mpv/youtube-dl/youtube_dl/YoutubeDL.py", line 1641, in dl
    return fd.download(name, info)
  File "/home/kevmitch/.config/mpv/youtube-dl/youtube_dl/downloader/common.py", line 353, in download
    return self.real_download(filename, info_dict)
  File "/home/kevmitch/.config/mpv/youtube-dl/youtube_dl/downloader/external.py", line 43, in real_download
    self.get_basename(), retval))
  File "/home/kevmitch/.config/mpv/youtube-dl/youtube_dl/downloader/common.py", line 162, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/home/kevmitch/.config/mpv/youtube-dl/youtube_dl/YoutubeDL.py", line 568, in report_error
    self.trouble(error_message, tb)
  File "/home/kevmitch/.config/mpv/youtube-dl/youtube_dl/YoutubeDL.py", line 530, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

Description of your issue, suggested solution and other information

As shown above, when trying to download a video from cbc.ca (http://watch.cbc.ca/share/episode/38e815a-00b89eedc76), it fails during the audio step due to an ffmpeg audio bistream filter that is incompatible with the ac3 audio codec of the video. It looks like the bistream filter only applies to aac, which this clip does not use.

I am therefore left with only a video-only file Squirrels-38e815a-00b89eedc76.f8006.mp4. And a zero size Squirrels-38e815a-00b89eedc76.fAC3-5_1-English.mp4.part file where the audio was supposed to go.

@joetex72
Copy link

@joetex72 joetex72 commented Feb 1, 2017

Did you try extracting audio only and then manually merging video+audio after? Might be a temporary fix.

@remitamine remitamine closed this in 81aeafe Feb 2, 2017
@kevmitch
Copy link
Author

@kevmitch kevmitch commented Feb 2, 2017

That fixes it thanks. My temporary fix was just to remove the bitstream filter from the command line.

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
3 participants
@kevmitch @joetex72 and others
You can’t perform that action at this time.