I have got a Bluetooth application on android that sends jpeg to PC. I want to convert the jpeg to h.263 or any other video format and send the video stream via bluetooth.Is it possible to convert the streaming jpeg images to video format on Android or PC ?
I found one Windows application to convert jpeg images into Video format. Check this software, it may help you.
JPGVideo Download
Related
I am developing an Android application that would stream a set of jpeg images over the internet. I need to decode each jpeg image into YUV format, perform some image related operations and then stream it after performing some encoding. Currently I am performing this conversion [JPEG -> YUV] in software. To speed up this conversion, I would like to use hardware decoders. Is there is any Android API that can do this coversion ? Can this be done using OMXCodec?
Regards,
John
I am creating a video streaming app which uses a IP Camera as external device.
I can already get the image (.cgi format) from the ip url of the device(192.168.x.x/image/image.cgi). I can update the image view every several milli seconds to update its content and its working great, no issues there.
The question is, can I save this bitmaps as video (.mp4)? I tried MediaRecorder before and works, is there a way to do that on streaming bitmaps ?
thanks
The "video" is a stream of jpeg images.
See
http://thistleshrub.net/Joomla/index.php?option=com_content&view=article&id=115:displaying-streamed-mjpeg-in-java&catid=43:robotics&Itemid=64
for some java code that displays such images. You need to transcode the images to a different format. E.g. on the command line that can be done with
https://unix.stackexchange.com/questions/12193/transcoding-mjpeg-stream-to-flv-or-mp4
Doing this on android has been discussed at how to save the mjpeg stream as 3gp or mp4 format video files to the sdcard in android
googling for mjpegstream video convert gives you more results ...
I want to play some animtaions (actually, gifs) which were previously encoded (with h264 codec) and downloaded from network as mp4 files (because mp4 files are much smaller than corresponding gifs). So, on a device I want to decode mp4 and get all the frames to create animations. And the question - what is the best way to decode mp4 to accomplish my task?
In android mobile, if we shoot a video, the video will be in 3gp format. But my application will not accept 3gp video, I want to convert the 3gp to mp4 or flv or swf.
I need to install the FFMPEG inside my android emulator to convert 3gp to mp4. How it can be done? Please help me if anybody knows.
RegardsSundar.
user1004789 aka Sundar
> "But my application will not accept 3gp video"
> I need to convert the video and upload it to php server..
Or you use a video converter
or configure your server, google is your friend
http://blog.bounceweb.com/installing-ffmpeg-mencoder-gpac-for-3gp-video-conversion-server-for-centos/
http://documentation.hwdmediashare.co.uk/wiki/Setting_up_your_server_for_hwdVideoShare
i have saved the mjpeg stream to the sdcard as xxx.mjpeg .However, the mjpeg video file was not supported in android. so how could i encode mjpeg video into 3gp or mp4 format and then store them on sdcard ,at last ,i can play back the 3gp or mp4 video on my android phone ,thanks in advance.
I am not aware of state of mobo's ffmpeg source out there. I had built it long back.
I tried the rockplayer's ffmpeg port. This has hassle free build.
I was able to build it today successfully on NDK_r4b.
You can download the source from here : http://www.rockplayer.com/tech_en.html
modify the config.mk to change your tool paths and run build_andriod.sh (spelling is wrong, but it works :) )
let me know how it goes
There is no way you can achieve this with current Android API.
You need to encode the frames using an encoder in C++ and pass your bitmaps to the encoder via JNI.
You can start with MoboPlayer's ffmpeg port. You may find the download link to their ffmpeg port at the bottom of this page
If you have the image sequence in Bitmaps, you can access the Bitmap's buffer from JNI using the AndroidBitmap_* methods and pass it on to ffmpeg for encoding