ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.65k stars 10.06k forks source link

TWITTER ERROR: ffmpeg exited with code 1 #12009

Closed RingoTheDog closed 7 years ago

RingoTheDog commented 7 years ago

Please follow the guide below


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

Before submitting an issue make sure you have:

What is the purpose of your issue?


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 ```):

C:\Transmogrifier>youtube-dl.py -v "https://twitter.com/ZackFradellaWx/status/82
9007356159737856/video/1"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://twitter.com/ZackFradellaWx/status/8
29007356159737856/video/1']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.02.07
[debug] Python version 2.7.6 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-71727-g46778ab, rtmpdump 2.4
[debug] Proxy map: {}
[twitter] 829007356159737856: Downloading webpage
[twitter:card] 829007356159737856: Downloading webpage
[twitter:card] 829007356159737856: Downloading m3u8 information
[debug] Invoking downloader on u'https://video.twimg.com/ext_tw_video/8290072576
22835200/pu/pl/720x1280/d5QIri_JHdHPd8ft.m3u8'
[download] Destination: Zack Fradella - Debris falling on I-55 as possible torna
do passes between Manchac and Ponchatoula. #lawx-829007356159737856.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://video.twimg.com/ext_tw_video/829007257622835200/pu/pl/720x1280/d5QI
ri_JHdHPd8ft.m3u8 -c copy -f mp4 'file:Zack Fradella - Debris falling on I-55 as
 possible tornado passes between Manchac and Ponchatoula. #lawx-8290073561597378
56.mp4.part'
ffmpeg version N-71727-g46778ab Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
 --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
ble-decklink --enable-zlib
  libavutil      54. 23.101 / 54. 23.101
  libavcodec     56. 35.101 / 56. 35.101
  libavformat    56. 31.100 / 56. 31.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 14.100 /  5. 14.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Using network protocols without global network initialization. Please use avform
at_network_init(), this will become mandatory later.
    Last message repeated 5 times
Input #0, hls,applehttp, from 'https://video.twimg.com/ext_tw_video/829007257622
835200/pu/pl/720x1280/d5QIri_JHdHPd8ft.m3u8':
  Duration: 00:00:09.97, start: 0.000000, bitrate: 0 kb/s
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 720x1280,
 29.92 fps, 29.88 tbr, 90k tbn, 59.76 tbc
    Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp,
 126 kb/s
[mp4 @ 0000000005b3e9c0] Codec for stream 0 does not use global headers but cont
ainer format requires global headers
[mp4 @ 0000000005b3e9c0] Codec for stream 1 does not use global headers but cont
ainer format requires global headers
Output #0, mp4, to 'file:Zack Fradella - Debris falling on I-55 as possible torn
ado passes between Manchac and Ponchatoula. #lawx-829007356159737856.mp4.part':
  Metadata:
    encoder         : Lavf56.31.100
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x1280, q=2-31
, 29.92 fps, 29.88 tbr, 90k tbn, 90k tbc
    Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, mono, 126 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mp4 @ 0000000005b3e9c0] Malformed AAC bitstream detected: use the audio bitstre
am filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc' option with ffmpeg)
av_interleaved_write_frame(): Operation not permitted
[mp4 @ 0000000005b3e9c0] Malformed AAC bitstream detected: use the audio bitstre
am filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc' option with ffmpeg)
frame=    2 fps=0.0 q=-1.0 Lsize=      42kB time=00:00:00.11 bitrate=2959.6kbits
/s
video:45kB audio:2kB subtitle:0kB other streams:0kB global headers:0kB muxing ov
erhead: unknown
Conversion failed!

ERROR: ffmpeg exited with code 1
  File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "C:\Python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Transmogrifier\youtube-dl.py\__main__.py", line 19, in <module>
    youtube_dl.main()
  File "C:\Transmogrifier\youtube-dl.py\youtube_dl\__init__.py", line 452, in ma
in
    _real_main(argv)
  File "C:\Transmogrifier\youtube-dl.py\youtube_dl\__init__.py", line 442, in _r
eal_main
    retcode = ydl.download(all_urls)
  File "C:\Transmogrifier\youtube-dl.py\youtube_dl\YoutubeDL.py", line 1796, in
download
    url, force_generic_extractor=self.params.get('force_generic_extractor', Fals
e))
  File "C:\Transmogrifier\youtube-dl.py\youtube_dl\YoutubeDL.py", line 707, in e
xtract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "C:\Transmogrifier\youtube-dl.py\youtube_dl\YoutubeDL.py", line 778, in p
rocess_ie_result
    new_result, download=download, extra_info=extra_info)
  File "C:\Transmogrifier\youtube-dl.py\youtube_dl\YoutubeDL.py", line 753, in p
rocess_ie_result
    return self.process_video_result(ie_result, download=download)
  File "C:\Transmogrifier\youtube-dl.py\youtube_dl\YoutubeDL.py", line 1440, in
process_video_result
    self.process_info(new_info)
  File "C:\Transmogrifier\youtube-dl.py\youtube_dl\YoutubeDL.py", line 1704, in
process_info
    success = dl(filename, info_dict)
  File "C:\Transmogrifier\youtube-dl.py\youtube_dl\YoutubeDL.py", line 1646, in
dl
    return fd.download(name, info)
  File "C:\Transmogrifier\youtube-dl.py\youtube_dl\downloader\common.py", line 3
53, in download
    return self.real_download(filename, info_dict)
  File "C:\Transmogrifier\youtube-dl.py\youtube_dl\downloader\external.py", line
 44, in real_download
    self.get_basename(), retval))
  File "C:\Transmogrifier\youtube-dl.py\youtube_dl\downloader\common.py", line 1
62, in report_error
    self.ydl.report_error(*args, **kargs)
  File "C:\Transmogrifier\youtube-dl.py\youtube_dl\YoutubeDL.py", line 570, in r
eport_error
    self.trouble(error_message, tb)
  File "C:\Transmogrifier\youtube-dl.py\youtube_dl\YoutubeDL.py", line 532, in t
rouble
    tb_data = traceback.format_list(traceback.extract_stack())

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.


Description of your issue, suggested solution and other information

Thanks Ringo

RingoTheDog commented 7 years ago

Guess I had not read through the issues enough...

SOLUTION: -update FFMPEG & FFPROBE -add --hls-prefer-native to command