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

"Press [q] to stop, [?] for help" does not work in command line, and the prompt should not show up in the first place with the parameters I used! #18615

Closed
GregoriusT opened this issue Dec 23, 2018 · 2 comments
Labels

Comments

@GregoriusT
Copy link

@GregoriusT GregoriusT commented Dec 23, 2018

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 this: [x])
  • Use the Preview tab to see what your issue will actually look like

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

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

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

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

youtube-dl "https://www.youtube.com/channel/UCRdyjE3lE7dtCOxU4rTsXVA/videos" -v --download-archive "~/Documents/Scripts/downloaded.txt" --playlist-end 24 -f "best[height<=240]"
[debug] System config: []
[debug] User config: [u'--match-filter', u'!is_live', u'--retries', u'infinite', u'--restrict-filenames', u'-i', u'-o', u'/data/Downloads/%(title)s.%(ext)s', u'-f', u'best[height<=360]', u'--console-title', u'--http-chunk-size', u'10M']
[debug] Custom config: []
[debug] Command-line args: [u'https://www.youtube.com/channel/UCRdyjE3lE7dtCOxU4rTsXVA/videos', u'-v', u'--download-archive', u'~/Documents/Scripts/downloaded.txt', u'--playlist-end', u'24', u'-f', u'best[height<=240]']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.12.17
[debug] Python version 2.7.15rc1 (CPython) - Linux-4.15.0-42-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.4-0ubuntu0.18.04.1, ffprobe 3.4.4-0ubuntu0.18.04.1, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube:channel] UCRdyjE3lE7dtCOxU4rTsXVA: Downloading channel page
[youtube:playlist] UURdyjE3lE7dtCOxU4rTsXVA: Downloading webpage
[download] Downloading playlist: Uploads from Tekking101
[youtube:playlist] playlist Uploads from Tekking101: Downloading 24 videos
[download] Downloading video 1 of 24
[youtube] IIKqNAyJPz0: Downloading webpage
[youtube] IIKqNAyJPz0: Downloading video info webpage
[youtube] IIKqNAyJPz0: Downloading m3u8 information
[youtube] IIKqNAyJPz0: Downloading MPD manifest
[youtube] IIKqNAyJPz0: Downloading MPD manifest
[debug] Invoking downloader on u'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/IIKqNAyJPz0.0/itag/92/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D139/sgovp/gir%3Dyes%3Bitag%3D133/hls_chunk_host/r2---sn-8vq54voxqx-cxgs.googlevideo.com/force_finished/1/playlist_type/CLEAN/ei/PNUeXJW0M8u_gAe8yZSwBA/gcr/de/initcwndbps/4450/mm/32/mn/sn-8vq54voxqx-cxgs/ms/lv/mv/m/pl/17/dover/11/keepalive/yes/mt/1545524426/disable_polymer/true/ip/47.64.69.196/ipbits/0/expire/1545546140/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,force_finished,playlist_type,ei,gcr,initcwndbps,mm,mn,ms,mv,pl/signature/545C2B226909DCBEC85F4A17543EB0BAB85CF932.2E0B674F946F37DE4CB2EF26CDF498797F2FF526/key/dg_yt0/playlist/index.m3u8'
[download] Destination: /data/Downloads/Tekking101_Charity_Stream_For_The_Leukemia_Research_DONATION_LINK_BELOW.mp4                                                                                                                         
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7                                                                                                                           
Accept-Language: en-us,en;q=0.5                                                                                                                                                                                                             
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8                                                                                                                                                                     
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0                                                                                                                                                            
' -i 'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/IIKqNAyJPz0.0/itag/92/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D139/sgovp/gir%3Dyes%3Bitag%3D133/hls_chunk_host/r2---sn-8vq54voxqx-cxgs.googlevideo.com/force_finished/1/playlist_type/CLEAN/ei/PNUeXJW0M8u_gAe8yZSwBA/gcr/de/initcwndbps/4450/mm/32/mn/sn-8vq54voxqx-cxgs/ms/lv/mv/m/pl/17/dover/11/keepalive/yes/mt/1545524426/disable_polymer/true/ip/47.64.69.196/ipbits/0/expire/1545546140/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,force_finished,playlist_type,ei,gcr,initcwndbps,mm,mn,ms,mv,pl/signature/545C2B226909DCBEC85F4A17543EB0BAB85CF932.2E0B674F946F37DE4CB2EF26CDF498797F2FF526/key/dg_yt0/playlist/index.m3u8' -c copy -f mp4 '-bsf:a' aac_adtstoasc 'file:/data/Downloads/Tekking101_Charity_Stream_For_The_Leukemia_Research_DONATION_LINK_BELOW.mp4.part'                                                                                                                                                                                                                                  
ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers                                                                                                                                                         
  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)                                                                                                                                                                                                 
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.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-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --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-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared                                                                             
  libavutil      55. 78.100 / 55. 78.100                                                                                                                                                                                                    
  libavcodec     57.107.100 / 57.107.100                                                                                                                                                                                                    
  libavformat    57. 83.100 / 57. 83.100                                                                                                                                                                                                    
  libavdevice    57. 10.100 / 57. 10.100                                                                                                                                                                                                    
  libavfilter     6.107.100 /  6.107.100                                                                                                                                                                                                    
  libavresample   3.  7.  0 /  3.  7.  0                                                                                                                                                                                                    
  libswscale      4.  8.100 /  4.  8.100                                                                                                                                                                                                    
  libswresample   2.  9.100 /  2.  9.100                                                                                                                                                                                                    
  libpostproc    54.  7.100 / 54.  7.100                                                                                                                                                                                                    
