Change video format .mov to .mp4 in ios6 - iphone

I want to convert .mov to .mp4 . When I record video from an iPhone camera, it automatically records video using the .mov format which is not able to play on android OS. I want to convert this format to .mp4 so the video will easily play on both iPhone and Android.
I have converted video formats by using the following code:
[request addData:videoData withFileName:#"video1.mp4" andContentType:#"video/mp4" forKey:#"video"];
Now the format is changed but it does not run on the android device.

Related

iphone UIImagePicker controller can not decode message

I am trying to select a video file from gallery by UIImagePicker controller but when i have select this file it is showing "Can not Decode" message (I am using KTypeMovie in image picker controller and it is working some video files fine).
Please suggest how can i resolved it.
Thanks in advance
You are probably getting an error because the video file is not in a supported format.
All your video files should use a format that is compatible with Apple iTunes, such as an MP4 file with h.264 encoding.
If your video does not play properly in the viewer, re-encode the video to .mp4 h.264 using Adobe Media Encoder or a third-party tool such as Handbrake.

from position not working for .m4a format file using sound manager audio player

I am using Sound Manager audio player with from / to positions to play the audio in web browser (all browsers). It's working fine for .mp3 files but 'from' position is not working for .m4a files it playing from '0' position, and 'to' position is working fine for both formats.

Unable to play mp4 video in ios6 ipad by MPMoviePlayerController

I have developed a universal application in Cocos2D. I am using the same code for iPhone and iPad.
The problem is that I am playing video by CCVideoPlayer. CCVideoPlayer is a extension class. For iphone I am using mov file and for ipad I am using mp4 file. But mp4 file is not playing. I did not change the code and when I tried to play the same video which I am using for iPhone it is working on the iPad also. So I think that problem is with mp4 video not with my code. So any help will be appreciated to solve my problem.
-(void)playMovie{
[CCVideoPlayer playMovieWithFile:#"video_ipad.mp4"];
}

video.js mp4 iphone native player override

Using video.js:
I only have a video format mp4. I have captions for it set up and working on desktop and android (galaxy s3). The iPhone automatically plays the video in the native player which makes the captions not work.
Is there a way around this?

How to play audio and video together in iphone

I want to play some videos with audio from different audio files. For this i am playing a video(using MPMoviePlayerController) and i am playing an audio(using AVAudioPlayer).
When i play my code through simulator it works fine (the video with my audio file specified). When i run the application in device it doesn't work like that. It plays video but sound file is not getting played. How can i play an audio and a video together ?
This has been discussed before and I don't think anyone's figured it out yet:
Play audio and video at a same time in iPhone application
how can we play audio and video together in ipod/iphone?
Which format support the audio file with a playing video?