Home » Questions » Computers [ Ask a new question ]

How can I encode or mux h.264 streams in a SWF container? [closed]

How can I encode or mux h.264 streams in a SWF container? [closed]

Is there any way to encode a video file into a H.264 stream inside a SWF, or a program that allows muxing an existing (x264) stream into a SWF?

Asked by: Guest | Views: 245
Total answers/comments: 2
Guest [Entry]

"You won't be able to encode H.264 to swf because as mentioned, swf supports Vector Graphics. You can't encode H.264 using flv container either (using ffmpeg, etc) because the authors intentionally prevents this for copyright reasons. You would have to purchase H.264 licenses to encode to flv. (YouTube has H.264 flv because they purchased the license to do so.)

The best thing you can do is encode your file to h.264 mp4 container and create or use an swf player and include XML meta data and tags to stream the mp4 file. Its just like using H.264 flv and the JWPlayer is great for doing this with Flash Player 10.

This worked great for me!!!"
Guest [Entry]

"Wish I had a better answer for you. For compatibility you're pretty much stuck with FLV. FLV is geared towards a longer encoding time, and a less-cpu intensive decoding. If you don't go too nuts with the size targeting you can get sizes and quality similar to mp4 (non-avc, no h.264) with flv. It's worth noting that there are some 3rd party FLV encoders that do a better job than the ones that come with Flash, most are commercial though.

IIRC, FLV uses an encoding from a company that was bought out by Google last year and an earlier version of that codec was the base for Theora."