Is a shorter solution possible?<p>Is decompiling SWF and/or de-obfuscating Javascript really necessary?<p>Years ago, I approached these sites like the author in the blog post. I spent hours reading about Flash and figuring out the schemes websites used. I decompiled swf. I also tried rtmpdump, livestreamer and other all-in-one solutions. I used early youtube downloaders (clive, etc) and later quvi. I also used /dev/bpf to capture HTTP requests. I tried it all.<p>I can relate to what the author is trying to do. I never settle for "streaming". Download only.<p>However I found over the years either the websites have made things easier or I was simply trying too hard. Or maybe I just am not interested in the type of video that is served in this way. For some reason it takes much less effort now.<p>To make sure I am not imagining this, I decided to try one of the author's examples.<p>I chose projectfreetv.so<p>1. I followed a link on the main page for some TV show I have never seen.<p>2. I read the HTML.<p>3. I noticed /watch/?aff_id= URL's.<p>4. I chose the first one, 493165, and followed it.<p>5. I read the HTML.<p>6. I noticed a URL pointing to a website that serves TV shows and followed it.<p>7. I read the HTML.<p>8. I noticed a URL pointing to an MP4 file.<p>9. I downloaded the file.<p>I assume I got the TV episode on offer. The screen size is a little small but the file was about 89MB and appeared to be the full episode.<p>Total time: less than 10min<p>What did I use? sed, netcat, less and ftp for the download. The entire process is a one-liner.<p>If anyone has some more examples to try, please list them. I would welcome the challenge.
rtmpdump [1] and livestreamer [2] are other good tools for this type of thing.<p>I've always had trouble trying to rip JWPlayer videos that sit behind a login. I did manage it but I had to stream (second-by-second) the entire video.<p>[1] - <a href="https://rtmpdump.mplayerhq.hu/" rel="nofollow">https://rtmpdump.mplayerhq.hu/</a><p>[2] - <a href="http://docs.livestreamer.io/" rel="nofollow">http://docs.livestreamer.io/</a>
At the end he says something like "We need Encrypted Media Extensions to get ad free streaming...". Hmm, never thought about that this way. Maybe he is right, but couldn't it be that with EME the ads will not be sitting next to the player, instead the streamed video will contain the ads? Or does anybody believe (enough) people will pay for streaming on youtube or similar pages?
For a long time I've used the by hand method of URL extraction either inspecting source code and searching for .flv or .mp4 filetypes (or simply "file:*"). The other method I use is the built in developer tools "network" tab of chrome under "inspect element". So far, I've only encountered one host (sorry I cannot remember the name) which I wasn't able to extract the source file via one of these two methods.
How do you use streamsh?<p><a href="https://github.com/jonhoo/streamsh/blob/master/tricks/jwplayer.sh" rel="nofollow">https://github.com/jonhoo/streamsh/blob/master/tricks/jwplay...</a>