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-location doesn't work if quite right #15446

Closed
Delivator opened this issue Jan 28, 2018 · 7 comments
Closed

--ffmpeg-location doesn't work if quite right #15446

Delivator opened this issue Jan 28, 2018 · 7 comments

Comments

@Delivator
Copy link

@Delivator Delivator commented Jan 28, 2018

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

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

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

PS C:\Users\Delivator\Desktop> youtube-dl -v --ffmpeg-location "D:\Documents\GitHub\youtube-dl.js\node_modules\ffmpeg-binaries\bin" --external-downloader ffmpeg -x https://youtu.be/q5weS3aY-Qc
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--ffmpeg-location', 'D:\\Documents\\GitHub\\youtube-dl.js\\node_modules\\ffmpeg-binaries\\bin', '--external-downloader', 'ffmpeg', '-x', 'https://youtu.be/q5weS3aY-Qc']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2018.01.21
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.16299
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] q5weS3aY-Qc: Downloading webpage
[youtube] q5weS3aY-Qc: Downloading video info webpage
[youtube] q5weS3aY-Qc: Extracting video information
[youtube] {22} signature length 43.40, html5 player vflX4ueE4
[youtube] {43} signature length 43.40, html5 player vflX4ueE4
[youtube] {18} signature length 43.40, html5 player vflX4ueE4
[youtube] {36} signature length 43.40, html5 player vflX4ueE4
[youtube] {17} signature length 43.40, html5 player vflX4ueE4
[youtube] {137} signature length 43.40, html5 player vflX4ueE4
[youtube] {248} signature length 43.40, html5 player vflX4ueE4
[youtube] {136} signature length 43.40, html5 player vflX4ueE4
[youtube] {247} signature length 43.40, html5 player vflX4ueE4
[youtube] {135} signature length 43.40, html5 player vflX4ueE4
[youtube] {244} signature length 43.40, html5 player vflX4ueE4
[youtube] {134} signature length 43.40, html5 player vflX4ueE4
[youtube] {243} signature length 43.40, html5 player vflX4ueE4
[youtube] {133} signature length 43.40, html5 player vflX4ueE4
[youtube] {242} signature length 43.40, html5 player vflX4ueE4
[youtube] {160} signature length 43.40, html5 player vflX4ueE4
[youtube] {278} signature length 43.40, html5 player vflX4ueE4
[youtube] {140} signature length 43.40, html5 player vflX4ueE4
[youtube] {171} signature length 43.40, html5 player vflX4ueE4
[youtube] {249} signature length 43.40, html5 player vflX4ueE4
[youtube] {250} signature length 43.40, html5 player vflX4ueE4
[youtube] {251} signature length 43.40, html5 player vflX4ueE4
[debug] Invoking downloader on 'https://r2---sn-4g5ednle.googlevideo.com/videoplayback?id=o-AHOkcITwOTGCpIGgGVU46zOA0ODCU8_mK_qkCs1VGpE9&ei=-iNuWrCyHZPg1gLF2rLAAg&ipbits=0&ip=cencored&key=yt6&ms=au&mv=m&mt=1517167532&clen=5838915&lmt=1508887339181428&gir=yes&dur=325.781&mn=sn-4g5ednle&mm=31&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&expire=1517189210&itag=251&keepalive=yes&mime=audio%2Fwebm&source=youtube&pl=33&requiressl=yes&initcwndbps=1355000&signature=0CFD1BAC62A34FACDF17E5210A65FAC6FDDB891C.8693F0BDE4CF88E62F29BBB35A66C8C160F68E45&ratebypass=yes'
[download] Destination: TRETTMANN - Geh ran (prod. KITSCHKRIEG)-q5weS3aY-Qc.webm
ERROR: m3u8 download detected but ffmpeg or avconv could not be found. Please install one.
  File "__main__.py", line 19, in <module>
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\__init__.py", line 465, in main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\__init__.py", line 455, in _real_main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\YoutubeDL.py", line 1988, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\YoutubeDL.py", line 795, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\YoutubeDL.py", line 849, in process_ie_result
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\YoutubeDL.py", line 1622, in process_video_result
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\YoutubeDL.py", line 1895, in process_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\YoutubeDL.py", line 1834, in dl
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\downloader\common.py", line 361, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\downloader\external.py", line 33, in real_download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\downloader\external.py", line 209, in _call_downloader
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\downloader\common.py", line 163, in report_error
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\YoutubeDL.py", line 612, in report_error
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\YoutubeDL.py", line 574, in trouble

Description of your issue, suggested solution and other information

The --ffmpeg-location parameter doesn't work quite right imo.
I have this folder (

    Verzeichnis: D:\Documents\GitHub\youtube-dl.js\node_modules\ffmpeg-binaries\bin


Mode                LastWriteTime         Length Name                                                        
----                -------------         ------ ----                                                        
-a----       11.12.2016     05:51       45171088 ffmpeg                                                      
-a----       26.01.2018     02:54       36653056 ffmpeg.exe                                                  
-a----       26.01.2018     02:54       36541440 ffplay.exe                                                  
-a----       11.12.2016     05:51       45084752 ffprobe                                                     
-a----       26.01.2018     02:54       36556288 ffprobe.exe                                                 
-a----       11.12.2016     05:51       40390000 ffserver                                                    

) and when giving this folder path to youtube-dl, it says ERROR: m3u8 download detected but ffmpeg or avconv could not be found. Please install one. even tho all the required ffmpeg binaries are in this folder. But when when I delete the linux binaries (ffmpeg, ffprobe & ffserver) it works.

So im guessing youtube-dl sees that there is a ffmpeg file in this folder, tries to use it and because it doesn't work just says that ffmpeg isn't installed. If that is the case, it maybe should also check if there is a ffmpeg.exe file in that directory.

Sure I could just delete the files and it would work fine, but I don't thinks that it should work like this.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 29, 2018

Post the output of Get-FileHash youtube-dl.exe -Algorithm SHA1.

@Delivator
Copy link
Author

@Delivator Delivator commented Jan 29, 2018

Sure

PS C:\Users\Delivator\PATH> Get-FileHash youtube-dl.exe -Algorithm SHA1

Algorithm       Hash                                                                   Path
---------       ----                                                                   ----
SHA1            A5E39CDE683199850FE1FE5F813968FD20803D2C                               C:\Users\Delivator\PATH\youtube-dl.exe
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 29, 2018

Incorrect hash. Hash for 2018.01.21 is 4fb4f863f0cb507e23f6c50a2280e387b4ce2b41.

@dstftw dstftw closed this Jan 29, 2018
@Delivator
Copy link
Author

@Delivator Delivator commented Jan 29, 2018

Sorry I must have done an update, error still occurs in version 2018.01.27 tho

@dstftw dstftw reopened this Jan 29, 2018
@Hrxn
Copy link

@Hrxn Hrxn commented Jan 29, 2018

Why do you have the Linux binaries in the same folder?

@Delivator
Copy link
Author

@Delivator Delivator commented Jan 29, 2018

I was tying to use a node module called ffmpeg-binaires (https://github.com/Hackzzila/node-ffmpeg-binaries) which as I had to find out downloads and extracts both windows and linux binaries independend of the os it's beeing installed on.

@Delivator
Copy link
Author

@Delivator Delivator commented May 2, 2019

Turned out to be a problem with the library I was using.

@Delivator Delivator closed this May 2, 2019
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
You can’t perform that action at this time.