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

worst format option does not work with dailymotion #7187

Closed
lucascharrierpulpix opened this issue Oct 15, 2015 · 2 comments
Closed

worst format option does not work with dailymotion #7187

lucascharrierpulpix opened this issue Oct 15, 2015 · 2 comments
Labels

Comments

@lucascharrierpulpix
Copy link

@lucascharrierpulpix lucascharrierpulpix commented Oct 15, 2015

Trying :
youtube-dl -f worst http://www.dailymotion.com/video/x28gvoz_dr-mietzsche-la-verite_school --verbose

I get the following output:

[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-f', u'worst', u'http://www.dailymotion.com/video/x28gvoz_dr-mietzsche-la-verite_school', u'--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.10.13
[debug] Git HEAD: d984b82
[debug] Python version 2.7.6 - Darwin-14.3.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.7.1, ffprobe 2.7.1
[debug] Proxy map: {}
[dailymotion] x28gvoz: Downloading webpage
[dailymotion] x28gvoz: Downloading m3u8 information
[debug] Invoking downloader on u'https://www.dailymotion.com/cdn/manifest/video/x28gvoz.m3u8?auth=1445099002-2562-mq981ian-2bd748a64b28eeb9b08cfc0d35035786'
[download] Destination: Dr. Mietzsche - la vérité-x28gvoz.mp4
[debug] ffmpeg command line: ffmpeg -y -headers '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/20.0 (Chrome)
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Cookie: _csrf/link=-lQfkWVpsvV5beyg8PBiRFvTS_vU9xNwJQRJY9K6a7g; sc_ratio=25; mc=null; dmvk=561fd2fab69a2; ts=807151; v1st=058010772C7ABD44B78072A62BC1B09B
' -i 'https://www.dailymotion.com/cdn/manifest/video/x28gvoz.m3u8?auth=1445099002-2562-mq981ian-2bd748a64b28eeb9b08cfc0d35035786' -f mp4 -c copy -bsf:a aac_adtstoasc 'file:Dr. Mietzsche - la vérité-x28gvoz.mp4.part'
ffmpeg version 2.7.1 Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.7.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 41.100 / 56. 41.100
libavformat 56. 36.100 / 56. 36.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
[http @ 0x7f8a78f05140] HTTP error 404 Not Found
https://www.dailymotion.com/cdn/manifest/video/x28gvoz.m3u8?auth=1445099002-2562-mq981ian-2bd748a64b28eeb9b08cfc0d35035786: Server returned 404 Not Found

ERROR: ffmpeg exited with code 1
File "/Users/admin/Documents/hec/venv/bin/youtube-dl", line 11, in
sys.exit(main())
File "/Users/admin/Documents/hec/venv/lib/python2.7/site-packages/youtube_dl/init.py", line 410, in main
_real_main(argv)
File "/Users/admin/Documents/hec/venv/lib/python2.7/site-packages/youtube_dl/init.py", line 400, in _real_main
retcode = ydl.download(all_urls)
File "/Users/admin/Documents/hec/venv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1665, in download
url, force_generic_extractor=self.params.get('force_generic_extractor', False))
File "/Users/admin/Documents/hec/venv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 671, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/Users/admin/Documents/hec/venv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 717, in process_ie_result
return self.process_video_result(ie_result, download=download)
File "/Users/admin/Documents/hec/venv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1335, in process_video_result
self.process_info(new_info)
File "/Users/admin/Documents/hec/venv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1597, in process_info
success = dl(filename, info_dict)
File "/Users/admin/Documents/hec/venv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1539, in dl
return fd.download(name, info)
File "/Users/admin/Documents/hec/venv/lib/python2.7/site-packages/youtube_dl/downloader/common.py", line 342, in download
return self.real_download(filename, info_dict)
File "/Users/admin/Documents/hec/venv/lib/python2.7/site-packages/youtube_dl/downloader/hls.py", line 61, in real_download
self.report_error('%s exited with code %d' % (ffpp.basename, retval))
File "/Users/admin/Documents/hec/venv/lib/python2.7/site-packages/youtube_dl/downloader/common.py", line 155, in report_error
self.ydl.report_error(_args, *_kargs)
File "/Users/admin/Documents/hec/venv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 535, in report_error
self.trouble(error_message, tb)
File "/Users/admin/Documents/hecvenv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 497, in trouble
tb_data = traceback.format_list(traceback.extract_stack())

@jaimeMF jaimeMF added the bug label Oct 15, 2015
@gaming-hacker
Copy link

@gaming-hacker gaming-hacker commented Oct 25, 2015

i wonder if it is because you have

'Accept-Language: en-us,en;q=0.5

and the file name is french with special characters.

la vérité-x28gvoz.mp4

try adding the flag to get rid of characters

--restrict-filenames

@denisvlr
Copy link

@denisvlr denisvlr commented Oct 30, 2015

I'm getting a similar error: the command youtube-dl -f worst http://www.dailymotion.com/video/x28gvoz_dr-mietzsche-la-verite_school --verbose returns the following error:

https://www.dailymotion.com/cdn/manifest/video/x28gvoz.m3u8?auth=1446385706-2562-ok82k369-2570de0c022779c9c6e74c31a4f0700e: Protocol not found ERROR: ffmpeg exited with code 1
(and then the same stack trace)

Adding --restrict-filenames didn't fix the issue, I also tried videos in english with regular characters.

The option -f best works correctly however.

@remitamine remitamine closed this Nov 26, 2019
@remitamine remitamine added external-bugs and removed bug labels Nov 26, 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
5 participants
You can’t perform that action at this time.