On Thu, Feb 24, 2005 at 09:41:34AM -0500, Steve Malenfant top-posted (grr):
> On Thu, 24 Feb 2005 14:39:58 +0000, Derek Conniffe <[EMAIL PROTECTED]>
> top-posted (grr):
> > I'd like to know how to make windows media player automatically stream
> > the files rather than try to download them and then play them.  I've got
> > to the strange situation where I'm able copy the URL from mythweb, open
> > Windows Media player, Click "open" and paste in the URL and media player
> > with start streaming - great.  But if I just click on the URL in mythweb
> > media player opens, starts  downloading - takes ages, and then starts
> > playing.... weird...
>
> It might work from VLC.  Also, you can probably try out HDTV Pump (I
> couldn't make this work on my PC, probably because I have NVIDIA DVD
> Decoder installed).
> 
> http://www.dvbportal.de/projects/hdtvpump/
> HDTV pump
> This DirectShow filter allows playback of ATSC/DVB .ts files in any
> player application that uses DirectShow including Zoom Player,
> Microsoft Media Center 2005 and Microsoft Media Player 10.

Windows Media Player is somewhat fussy about what it'll stream.  I've been
tinkering around with HTTP streaming of AVI files, and from what I've
observed of video muxed with two different programs, either it'll download
the whole thing and start playing (and keep video and audio in sync) or
it'll start playing after downloading just part of the file (but the video
and audio drift out of sync).  I realize that MPEG isn't AVI and MythTV
doesn't use HTTP streaming, but it's something to keep in mind.

That said, HDTV Pump looks like it does what it should.  The ffdshow MPEG-2
decoder (either libavcodec or libmpeg2) appears to be too slow for real-time
playback (even on an Athlon 64 3200), and the CyberLink MPEG-2 decoder (part
of PowerDVD) apparently doesn't like HD.  For real-time playback, you'll
still need to track down an MPEG-2 decoder filter that handles HD without
getting bogged down.

One other consideration is that you'll definitely want to rename your
transport streams from foo.nuv to foo.ts.  Otherwise, Windows Media Player
won't load them.

What it appears to do well enough at, though, is demuxing video & audio so
you can edit it.  I currently use DVD2AVI and Avisynth to snip ads out of TV
shows that get archived to DVD.  With HDTV Pump, I've figured out how to
make HD video accessible to Avisynth.  You'll need the DirectX 9 SDK to
build a couple of filters and gain access to GraphEdit.  You should already
have installed both HDTV Pump and ffdshow (we need its AC3 decoder).

1) Build the WAV Dest and Dump sample filters.  Copy them to 
   %SYSTEMROOT%\system32 and register them:
   regsvr32 wavdest.ax
   regsvr32 dump.ax
2) Start GraphEdit.  Drag the transport stream (we'll call it foo.ts) from an 
   Explorer window over to the GraphEdit window.  Remove all filters except
   the source filter and the MPEG-2 Demultiplexer.
3) To create the MPEG-2 video ES and AC3 files, insert two instances of the 
   Dump filter into the graph.  Have one of them write to foo.m2v and the 
   other to foo.ac3.  Connect the outputs of the MPEG-2 Demultiplexer (one
   is labeled AC3, the other is labeled Video) to the appropriate Dump
   filters.  Start the graph; the two stream files will be created.
4) Run foo.m2v through DVD2AVI to produce foo.d2v.
5) To decode foo.ac3, start a new filter graph in GraphEdit.  Drag foo.ac3
   into GraphEdit.  Remove the audio renderer (probably "Default DirectSound
   Device).  Insert the WAV Dest and File Writer filters; give the File
   Writer filter the filename foo.wav.  Connect the ffdshow Audio Decoder
   output to the WAV Dest input, and connect the WAV Dest output to the
   File Writer input.  Start the graph and wait for it to finish.

You can then bring foo.d2v and foo.wav into an Avisynth script and work with
them like any other sources.  Here's a minimal script that you can load into
VirtualDub, Windows Media Player (no, it's not fast enough for playback), or
whatever:

AudioDub(MPEG2Source("foo.d2v"),WAVSource("foo.wav"))
ConvertToYUY2()

One possible downside is that the audio will be downmixed to stereo.  The
few HD shows I've seen so far have all had just 2-channel audio anyway, so
this shouldn't be a problem most of the time.

  _/_
 / v \ Scott Alfter (remove the obvious to send mail)
(IIGS( http://alfter.us/            Top-posting!
 \_^_/ rm -rf /bin/laden            >What's the most annoying thing on Usenet?

Attachment: pgpCDnm8IM7ke.pgp
Description: PGP signature

_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Reply via email to