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

Brightcove reports no mp4's but it looks like they exist #2744

Closed
jillh510 opened this issue Apr 14, 2014 · 1 comment
Closed

Brightcove reports no mp4's but it looks like they exist #2744

jillh510 opened this issue Apr 14, 2014 · 1 comment

Comments

@jillh510
Copy link

@jillh510 jillh510 commented Apr 14, 2014

Running youtube_dl like so:
python -m youtube_dl --skip-download --write-info-json -v http://www.ktvu.com/videos/news/raw-video-caltrain-releases-video-of-man-almost/vCTZdY/

yields the following .json file:
{"display_id": "3356691851001", "extractor": "Brightcove", "playlist": "RAW VIDEO: Caltrain releases video of man almost being hit by... | www.ktvu.com", "description": "Caltrain has released dramatic video it recently captured showing a man nearly getting hit by a train on the Pennisula.", "title": "RAW VIDEO: Caltrain releases video of man almost being hit by bullet train", "url": "http://cmgdigital.brightcove.com.edgesuite.net/374678397001/201403/2468/374678397001_3356826561001_Caltrain-NearMiss.mp4", "extractor_key": "Brightcove", "format": "5 - 1280x720", "fulltitle": "RAW VIDEO: Caltrain releases video of man almost being hit by bullet train", "playlist_index": 1, "thumbnail": "http://coxmedia.edgesuite.net/374678397001/2014/03/374678397001_3356831585001_vs-53285641e4b09db89c23deb6-767904724001.jpg?pubId=374678397001", "ext": "mp4", "width": 1280, "webpage_url": "http://c.brightcove.com/services/viewer/htmlFederated?playerID=836564367001&linkBaseURL=http%3A%2F%2Fwww.ktvu.com%2Fvideos%2Fnews%2Fraw-video-caltrain-releases-video-of-man-almost%2FvCTZdY%2F&%40videoPlayer=3356691851001&playerKey=AQ%7E%7E%2CAAAAVzySoEk%7E%2C39KWv4t6IXBhr9fjdqt8jJhoVTxYZojR#__youtubedl_smuggle=%7B%22Referer%22%3A+%22http%3A%2F%2Fwww.ktvu.com%2Fvideos%2Fnews%2Fraw-video-caltrain-releases-video-of-man-almost%2FvCTZdY%2F%22%7D", "formats": [{"format": "0 - 400x224", "url": "http://cmgdigital.brightcove.com.edgesuite.net/374678397001/201403/540/374678397001_3356831602001_Caltrain-NearMiss.mp4", "height": 224, "width": 400, "ext": "mp4", "format_id": "0"}, {"format": "1 - 400x224", "url": "http://cmgdigital.brightcove.com.edgesuite.net/374678397001/201403/2468/374678397001_3356826541001_Caltrain-NearMiss.mp4", "height": 224, "width": 400, "ext": "mp4", "format_id": "1"}, {"format": "2 - 480x268", "url": "http://cmgdigital.brightcove.com.edgesuite.net/374678397001/201403/2540/374678397001_3356831584001_Caltrain-NearMiss.mp4", "height": 268, "width": 480, "ext": "mp4", "format_id": "2"}, {"format": "3 - 640x360", "url": "http://cmgdigital.brightcove.com.edgesuite.net/374678397001/201403/1468/374678397001_3356826554001_Caltrain-NearMiss.mp4", "height": 360, "width": 640, "ext": "mp4", "format_id": "3"}, {"format": "4 - 720x404", "url": "http://cmgdigital.brightcove.com.edgesuite.net/374678397001/201403/2276/374678397001_3356827026001_Caltrain-NearMiss.mp4", "height": 404, "width": 720, "ext": "mp4", "format_id": "4"}, {"format": "5 - 1280x720", "url": "http://cmgdigital.brightcove.com.edgesuite.net/374678397001/201403/2468/374678397001_3356826561001_Caltrain-NearMiss.mp4", "height": 720, "width": 1280, "ext": "mp4", "format_id": "5"}], "format_id": "5", "height": 720, "uploader": "COX - KTVU", "id": "3356691851001", "webpage_url_basename": "htmlFederated", "stitle": "RAW VIDEO: Caltrain releases video of man almost being hit by bullet train"}

(note that the videos appear to be MP4's)

But running with mp4 specified as the format like so:
python -m youtube_dl --skip-download --write-info-json -format mp4 -v http://www.ktvu.com/videos/news/raw-video-caltrain-releases-video-of-man-almost/vCTZdY/

yields this error:
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--skip-download', '--write-info-json', '-format', 'mp4', '-v', 'http://www.ktvu.com/videos/news/raw-video-caltrain-releases-video-of-man-almost/vCTZdY/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.04.13
[debug] Python version 2.7.5 - Darwin-13.1.0-x86_64-i386-64bit
[debug] Proxy map: {}
WARNING: Falling back to youtube search for mp4 . Set --default-search to "auto" to suppress this warning.
[youtube:search] query "mp4": Downloading page 1
[download] Downloading playlist: mp4
[youtube:search] playlist mp4: Collected 1 video ids (downloading 1 of them)
[download] Downloading video #1 of 1
[youtube] Setting language
[youtube] L6LxZEvKDow: Downloading webpage
[youtube] L6LxZEvKDow: Downloading video info webpage
[youtube] L6LxZEvKDow: Extracting video information
ERROR: requested format not available
Traceback (most recent call last):
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 525, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 562, in process_ie_result
return self.process_video_result(ie_result, download=download)
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 809, in process_video_result
expected=True)
ExtractorError: requested format not available

@jillh510 jillh510 closed this Apr 14, 2014
@jillh510
Copy link
Author

@jillh510 jillh510 commented Apr 14, 2014

Never mind - should have been --format. Sorry about that.

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
1 participant
You can’t perform that action at this time.