I am recording .mov using AVCaptureMovieFileOutput with AVCaptureSession. I want to record .mp4 file, i guess it is not possible with AVCaptureMovieFileOutput, Any idea how to record .mp4 file?
Edit:
I have googled and found, there is a way AVAssetWriter, however it is not simple as AVCaptureMovieFileOutput?
thanks
There is one more way to record mp4 file, Actually its not recording, after recording with .mov we can convert that into mp4 file if we want. It is not the exact answer for the question, it may helps someone.
Related
I would like to use MP4 file/link in m3u8 file. The reason I would like to do this is because I would like to start m3u8 link at specific time. Is this possible?
No, HLS only supports segmented transport streams in an m3u8 playlist. You may find it to work in some players, but it is not part of the standard, and will not work in iOS.
I am working on audio recording. I am able to record my audio in caf (Core audio format). Now I want to record sound in .mp3 or .amr.
I tried a lot of google but didn't found anything. I am not sure if my steps following work:
Write that Audio with .caf extention to document dir
Read data from that file
write the file again with .mp3 or .amr extention
I have 100% doubt that this will not going to work as this will just re save file with some other extension. This won't change audio codec.
I thought that for converting any format whether it is audio or video we need to change its codecs and data sequence.
Please also suggest me any player which don't play .caf files not anything else. So I can make sure that my files are converted successfully.
UPDATE Please also let me know that the way I am re-writing data with different extension is correct in the way I am needed?
You might be interested in the iPhoneExtAudioFileConvertTest example.
The MP3 format is however not available due to patents, maybe you can use LAME.
From the Document The Basics: Audio Codecs, Supported Audio Formats, and Audio Sessions
I am using AVAudioRecorder for recording audio in .caf format. When the user will resume this recording the new recording must append with the old recording. So how can i combine two .caf audio files.
You can do it using ExtAudioFileService. In ios developer library they had provided two examples to convert one audio file to another format. In these they are opening one audio file for reading and another file for writing (converted audio). You can change or updated code to read from two files and write them to one out put file in same format(caf) or compressed format. First you have open first audio file and read every packets from it and write it to a new audio file. After finishing first audio file, close the file and open second audio file for reading. Now read every packets from second audio file and write to newly created audio file and close second audio file and new audio file.
Please find the links(1,2) for these sample codes ....
Hope this helps you...and good luck. :)
Hi all
I have multi mp3 files, each file have difference sound. Now i need overlap all of them to one file to have a mp3 file with all other sound. Can i do that with ffmpeg or other tool?
Thank for your help.
IMO, can't be done with ffmpeg.
I would decode all mp3 to .wav files and use Audacity to mix all sources to a single stereo .wav. Then, you can easily reencode this to mp3.
Audacity
I have many videos in .flv and .mp4 formats. I store then in one Windows folder and re-name after downloading so that it becomes easy to find one that I want to play.
It would be best if I can create thumbnail from one of the frames of video file.
Is there a program/utility in which I can open the .flv or .mp4 file, play, pause and take the screen/frame and set it as thumbnail of that file?
I did my best to find it on internet but failed hence thought to reach out to Gurus.
Thanks in advance,
Jay
I think ffmpeg and mencoder can do this