How to convert a stream of flash content into HTML 5? - ios

I am familar with google's swiffy tool and macvide. My question is How can I use one of them or any other tool to convert stream in flash into HTML5 video on the fly.

I imagine you have in hand a Flash-based video player. That is a swf that loads and plays a video stream. You shouldn't try to convert that swf to a Swiffy, but instead just use a HTML5 video player like VideoJS to play the video.

Related

VLC Player - Convert Audio and Single Image to Video

I want to turn an ogg-audio file together with a jpeg-File into a video with a single frame, so that youtube will accept this as a valid upload. How can I accomplish this with VLC?

How to select a video codec when capturing with DSPack?

I need to create an application that captures a video from a webcam. Later on I need to load the video and be able to navigate around in the video freely.
When I use the videocap-demo that comes with the Sources of DSPack, the captured video is encoded in H264. When I navigate around in that video, the picture becomes blurry, with wrong colors and you can't recognize the picture. (I tried with VLC and Windows media player)
...playing the video works, but after jumping to any position in the video, it looks like this...
How can I tell DSPack to capture the video e.g. in the old MJPEG-format?
(I tried with old videos from my camera. In MJpeg the navigation seems to work flawless)
Thanks in advance, R.

How to play mp4 Audio files in swift?

I have some Audio files in mp4 format - which I used thinking this would be the best format for use on both iOS and Android devices. However they do not play with either AVAudioPlayer or AVPlayer. Is there another player that may handle it, or some way (in Swift) to covert them to mp3? Note this only an issue with mp4 audio only files - mp4 videos are fine.
AvPlayer CAN play mp4 files, but not if they are encoded as AMR_NB they need to be encoded as AAC.

Capture WKWebView audio for metering

I am currently working on an app that contains a WKWebView in which I have loaded an iFrame with video streaming from YouTube.
I would like to be able to create an audio visualizer that is shown alongside this iFrame and moves in reaction to the audio from the stream.
I have been following along with this Ray Wenderlich tutorial for creating a music visualizer, but the tutorial uses the setMeteringEnabled and updateMeters functions built in to AVAudioPlayer.
Is there any way to meter audio coming from a WKWebView? I just want an average volume level, not the actual audio stream itself.
I have attempted to look at libraries like The Amazing Audio Engine, but none of them seem to allow you to capture the channel coming from the WKWebView at all, let alone for metering purposes.

Playing mpg file in XNA

Is there any way to play mpg files in XNA? (I want to develop a game that a video stream has to play at background)
XNA has built-in video playback. A good place to get started using it might be Catalin's XNA 3.1 Video Sample.
One downside to XNA's built-in functionality is that it has limited format support (specifically WMV9). So you will need to convert your video to that format. Two options for encoding are Windows Movie Maker and Windows Media Encoder (which seems to have recently become Expression Encoder 4).
Once in that format, you can simply add it as content to your project. Then load it as a Video through the content manager, and use VideoPlayer to play it back, calling videoPlayer.GetTexture() to get a texture of the current video frame you can set on the device or pass to spriteBatch.Draw().

Resources