I'm trying to write a python script to record and save segments of a live stream for research purposes. I know how to do it for mainstream platforms such as YouTube, but I'm not sure how to do it on this site.
Here's the video link:
http://cwwp2.dot.ca.gov/vm/loc/d3/hwy80atdonnersummit.htm
Thanks for your help!
Its not "recording" a video its just downloading. That site uses HLS. Any HLS downloader should work. But you need to get the URL form the m3u8 file.
Start by viewing the network tab of the browser, and the sites source code, You can then see how the browser plays it, then develop your script from that.
Related
i am trying to do a website/browser livestream on a headless linux, but couldn't find a good solution yet.
Headful example: In OBS Studio you can add a Browser Source of a web page that includes video/audio and stream this content live out.
So what i basically want is like a headless version of this.
I tried a bit with phantomjs and chrome-headless, but these tools are not supporting video or audio outputs in headless mode. If there is an alternative that can output a web page stream with video/audio would be awesome.
This output can then piped to ffmpeg and launch a rtmp stream :)
Thanks!
i tried Scrapy or bs4 they don't work.
i like to download automatically without human intervention.
video loads from Java script when ever i open inspection tool in Firefox its freeze that webpage. How can i download and save video.
after that i like to upload all of video to my google drive which has unlimited storage.
i want using lots of heroku servers to download this.
only in python, scripts.
could you point me some direction.
I downloaded able player, an accessible cross browser audio and video player from https://ableplayer.github.io/ableplayer/
Before downloading, I played some examples from github pages to see it in action with my screen reader. It works very fine, with internet explorer 11, google chrome and firefox.
So, i downloaded it and copied it in my localhost server. I use wamp server, apache, php and mysql.
Before playing from my localhost, I added on my .htaccess in root folder, all AddType directives suggested by able player github page.
When I try to play examples in demo folder, with internet explorer, my screen reader doesn't see audio player region and I can't play anything.
With google chrome, I can play, but I can't see playlist elements managed by able player.
So, I tried to make my own audio player without using ableplayer, without css, simple html5.
Now, I tried to play it with and without apache.
By opening index.html with internet explore, it sees audio region and play mp3.
If I point to localhost, where I put index.html, I can't see anything.
So I believe apache is the problem, but in apache log I can't see any error.
Does Some one has a suggestion? Something to modify in my .htaccess?
Thanks!
I solved! Definitively was apache. I downloaded an .htaccess from github that works fine. Now I can play audio and video.
I'm looking for an audio player (like jplayer) which can be embedded in a HTML page which will allow MP3's to be played but not downloaded.
The problem: Flash players request the audio file from the server so the URL of the MP3 is present in the HTML source and can be copy/pasted in to the address bar to download the track. This will inherently be the problem with most players.
Possible solution: The player accepts some "encrypted" (non-playable) format which is then decoded inside the player. Anything like this exist?
I am not looking for solutions which sound like:
Obfuscating the URL of the MP3
Preventing downloading of the MP3 from third party sites (eg. forums) using .htaccess
Embedding the mp3 inside a flash movie unless this can be automated, since mp3's are uploaded on a regular basis.
Having a URL which only works for a certain period of time
I don't know if this answers your question, but... Have you tried streaming your audio files via flash? I have never heard of someone being able to download a file which was dynamicly called through actionscript... but maybe i just don't know what i am talking about...
Play Apple's .caf audio file on a webserver? I have .caf audio files (Apple's open audio format) stored on my webserver and want to play them from a web browser on any O/S.
I understand, this doesn't seem like the solution you're looking for, but...
Several weeks ago we faced the same problem. We have several clients which are posting audio files to the web site from theirs iPhones, and we need to play audios on the web site.
But we didn't find any suitable flash player with .caf format support.
So we decided to convert .caf to .mp3 on the server through the ffmpeg.exe utility.
Happily, there a lot of flash players with .mp3 support.
Now I have not tried this... but...
This website:
http://modmyi.com/forums/skinning-themes-discussion/1769-how-do-i-create-caf-file.html
Seems to suggest that .CAF and .AIF may work interchangeably (It suggests that to convert to .CAF you convert to .AIF` and then rename the file).
Have you tried renaming it to .AIF and trying to play in a flash/java browser player? Alternatively just send it as a stream to the web-browser and let the client OS work out what to do with it (Like quicktime running inside the browser).
Let me know how it goes.