Real-time recoding of video from asx to non-Windows formats

Michael Torrie torriem at
Thu Aug 13 16:19:40 CEST 2015

On 08/12/2015 12:04 AM, Montana Burr wrote:
>     I'm interested in using Python to create a server for streaming my
> state's traffic cameras - which are only available as Windows Media streams
> - to devices that do not natively support streaming Windows Media content
> (think Linux computers & iPads). I know Python makes various problems easy
> to solve, and I'd like to know if this is one of those problems. I would
> like to use a module that works on any Linux- or UNIX-based computer, as my
> primary computer is UNIX-based.

This is a case of use the best tool for the job.  Python could glue the
parts together, but maybe a bash script would be best.  As for the tools
themselves, they aren't going to be Python.  Things like mplayer, vlc,
ffmpeg all might assist.

VLC is very good at this kind of thing, and can be driven from the
command line, say from a bash script.  VLC can connect to a network
stream, transcode it, and offer it up as a different network stream.
However VLC network transcoding is only a one connection at a time sort
of thing, so it may not be enough for your needs.

If your main target is Linux, windows media streams work fairly well
with mplayer or vlc.

More information about the Python-list mailing list