[hls,applehttp @ 0x5572af2b69c0] HLS request for url 'https://r2---sn-8vq54voxqx-cxgs.googlevideo.com/videoplayback/id/IIKqNAyJPz0.0/itag/92/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D139/sgovp/gir%3Dyes%3Bitag%3D133/hls_chunk_host/r2---sn-8vq54voxqx-cxgs.googlevideo.com/force_finished/1/playlist_type/CLEAN/ei/PNUeXJW0M8u_gAe8yZSwBA/gcr/de/initcwndbps/4450/mm/32/mn/sn-8vq54voxqx-cxgs/ms/lv/mv/m/pl/17/keepalive/yes/mt/1545524426/disable_polymer/true/ip/47.64.69.196/ipbits/0/expire/1545546140/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,force_finished,playlist_type,ei,gcr,initcwndbps,mm,mn,ms,mv,pl/signature/545C2B226909DCBEC85F4A17543EB0BAB85CF932.2E0B674F946F37DE4CB2EF26CDF498797F2FF526/key/dg_yt0/playlist/index.m3u8/sq/4806/goap/clen%3D21016%3Blmt%3D1545497848332993/govp/clen%3D40951%3Blmt%3D1545497848332992/dur/2.000/file/seg.ts', offset 0, playlist 0                                                                                                                                                                                            
[hls,applehttp @ 0x5572af2b69c0] Opening 'https://r2---sn-8vq54voxqx-cxgs.googlevideo.com/videoplayback/id/IIKqNAyJPz0.0/itag/92/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D139/sgovp/gir%3Dyes%3Bitag%3D133/hls_chunk_host/r2---sn-8vq54voxqx-cxgs.googlevideo.com/force_finished/1/playlist_type/CLEAN/ei/PNUeXJW0M8u_gAe8yZSwBA/gcr/de/initcwndbps/4450/mm/32/mn/sn-8vq54voxqx-cxgs/ms/lv/mv/m/pl/17/keepalive/yes/mt/1545524426/disable_polymer/true/ip/47.64.69.196/ipbits/0/expire/1545546140/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,force_finished,playlist_type,ei,gcr,initcwndbps,mm,mn,ms,mv,pl/signature/545C2B226909DCBEC85F4A17543EB0BAB85CF932.2E0B674F946F37DE4CB2EF26CDF498797F2FF526/key/dg_yt0/playlist/index.m3u8/sq/4806/goap/clen%3D21016%3Blmt%3D1545497848332993/govp/clen%3D40951%3Blmt%3D1545497848332992/dur/2.000/file/seg.ts' for reading                                                                                                                                                                                                                  
[h264 @ 0x5572af9e7120] Reinit context to 432x240, pix_fmt: yuv420p                                                                                                                                                                         
Input #0, hls,applehttp, from 'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/IIKqNAyJPz0.0/itag/92/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D139/sgovp/gir%3Dyes%3Bitag%3D133/hls_chunk_host/r2---sn-8vq54voxqx-cxgs.googlevideo.com/force_finished/1/playlist_type/CLEAN/ei/PNUeXJW0M8u_gAe8yZSwBA/gcr/de/initcwndbps/4450/mm/32/mn/sn-8vq54voxqx-cxgs/ms/lv/mv/m/pl/17/dover/11/keepalive/yes/mt/1545524426/disable_polymer/true/ip/47.64.69.196/ipbits/0/expire/1545546140/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,force_finished,playlist_type,ei,gcr,initcwndbps,mm,mn,ms,mv,pl/signature/545C2B226909DCBEC85F4A17543EB0BAB85CF932.2E0B674F946F37DE4CB2EF26CDF498797F2FF526/key/dg_yt0/playlist/index.m3u8':
  Duration: 02:00:00.00, start: 9612.032000, bitrate: 3 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Video: h264 (Main), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, left), 426x240 (432x240) [SAR 1:1 DAR 71:40], 30 fps, 30 tbr, 90k tbn, 60 tbc
    Metadata:
      variant_bitrate : 0
