Convert Animated SVG to Video - android

I have this interesting problem. I need to convert animated SVG or just plain SVG to a video format either on the client side (iOS/Android) or on the server side (.NET).
There does not seems to be a way to accomplish it.
My initial approach was to animate SVG using Core Animation (on iOS) and convert that to a video, but a similar solution does not exist in the Android world.
My next approach was to use FFMPEG, but that too fell short. then I shifted my focus to .NET, but that too, nothing came out of it.
I'm looking for some general direction. Can it be done?
The idea is to take multiple SVGs and convert them to a video file along with some audio.
Thanks in advance!

Related

How to paint on a video frame by frame and save it using flutter?

The goal is to analyse a video frame by frame and apply a painting on each of those frames. Then save the video and be able to play it.
Do you know if such a thing is possible in flutter? I've heard about ffmpeg package but I'm not too sure if that's possible with it.
I would recommend to make this implementation on respective platforms. It will be more performant that way and you can get complete control of the video generation.
on iOS : AVMutableComposition class is the way to go
I don't know about android.

Convert VideoView to Grayscale android java

I would like to know if there is a way to convert video using VideoView from RGB to Gray without using any external library (such as OpenCV).
I didn't found anything about it.
All that I found is to manipulate the video before display him, by using FFMPEG, using OpenCV that I don't need for this project or do manipulation on SurfaceView using OpenGL.
Is there any way to do the manipulation directly on the VideoView?
Update
I found the solution for this problem, by just use this Library

How do you record AR video processed by OpenCV on Android?

I'm creating an Android app that makes use of OpenCV to implement augmented reality. One of the needed features is that it saves the processed video. I can't seem to find any sample code on real-time saving while using OpenCV.
If the above scenario isn't possible, another option is to save the video first and have it post-processed by OpenCV and saved back as a new file. But I can't find any sample code for this either.
Could someone be kind enough to point me to either direction, or give me an alternative? It's ok if the alternative doesn't use OpenCV.
Typical opencv flow is, you receive frames from camera, convert to RGB format, perform matrix operations then return to activity to display in View. You can actually store the modified frames as images somewhere in sdcard and use jcodec to create your mp4 out of your images. See Android make animated video from list of images.

I have a map that's a vector image. Whats the best way of showing this in android?

I want to add a vector that's a map. I want to show this to the user, but I'm unsure of the best way to do this.
The only requirements I have are:
Show a vector
Start "zoomed" in (start at a specific point of the the map)
Work on 4.0 and up
I'm up for suggestion on which file type to use
Ah, that is definitely not how I interpreted "I don't want to specify one".
SVG is probably the lightest-weight solution. There are libraries that can display SVG in an ImageView as a Drawable, though these will only handle a subset of SVG. WebView on Android 3.0+ is supposed to be able to handle SVG files, though I haven't tried it.
Many, perhaps most, Android users have a PDF viewer, so if you're willing to open up a third-party app, you can do that easily enough. There are PDF libraries as well, though PDF is a more complex file format than is SVG, and therefore the libraries suffer.
I am not aware of any easy way to show an AI file directly, and those are the primary 2D vector formats in use today.

How to generate a PDF using android drawing commands?

I have an android program which draws lines and text to a canvas. (These are all vector drawing operations.) Does anyone have any advice for exporting that canvas to a PDF? I've looked into changing the Bitmap.CompressFormat that the canvas is based upon, hoping there'd be a PDF (or some sort of vector) format, but no luck there.
My goal is to output some sort of Vector file suitable for printing.
I'd appreciate any advice. Thanks!
There is nothing in Android for this. You can take a shot at seeing if somebody has a PDF library for Java (e.g., iText) working on Android, but these libraries may be large.
A better solution may be for you to save in something simpler (e.g., SVG, an XML format) and have your server convert that to PDF or anything else desired.
That was very long ago. If anybody happens to find this question nowadays, Android has it since KitKat: PrintedPdfDocument.

Categories

Resources