Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
mundo0349116yYou can't screenshot headless becaude it has no head.
Google Xvfb, dee if there is way to use that instead fo selenium's headless.
Opction 2: if the stream is noy protected, consule the video directly and take as many frames as you want. -
@mundo03 turns out I can actually screenshot with headless, I did it on various websites and they turned out to be perfect, its just with the video I cannot seem a way to do the same - apparently phantomJS does not mimic browsers playing HTML5 videos!
-
Probably playing with ffmpeg on the server might help. I had once done something related to capturing video screenshots after 10 second playback, 20 seconds playback etc. And had to deal with ffmpeg CLI options. It did work very nice but it was complex af.
-
@themissingbrace @mundo03 I got it guys! Typical thing that I do, completely overlooked the fact that the chrome browser can be rendered headless and it would still work -_- Thanks for the support anyways!
-
mundo0349116y@soumik-dev
Now I know is possible again.
I always use chrome and remember there wasa time where it did not work.
Thanks!
Related Rants
Got a question guys!
I want to capture screenshots from a live video stream being broadcast over HTTPS, such as the one on this link:
https://open.ivideon.com/embed/v2/...=
I can do it locally using the chrome webdriver in selenium, but cannot reproduce the same in a server I'm accessing remotely. I tried using headless browsers like phantomJS, but apparently it doesn't support video players -_-
I'm confused because I don't even know what to search for anymore, I've been stuck with this one thing for the last 17 hours. Any help would be greatly appreciated!
question
selenium
chrome
phantomjs
server
automation