sorry if this question looks weird. I want to know if it is possible to convert a video file into bitmap in android studio. I have a video saved in the external storage of my device. I want to upload the video to a web server but I want the video to first be converted to bitmap.
I think you should use a Cloud service to convert video into bitmap files since you already uploading the video to web anyway
Related
I am having an issue uploading iPhone photos. The default iPhone image is a .HEIC file. Google vision seems to have a hard time reading these file types. It works fine when using .jpg files. Any suggestions?
If you are coding in nodejs maybe use this library to convert and upload:
https://www.npmjs.com/package/heic-convert
There are online tools as well on the web:
https://heictojpg.com/
Heic is not supported directly
You can convert each image and send it to the google API, if you have access to the source iPhone you can change the settings to avoid using Heic as default format.
You can see here relevant question
I want to capture audio in the Chrome web browser using MediaRecorder and send the encoded audio data to the Android app for playback in real-time.
I can't find any audio format that is supported on both sides. I was trying to use opus codec, but Chrome only supports webm container, and Android supports ogg.
What is the proper way of doing this? I don't want to use WebRTC. I could use some data converters/encoders, but all libraries I found are obsolete/abandoned/insecure.
The webm container format is sometimes stored in .mkv files.
Android 5+ eats pretty much any webm the Chromium MediaRecorder class delivers. If you give MediaRecorder a MediaStream that came from getUserMedia(), and ask it for the right MIME type, you'll get Opus boxed inside webm.
const mediaRec = new MediaRecorder(stream, {mimeType: 'audio/webm;codecs=opus'})
If you put that into a file, use name.webm or name.mkv to name it. Android has been able to handle it for a long time now.
The mkvtoolnix program helps you examine these webm files to see what's in them.
If this didn't address your question, please make a comment.
Hi I tried to upload AVI video to orchard but when it's uploaded the preview video is blank, can't run the video, what went wrong?
I suspect it is because browsers won't natively play avi files. You should try converting it into an mp4 or uploading to YouTube/vimeo then embedding their player
I want to play video in my Android app and the video placed at my online server. The video is in YouTube 360 format.
I read about vrtoolkit and vrvideoview at github but it plays the video which is saved locally that is it is saved in Android device.
I want to my online video Google cardboard feature.
So what's best possible way to do it?
use uri to load the video
fileUri = Uri.parse( "http://your-url-to video file" );
videoWidgetView.loadVideo(fileUri);
Play Apple's .caf audio file on a webserver? I have .caf audio files (Apple's open audio format) stored on my webserver and want to play them from a web browser on any O/S.
I understand, this doesn't seem like the solution you're looking for, but...
Several weeks ago we faced the same problem. We have several clients which are posting audio files to the web site from theirs iPhones, and we need to play audios on the web site.
But we didn't find any suitable flash player with .caf format support.
So we decided to convert .caf to .mp3 on the server through the ffmpeg.exe utility.
Happily, there a lot of flash players with .mp3 support.
Now I have not tried this... but...
This website:
http://modmyi.com/forums/skinning-themes-discussion/1769-how-do-i-create-caf-file.html
Seems to suggest that .CAF and .AIF may work interchangeably (It suggests that to convert to .CAF you convert to .AIF` and then rename the file).
Have you tried renaming it to .AIF and trying to play in a flash/java browser player? Alternatively just send it as a stream to the web-browser and let the client OS work out what to do with it (Like quicktime running inside the browser).
Let me know how it goes.