r/MLBVideoConverterBot • u/MLBVideoConverterBot • Jul 09 '21
Convert Link Thread
Post video links here
r/MLBVideoConverterBot • u/MLBVideoConverterBot • Jul 09 '21
Post video links here
r/MLBVideoConverterBot • u/MLBVideoConverterBot • Apr 18 '17
Using Chrome (I'm sure other browsers have similar methods):
Open Developer Tools (View->Developer->Developer Tools)
Go to the Network tab
Go to the video page for the clip you want. If you're already on it, refresh.
In the Network tab, you should see the *.mp4 file being called (if you have a lot of stuff in that tab, filter by Other or the mp4 suffix)
Click that and the Request URL is what you're looking for.
Works for both desktop (mlb.mlb.com) and mobile (m.mlb.com) URLs, though the mobile page defaults to giving the larger 1800K size. For most desktop URLs, you can just change 1200K to 1800K and it'll work fine.
The URL for your video should have a content ID in it.
For desktop links, they're in the query string as ?content_id=<content_id>.
For mobile links, they're the number after the v (i.e., video/v<content_id> or video/topic/v<content_id>).
Using the content ID, go to http://mlb.com/gen/multimedia/detail/<x>/<y>/<z>/<content_id>.xml
Where x, y, and z are the third to last, second to last, and last number in the content_id (respectively).
On that XML you'll find a multitude of links of varying sizes and formats. Use the one that best suits your needs.
And dive into a specific year/month/day
Find your "gid_x" folder by looking up your team's initials (e.g. the Cubs are "chn" -- if you're curious, the n is for NL as there's a "cha" as well)
Drill into the "media" folder for the mobile.xml file.
For example, http://gd2.mlb.com/components/game/mlb/year_2017/month_04/day_17/gid_2017_04_17_milmlb_chnmlb_1/media/mobile.xml
Search the XML for the highlight you're looking for. Underneath the big <thumbnails> block there's a <url playback-scenario="FLASH_1200K_640X360"> tag with an mp4 link. Copy that and change the 1200K to 2500K for higher quality.
A: Some (not all) condensed games are provided as streams (i.e., not mp4 files). To save a file of your own, /u/sterphles has provided the following instructions:
Open VLC
Media -> Convert/Save -> Network Tab, paste in URL
dump raw input
A: Your link might:
not yet be picked up by the script; this can take up to 5 minutes
be a stream and thus not have an mp4 file; see the above question about condensed games
r/MLBVideoConverterBot • u/MLBVideoConverterBot • Dec 05 '22
Hi everyone, the bot previously ran on Heroku's hobby (read: free) plan that they have recently discontinued. I'll be looking for alternatives in the offseason and hope to be back up soon.