How to extract MKV container to mp4 container? - swift

i want to extract MKV container's (audio and video) in to mp4 container and after that play it in AV-player
is it possible? and how?
i m tiered to searching about that😩

Related

how to add mkv file in avasset and extract video and audio from that?(swift)

i want to extract mkv's video and audio in AVasset and merge it in mp4 container and display it in swift UI?
i tried this Convert .mkv file into .mp4 file in swift 3 but that's does not worked

Is there any solution to create video stream from image/images?

I would like to generate video content from text/images with provided content size. Have tried many options from FFmpeg to h264 encoders. So a want to build a solution that takes one image or array of images and generate video stream, let's say rtmp. Also image is always changing, adding text, change color etc. I have tried with Golang.

How do i change the container from mp4 to mov?

The IP Camera stores an mp4 type container. but my customer want me to change the type from *.mp4 to *.mov.
I trying to convert from mp4's container to *.mov's container a video in the
IP Camera.
Can anyone tell me the exact way to change the container of mov from container of mp4 ?

How to record using AVAudioRecorder without the .caf container?

I am using a AVAudioRecorder instance to record with the setting for AVFormatIDKey set to kAudioFormatMPEG4AAC. It records the audio in AAC format but a .caf audio container packages the audio file. (I can see the caff header in the recorder file).
How do I record so that the caff container is not there but in pure m4a format so that I can use the files across platforms.
Found the answer.
There is a weird way the AVAudioRecorder works.
The format in which the AVAudioRecorder will save your file depends on the URL/string you specify for the file you save. It depends on the extension of the file name you are saving.
If you don't specify any extension or one that the recorder can't understand then it will add the Core Audio container.
So, basically see to that the extension and the AVFormatIDKey match.
Like for aac use format use .aac extension with kAudioFormatMPEG4AAC as the AVFormatIDKey

how to create flv videoframe from h.264 AAC samples in mp4

I have a mp4 file which has only mdat box(h.264, aac) and I can specify the video samples. I need to convert video samples to flv frames, how can be done?
This can be done using ffmpeg.
ffmpeg -i in.mp4 out.flv