Currently, I have an API which uploads files to Google Storage. If user uploads video it should be converted to mp4. I took a look at FFMEPG and Java wrapper around the FFmpeg , but I need to convert video directly from InputStream without writing into a disk. Is there any solution to convert InputStream into mp4?
Related
I'm developing application and will be getting continuous byte[] format images and need to convert to H.264 video compression video and need to push to AWS Kinesis Video stream.
Could you please let me know how we can do it in Java or is there any available SDK/Plugin which ca n used to push the data.
I am trying to convert an audio file into text using Google speech api. If audio is 30 sec or less its working fine, but when audio file is longer then 30 seconds then its not converting audio file into text.
please help me, what should i do?
You should use asynchronous speech recognition, and also upload the audio file to Google Cloud Storage.
Here the audio limit of Speech API
I need to parse mp4 file (which I get from URL), to raw audio file (FLAC) using JAVA, and I want to do that without actually download the file to my server.
I checked sannies/mp4parser library but the file need to be downloaded.
Is there any way to parse the mp4 to flac without download it?
Thanks
I want to compress an input mp4 video file using android's mediacodec for decoding and encoding and the mp4parser library for muxing to mp4. I found a number of samples on the internet, but none of them are clear to me, and I can't get them to work.
I know I can use MediaExtractor to read the input file, and decode and encode with
lower bitrate using MediaCodec, but every code sample crashes horribly.
The project target is API level 16, so I can't use the MediaMuxer class, and instead want to use mp4parser or some library similar to it.
Does anyone have experience with this workflow, or knows how to use the MediaCodec class properly to decode an input mp4 and encode it again?
I am uploading a video file which is in .mov or .mp4. I want to compress it (little loss of quality is acceptable) before uploading to Amazon S3. Is there a library in java which can accomplish that ? I found one called Xuggler but it looks a lot complex. Is there any other way ?
The best diy option is to use ffmpeg.
FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video
It's is a command line tool so can be called by a java app. Here's a tutorial on how to encode to H.264
Another option is to outsource your encoding to an encoding service like encoding.com or Ankoder. Both those integrate with S3 and can upload the encoded videos to your S3 account.