iOS Mjpeg encoding and muxing to MP4 - iphone

I need to dev an app to encode a Mjpeg stream into an MP4 in ipad/iphone.
Are there available iOS API that I can use to encode & mux (hopefully hardware accelerated).

Related

Flutter plays H264 raw stream

In Flutter, I want to obtain H264 raw stream playing video through WebSockect. I can support playing video on the web and Android by using Jmuxer with embedded web pages.
but I can't play it because of the ios player。
Therefore, I used the method I used in js before. I transferred h264 to YUV through ffmpeg and then played it through WebGL. But I don't know how to convert h264 to YUV through FFmpeg in Flutter

icecast + Adobe Flash Media Live Encoder

So I am working with a community TV channel to stream their TV station in Audio only formate. I know that they currently use Adobe Flash Media Live Encoder to send a WebTV stream to a provider. What we are discussing is creating an Icecast stream of their TV broadcast.
I am wondering is there a way to take Adobe Flash Media Live Encoder stream and read metadata and send all that to an Icecast stream either using FFMPEG or other technologies?
It is possible to have FFmpeg act as an RTMP server which you could connect your encoder to:
ffmpeg -listen 1 rtmp://127.0.0.1:1935 …
However, I think you'll find it would be better to use FFmpeg in parallel, encoding from the same source. I'm going to guess that you're not using MPEG-4 and AAC audio on your Icecast stream, so it would be better to encode from the source rather than to transcode already lossy audio/video.
As for metadata, depending on your media format, you'll have to handle that out-of-band with a separate script.

How do I publish a video compressed with h265?

I set up a nginx server and I can broadcast using rtmp. I do this by compressing it with h264, but I also need to compress it with h265. rtmp and flv do not support h265.
as a result can you offer me a server and protocol to use h265? get open source if possible.
edit:
okey should not explain the problem a little more. I can send a video to my nginx server with a client and watch this video in hls and dash.
But what I have to do is compress this video with a h265 applet with a converter like ffmpeg and then watch it or send it to another client. I couldn't find anything other than rtmp to send and receive videos.
MP4 and MKV both support H.265 video streams.
You can use DASH or HLS to stream your MP4 segments.

Can MPMoviePlayerController play SMI files?

Can a MPMoviePlayerView play a .smi file? If not, is there any other way to play this type of file?
Unfortunaly, there's no way to play that format on iOS. It only supports mp4/m4v (h264) video format with AAC audio codec.
You should try to convert it into those supported formats.
Also, take a look at HTTP Live Streaming.
HTTP Live Streaming, FFMPEG & FFSERVER, and iPhone OS 3

How to encode and stream a video from an iPhone

I'm capturing CGImageRef frames using UIGetScreenImage() on an iPhone 3GS 3.1.3 and want to stream this over the interwebs in any appropriate, well known format.
What video codec libraries are available that would allow me to encode the raw pixel data into a video? (i'm not too familiar with video codecs, but am familiar with network programming to actually send the data out)
I wouldn't recommend encoding on the client. Have the video available on the server already encoded and use MPMoviePlayerController to present it:
good tutorial on how to stream video:
http://buildmobilesoftware.com/2010/08/09/how-to-stream-videos-on-the-iphone-or-ipad/