Reputation: 21473
Is there any way to remux an mkv stream into an mp4 container on the fly? I'm using an html5 <video>
tag and while I know I won't get fantastic browser support, I'm building for the future (and this is part of a larger project where other features also require html5 compatible browsers). It appears that there is better support for h.264 in an mp4 container than in the mkv container but some of my streams come in as mkv.
Upvotes: 3
Views: 4423
Reputation: 24710
Have a look at the Mediacoder project. It is a transcoder with a GUI frontend to various major media-related open source projects. It supports all major Operating System.
Additionally Mediacoder supports a web-User interface, which may be ideally suited to your web-related project.
There has been an issue with mkv in the past, but that should be solved by now.
Upvotes: 2
Reputation: 392
VideoLan Server can do remuxing on the fly. Look here http://www.videolan.org/streaming-features.html
Upvotes: 1
Reputation: 104050
Remuxing MKV into MP4 is one of the tasks performed by ps3mediaserver; since it does a lot of extraneous tasks, I'm not sure it is where I would recommend starting but I think it might be a suitable last-ditch effort.
I've used mkvextract
to extract tracks from MKV files and MP4Box
to re-package the data into MP4 streams.
I always ran the programs in a batch mode, rather than streaming mode, because I only wanted to burn the CPU cycles for the conversion once, so our uses are different. (I don't know if both formats allow for streaming conversion.) But perhaps these two tools can allow you to build something close enough to streaming.
Upvotes: 1