question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[twitter] Support live streams

See original GitHub issue

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.09.27. 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 2016.09.27

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?

  • [X ] 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

The following sections concretize particular purposed issues, you can erase any section (the contents between triple —) not applicable to your issue


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:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

proxychains4 youtube-dl -v https://hlslive-llc.med1.m.lv.twimg.com/ls01/twitter/2016/09/27/TWITTER_VIDEO_bloomberg_debate_1_20160927/3500K/3500_slide_twv1.m3u8
[proxychains] config file found: /usr/local/Cellar/proxychains-ng/4.7/etc/proxychains.conf
[proxychains] preloading /usr/local/Cellar/proxychains-ng/4.7/lib/libproxychains4.dylib
[proxychains] DLL init
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'https://hlslive-llc.med1.m.lv.twimg.com/ls01/twitter/2016/09/27/TWITTER_VIDEO_bloomberg_debate_1_20160927/3500K/3500_slide_twv1.m3u8']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.09.27
[proxychains] DLL init
[debug] Python version 2.7.9 - Darwin-14.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.0.1-tessus
[debug] Proxy map: {}
[generic] 3500_slide_twv1: Requesting header
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  hlslive-llc.med1.m.lv.twimg.com:443  ...  OK
[generic] 3500_slide_twv1: Downloading m3u8 information
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  hlslive-llc.med1.m.lv.twimg.com:443  ...  OK
[debug] Invoking downloader on u'https://hlslive-llc.med1.m.lv.twimg.com/ls01/twitter/2016/09/27/TWITTER_VIDEO_bloomberg_debate_1_20160927/3500K/3500_slide_twv1.m3u8'
[download] Destination: 3500_slide_twv1-3500_slide_twv1.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 https://hlslive-llc.med1.m.lv.twimg.com/ls01/twitter/2016/09/27/TWITTER_VIDEO_bloomberg_debate_1_20160927/3500K/3500_slide_twv1.m3u8 -c copy -f mp4 -bsf:a aac_adtstoasc file:3500_slide_twv1-3500_slide_twv1.mp4.part
[proxychains] DLL init
ffmpeg version 3.0.1-tessus Copyright (c) 2000-2016 the FFmpeg developers
  built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --as=yasm --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzmq --enable-version3 --disable-ffplay --disable-indev=qtkit --disable-indev=x11grab_xcb
  libavutil      55. 17.103 / 55. 17.103
  libavcodec     57. 24.102 / 57. 24.102
  libavformat    57. 25.100 / 57. 25.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 31.100 /  6. 31.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  hlslive-llc.med1.m.lv.twimg.com:443  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  media-api.m.lv.twimg.com:443  ...  OK
Unable to open key file https://media-api.m.lv.twimg.com/programs/38129399/keys/id/20186121
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  hlslive-llc.med1.m.lv.twimg.com:443  ...  OK
[hls,applehttp @ 0x7fe651805600] Error when loading first segment 'https://hlslive-llc.med1.m.lv.twimg.com/ls01/twitter/2016/09/27/TWITTER_VIDEO_bloomberg_debate_1_20160927/3500K/03/21/54.ts'
https://hlslive-llc.med1.m.lv.twimg.com/ls01/twitter/2016/09/27/TWITTER_VIDEO_bloomberg_debate_1_20160927/3500K/3500_slide_twv1.m3u8: Invalid data found when processing input


ERROR: ffmpeg exited with code 1
  File "/Library/Frameworks/Python.framework/Versions/2.7/bin/youtube-dl", line 11, in <module>
    sys.exit(main())
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/youtube_dl/__init__.py", line 449, in main
    _real_main(argv)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/youtube_dl/__init__.py", line 439, in _real_main
    retcode = ydl.download(all_urls)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1791, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 705, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 751, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1435, in process_video_result
    self.process_info(new_info)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1699, in process_info
    success = dl(filename, info_dict)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1641, in dl
    return fd.download(name, info)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/youtube_dl/downloader/common.py", line 354, in download
    return self.real_download(filename, info_dict)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/youtube_dl/downloader/external.py", line 43, in real_download
    self.get_basename(), retval))
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/youtube_dl/downloader/common.py", line 162, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 568, in report_error
    self.trouble(error_message, tb)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 530, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:19

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

How to go live on Twitter with Twitter live stream feeds
How to create live videos on Twitter ; Step 1. Tap the icon from the composer. ; Step 2. Tap Live at the...
Read more >
How to go live on Twitter | Twitter Help
You can share live videos directly from the Twitter app. Tap the camera icon when you go to compose a Tweet and swipe...
Read more >
Media Studio Producer - Twitter Help Center
Launch professionally-produced live broadcasts on Twitter directly from Media Studio with Producer. With self-serve livestreams, Producer makes it easy to ...
Read more >
How to launch your Twitter livestream | Twitter Create
It's never been easier to go live on Twitter. Launch a broadcast directly from the app by tapping the live video icon as...
Read more >
How to watch and search for broadcasts on Periscope
You can watch Periscope broadcasts on Periscope and Twitter on iOS, Android, and web. On Periscope, the Watch Tab is where you go...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found