Ways to inject Spatial Meta Data into video with Java - java

I'm trying to inject Spacial meta data into 360 video so it runs on Youtube/Facebook etc - using video that is cut on a Java server with FFMPEG and will run on a Linux AWS EC2 Instance.
I've tried to use this library
https://github.com/pedroSG94/metadata-spherical-injector
Which is for Android and seems to wrap this .so library
https://github.com/pedroSG94/metadata-spherical-injector/tree/master/metadatavideo/src/main/libs/x86
with this script
https://github.com/pedroSG94/metadata-spherical-injector/blob/master/metadatavideo/src/main/java/com/pedro/metadatavideo/VideoInjector.java
I have no idea how to get this running on a Java server, or if it's possible. Can anyone let me know if this is going to work or if I need to find another way of injecting the meta data?
Can FFMPEG do it?

Gave up on FFMPEG and used Exiftools. This works really well.

Related

Java Desktop Capture

I want to continuously capture the entire desktop inside of a java application. As I'm capturing, I'd like to chunk the stream of data into small video files (mp4, WebM) for storage. From my research, it would seem that the Robot Java class and the FFmpeg tool are my best options. However, Robot seems to best-fit the use case of obtaining images, not videos. FFmpeg seems like it may support this, but I've struggled to find definitive documentation. I'm looking to emulate what can be done through Chrome's getUserMedia and desktopCapture APIs along with the MediaStreamRecorder JavaScript library. Does anyone have a suggestion for a similar and elegant solution in Java?

Receiving and Manipulating RTSP stream using FFMPEG library in Java Application

Hope you all be fine and doing great.
I am currently working on a Java Web Application. I am getting Streaming video using RTSP URL. This URL is like:
rtsp://---.---.---./6ca714ae28e52f31
I have been able to capture video, diplay/listen it and store it in .mp4 file using FFMPEG with the following command:
fmpeg -i rtsp://username:password#---.---.---.---/6ca714ae28e52f31 -f mov e:/bay.mov (with authentication)
Now, I want to achieve the same in my Java application using ffmped library. I am sure if all this possible through commands then It will also be possible using its library. But unfortunately couldn't get any working useful material regarding this on web.
So, I simply want to ask that:
1. How can I fetch Streams using this RTSP URL in my Java Application with FFMPEG library
2. How can I Manipulate this fetched streaming such as start, stop, end etc.
3. How can I store this streaming in media file in playable form in any specified format.
I have found a FFMPEG's Java Rapper JJMPEG. Now I have two options either to issue FFMPEG command to CMD using Java Application or use JJMPEG library directly. Don't know which one will be better choice.
Thanks for your time and considerations.

Streaming video files users have uploaded

We have a java web application where users can upload all kinds of files including any kind of video files. Now we want to allow them to stream these video files they own. So I need to make sure that they are the owner and then stream video. Also possibly stream a preview.
Do I need to convert these video files before streaming and where should I look to get started?
The best video playback/encoding library I have ever seen is ffmpeg. It plays everything you throw at it. (It is used by MPlayer.) It is written in C but I found some Java wrappers.
FFMPEG-Java: A Java wrapper around ffmpeg using JNA.
jffmpeg: This one integrates to JMF.

Create an empty CD-ROM image and inject/extract files into/from it using Java

Using Java I need to be able to create an empty CD image and also to inject/extract files into/from this image. Do you know any java libs for that? Is there a way to accomplish it without using JNI? (if not, then your JNI solution is appreciated). Thank you guys.
PS. This task is required for data transportation between emulated environment created by Qemu emulator.
In principle this is simple to implement, just write a file that is properly structured as CD-image. In practice thats probably a lot of work.
Simply googling for "java create iso image" reveal there is already an implementation to do just that: http://jiic.berlios.de/

What to use for torrents downloading with Java?

I know that there is Vuze API and jBitTorrent library but I can't use Vuze because of I have server without GUI and jBitTorrent is too old and too buggy. Can you tell me that bittorrent library for Java is good now? I need to download files through torrent file only. Thanks.
It seems you need to run Vuze headless through it's console ui.
When I tried it with the apt-gettable Vuze on Ubuntu, I didn't need to 'grab a few support jars' as the wiki linked above specified - it just ran straight away.
You can use Transmission or µTorrent, or just run Vuze headless. With sending files to Transmission, you need to encode the binary data as base 64, with sending them to µTorrent, you need to use a multipart form via HTTP POST.
Here are their API pages:
https://trac.transmissionbt.com/browser/trunk/extras/rpc-spec.txt
http://www.utorrent.com/community/developers/webapi

Categories