Output #0, mp4, to 'file:/data/Downloads/Tekking101_Charity_Stream_For_The_Leukemia_Research_DONATION_LINK_BELOW.mp4.part':
  Metadata:
    encoder         : Lavf57.83.100
    Stream #0:0: Video: h264 (Main), 1 reference frame (avc1 / 0x31637661), yuv420p(tv, bt709, left), 426x240 (0x0) [SAR 1:1 DAR 71:40], q=2-31, 30 fps, 30 tbr, 90k tbn, 90k tbc
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Audio: aac (HE-AAC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 0
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
...
<end of log>

So here is the issue:

First of all, the press q or ? prompt doesn't work whatsoever for me, I can spam q or ? and it does nothing even after pressing Enter just to make sure. Also there is no "?"-Key on my Keyboard, I have to do "Shift+ß" to do that, unsure if that is the Issue, maybe change that letter to "h" or something for help and have legacy support for "?" ofcourse, but "q" should have worked regardless yet it didn't!

Note: Neither gnome-terminal (Ubuntu) nor Konsole (KDE) were able to have the q or ? key be used to stop or help with the Script.

Second I used -q for quiet, and ofcourse I did not get any prompt from that, but it did freeze the Script for a while so I ran the same command with -v instead of -q to get the Logs above. I would classify that as bad command line behavior, as it can screw over scripts by either prompting to a non-existent user or not prompting at all to an unsuspecting user.

Third, this "was" a Livestream, and I did use --match-filter '!is_live' and it still hung up on this, with my suspicion being that the Extractor itself still thinks its a Livestream, because Youtube did not process the Stream into a proper Video yet (meaning it might not be reproducible with the Link anymore), and I looked through the possible Filters I could use as parameter and there was nothing that looked like it could prevent this specific broken extractor from being used without me having to know all the internals of youtube-dl.

Fourth: The Extractor does not download anything, when I open the File with VLC Media Player its just 0:00 length black screen, simply because the Livestream ended already, meaning the Extractor is broken for me between the phases of "Stream Ending" and "Finishing Video Processing on Youtubes End".

I would love a way or parameter for youtube-dl to not hang up on an automated script like that. Everything else works nicely, and this is the only missing piece to make it work properly for me. (until I find a new thing to try out that somehow breaks ofcourse, like with all Programs)

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 23, 2018

  1. It's an output from ffmpeg and it's not supposed to work.
  2. It's technically impossible to prevent this cause you have no control over what ffmpeg is doing.
  3. It does not. Otherwise it would just be skipped.
  4. Again, update ffmpeg. Latest ffmpeg downloads this just fine.
@dstftw dstftw closed this Dec 23, 2018
@dstftw dstftw added the invalid label Dec 23, 2018
@GregoriusT
Copy link
Author

@GregoriusT GregoriusT commented Dec 23, 2018

Thank you for telling me its ffmpeg, and since it already behaves a little bit bad, I tried just adding --hls-prefer-native to my Config (which does work right now), because a logged fail state, that I can look at later, is better than a freeze state with a corrupted download.

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.