overlay

Overlay a video on another video at specific time with FFmpeg

孤人 提交于 2020-01-14 06:07:46
问题 I am trying to overlay a video with another video. I followed the original command OP posted here. And it works, but it overlays the video from time 0: ffmpeg -i 720480.mp4 -i sdbug.mov -filter_complex "[0:0][1:0]overlay[out]" -shortest -map [out] -map 0:1 -pix_fmt yuv420p -c:a copy -c:v libx264 -crf 18 new.mp4 I tried the correct answer to specify a time, but it is not working for me: 1) the overlay starts at around second 12 , and 2) video is not played after the overlay is finished. ffmpeg

draw lines between GPS coordinates

风流意气都作罢 提交于 2020-01-14 05:29:08
问题 I want to track user's positions using GPS and draw lines between visited GPS points. My code draw one time, then it doesn't draw public class Test extends Activity { float lat1, lon1 = 0; float lat0, lon0 = 0; private LocationManager locManager; private LocationListener locListener; private MapController mc; private MapView mapView; private MyOverlay myoverlay; private Projection projection; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView

Linking to kml/kmz files on Google Drive

本秂侑毒 提交于 2020-01-13 17:45:07
问题 I've saved kml and kmz files in a file cabinet in the old Google Sites. I copy the permalink to these files and paste it into the search box on Google Maps to overlay the placemarks. I've saved a test kml file in a folder on the new Google Drive, but I can't figure out how to get a permalink that I can paste in Google Maps. I found this link https://webapps.stackexchange.com/questions/26371/how-do-i-share-a-permalink-from-google-drive and used it to create this permalink https://docs.google

overlay images in java

一曲冷凌霜 提交于 2020-01-13 06:26:10
问题 I hope you can give me some advices to solve my problem. I need to overlay many images on a button.but the problem is, this is the base image (tooth): (http://i.imgur.com/7tIcP.gif) my first image is this: http://i.imgur.com/FYuD8.gif and then I put this: http://i.imgur.com/mWz9c.gif the first image overlaps the second so I just can see only the second image... maybe you will tell me that one option is change the order of the image before overlay, but the user will select what will be the

How to overlay div / box on mouseover?

感情迁移 提交于 2020-01-12 07:22:28
问题 I have a link and when user hover mouse over it, it should display a box (div) under the link. The box should overlay whatever is under it. How can I do it using css or javascript? 回答1: I have created a sample here. You can modify from there to suit your needs. <div class="hover">Hover here</div> <div class="overlay" style="visibility:hidden"> <img src="http://www.google.com/images/logos/ps_logo2.png" alt="google" /> </div>​ $(document).ready(function() { $("div.hover").mouseover(function ()

How does the Gmail Android app do the webview-header-overlay magic for the mail-conversation view?

こ雲淡風輕ζ 提交于 2020-01-12 04:00:30
问题 Using hierarchyviewer on the Gmail conversation view shows an interesting and unusual layout hierarchy: All messages in a single conversation are rendered in a single WebView (specifically a com.google.android.gm.CustomWebView , seen on the left). Only the body of the messages is rendered - the spaces where the headers would go are left blank . On top of the WebView is overlaid a com.google.android.gm.MessageHeaderScrollView (seen on the right) which uses a HybridConversationScrollContainer

Android: Overlay on Window over Activities of a Task

試著忘記壹切 提交于 2020-01-12 03:36:30
问题 I wanted to create an Overlay, like a HUD, that resides on the screen during my applications activity stack (the task of my app) changes. I found a couple of examples using WindowManager but I couldn't figure out the parameterization for the correct z-index if you want. It was either to weak the next activity would go ontop of my overlay or to strong the overlay was a system wide overlay that was visible also when the app moved into the background. I aim for displaying a view on top of all

Text Overlay in Google Earth KML

末鹿安然 提交于 2020-01-11 06:24:13
问题 I would like to add a date/time that the KML file was last updated to be displayed as an overaly in Google Earth, is there anyway this could be done? I would be looking at updating text in a KML file and then this being displayed in google earth. Many Thanks. 回答1: One trick is using the Google Chart API to dynamically create images from text and using that as a screen overlay image in Google Earth. Example: <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2">

Update PNG overlay on video with ffmpeg

ぐ巨炮叔叔 提交于 2020-01-11 05:33:12
问题 I'm trying to make an RTMP stream of a video and put some graphical data on it. I have a command which creates the output I need. The only problem is that despite of the fact the PNG image is being updated on disk during the render process, in output video the overlay stays always the same. I would like ffmpeg to take a PNG image from disk every time it has been changed (or once a minute or so) and use it as an overlay. Is that possible? Here is the command I use to render the output: ffmpeg

Draw bitmaps on top of the Navigation bar in Android

一世执手 提交于 2020-01-11 03:33:06
问题 In my application, I need to draw a bitmap on top of all the apps running. I created a view which is invisible and overlays on top of all the apps. with this overlay view I can draw bitmaps at the given position , But I am unable to draw the bitmap on top of the Navigation Bar.I used the following layout parameters. WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY, WindowManager.LayoutParams.FLAG_FULLSCREEN |WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE |WindowManager.LayoutParams.FLAG_NOT