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

Add capability to download YouTube video as 3D format #1160

Closed
xanadu opened this issue Jul 31, 2013 · 3 comments
Closed

Add capability to download YouTube video as 3D format #1160

xanadu opened this issue Jul 31, 2013 · 3 comments

Comments

@xanadu
Copy link
Contributor

@xanadu xanadu commented Jul 31, 2013

Sample
http://www.youtube.com/watch?v=14dzliD5NNk

Itags
82,83,84,85,100,101,102

@xanadu
Copy link
Contributor Author

@xanadu xanadu commented Jul 31, 2013

@rg3 @phihag @jaimeMF : Can I get the write permission to start contribute?

I got a patch but not sure how to commit it here

---
 youtube_dl/extractor/youtube.py |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 7c3a596..c08387c 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -155,9 +155,11 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
     # Listed in order of quality
     _available_formats = ['38', '37', '46', '22', '45', '35', '44', '34', '18', '43', '6', '5', '17', '13',
                           '95', '94', '93', '92', '132', '151',
+                          '85', '84', '102', '83', '101', '82', '100',
                           ]
     _available_formats_prefer_free = ['38', '46', '37', '45', '22', '44', '35', '43', '34', '18', '6', '5', '17', '13',
                                       '95', '94', '93', '92', '132', '151',
+                                      '85', '102', '84', '101', '83', '100', '82',
                                       ]
     _video_extensions = {
         '13': '3gp',
@@ -171,6 +173,15 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
         '45': 'webm',
         '46': 'webm',
 
+        # 3d videos
+        '82': 'mp4',
+        '83': 'mp4',
+        '84': 'mp4',
+        '85': 'mp4',
+        '100': 'webm',
+        '101': 'webm',
+        '102': 'webm',
+        
         # videos that use m3u8
         '92': 'mp4',
         '93': 'mp4',
@@ -195,11 +206,18 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
         '44': '480x854',
         '45': '720x1280',
         '46': '1080x1920',
+        '82': '360p',
+        '83': '480p',
+        '84': '720p',
+        '85': '1080p',
         '92': '240p',
         '93': '360p',
         '94': '480p',
         '95': '720p',
         '96': '1080p',
+        '100': '360p',
+        '101': '480p',
+        '102': '720p',        
         '132': '240p',
         '151': '72p',
     }
-- 
1.7.9.5
@phihag
Copy link
Contributor

@phihag phihag commented Aug 1, 2013

@xanadu On github, you don't need write permission to contribute. Instead, you can create a pull request.

@xanadu
Copy link
Contributor Author

@xanadu xanadu commented Aug 1, 2013

Thanks.

This can be tracked at #1163

@xanadu xanadu closed this Aug 1, 2013
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.