To capture frames of html animations and stitch them into video,
I was about to use Timecut (available from npm).
However the result is not crisp videos - the capture is rather fuzzy for some reason.
What other terminal app would you reccomend for capturing html animations? Main goal is crisp output!
If I understand the question correctly you are looking for a way to record your screen with an application that can be run from the commandline.
I would use ffmpeg which is available from brew more details on screen recording using ffmpeg on MacOS can be found in this answer and on the ffmpeg wiki.
Remember that the resolution/"crispiness" of the video you record will be limited by your desktop resolution. Zooming in on the content you want to record might help if it's possible.
Related
In my Windows Phone application I'm loading a html site into a view, really simple stuff with this method:
var itemView = view as NorwegianBrowserView;
var webBrowser = itemView.browserContainer;
webBrowser.Navigate(new Uri(_globalAccessObjects.ActiveNorwayLink,UriKind.RelativeOrAbsolute));
The site loads everything except a video clip. Or well it knows the video is there but it just shows a black square. And pressing that black square does nothing.
As i side note i can add that i got the same application for iOS and Android and they both got no problem in loading the very same website(+ they load the video). And here i can press the video clip and it will start playing.
Am i loading the website into my view the wrong way? or does microsoft.phone.controls.webbrowser not support a video clip?
Any help is much appreciated.
The ability to play video clips in line in a web page is dependent upon the version of Windows Phone you are running on and the format of the video.
Only Window Phone 8.1 supports playing video within a page. Unfortunately this isn't yet widely available.
Even then the video format may still be an issue and if not supported could lead to a placeholder image being displayed.
I want to create a video where I have multiple images on screen at once which are moving around or resizing as the video plays.
A vastly more advanced version would be like Facebooks https://www.facebook.com/lookback/
All I need, is to move a few images and change their scale, with set start and end times within the video.
I could obviously do this with a video editor but I'd like to just drop some images in a directory and then have a preset script which will then create the video for me.
I've a few months experience with FFMPEG so the directory part is easy, but I'm baffled on the moving bits.
Any suggestions? Many thanks.
For this you might consider the MLT framework which is essentially the open-source video editor which supports scripting.
Considering use swfcombine with pyvnc2swf and ffmpeg.
With SWF you can replace objects into a exist swf file link image or texts.
http://lists.nongnu.org/archive/html/swftools-common/2005-02/msg00116.html
Aftes editing your swf you can render a mp4 file using pyvnc2swf and ffmpeg:
http://imnartist.blogspot.com.br/2011/10/pyvnc2swf-and-ffmpeg-tutorial-convert.html
Unfortunatly ffmpeg don't convert swf yet.
With those tools you can recreate the Facebook Look Back web app for your porpuse using command line and you favorite programming language.
There's an API to do so too :you can use the Stupeflix API to do server side video renderings, using After Effects templates or built-in effects. Find it at http://developer.stupeflix.com/documentation, with a lot of other tools to do image / video processing.
i am experiment with ffmpeg, making videos from more images and adding watermark, some effect etc.
What I am interested: Is it possible to embed HYPERLINK into video using ffmpeg ?
For example, watermark or something else to be 'clickable' and to redirect to some www location?
Some video file format might support such a thing, but most don't and ffmpeg is unlikely to have support for such an esoteric feature in any case.
So no.
Is there any way to get window handle of the window which is currently playing video. This is the only information my program will be having.
updated to include info incorrectly provided as an answer
I think I should explain what exactly I want to achieve here.
I actually wanted to share/stream my DVD data to the remote machine. Currently what I am doing is, I am capturing the screen/video into to still frames and sending it to remote system but now I don't want to see the playing video on my host machine. I could think of few probable solutions,
1.) If we can capture the data of a hide/minimized window.
Did some investigation and seems it is not possible. Please add your thoughts.
2.) Convert the DVD data format into ffmpeg format and stream it.
Don't have any idea if we will be allowed to convert the data format. If most of the DVD formats allow to covert then I can go for this option but not sure how complicated it could be.
3.) Will create some virtual surface play the DVD data to that surface and capture the screen of that surface.
Again not sure if DVD will play on that virtual/fake surface created by kernel mode driver.
There are probably three main playback engines used on windows; DirectShow (WMP, MPC) , ffmpeg (VLC, MPlayer) and QuickTime.
If you look closer at DirectShow will will see that it supports hardware overlays, windowed and windowless rendering and Direct3d surface support.
Even if you focus on a single app you are going to have problems since you don't know what kind of renderer is in use. You might be able to find a child window that always has the same position and dimensions as the video, but then you are relying on things that could change between versions etc.
I want to have two aplications simultaneously run: one that analyzes image from webcam written using OpenCV (the image is acquired through callback function) and an application that goes into fullscreen mode (let's say a 3D game). The problem is that while the fullscreen mode is launched the webcam image stream is stopping - the frames simply don't turn up, the callback function isn't called. This seems to be an issue with OpenCV - to test that a simple application displaying the image form camera has been prepared.
Why the image stream could be blocked by the fullscreen mode? How to bypass this?
Thanks for any hints.
Your question does not tell if you have tried to search for the problem in the OpenCV community first, so I post this as a hint in case: http://tech.groups.yahoo.com/group/OpenCV/
Also check out the list of issues, maybe its a known bug: https://code.ros.org/trac/opencv/report/1
I'm not an OpenCV expert so this is closer to a suggestion than an answer - but I've experienced similar on my multi-monitor setup using a number of media players on the second monitor and some fullscreen apps ont he first.
In my limited testing, it comes down to what method is used to render the 3d app - DirectX seems to stop media players, OpenGL doesn't.
So it might not be OpenCV which has a problem - it may be what DirectX does to the hardware during a full-screen game.
Actually the behaviour of the OpenCV camera stream is strange. It seems to depend on the native OpenCV window (cvNamedWindow()) that shows the output image form webcam. If the window is on the same screen that went fullscreen the streaming will continue. If the camera window would be placed on another screen, the stream would stop.
Another curious thing is with the screen resolution change. If you change the resolution of the screen and the camera window is not visible (is closed or even minimalized) the image stream would get blocked.
These are just my observations on the topic, maybe it'll be helpful for someone.