NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 62 63 64 65 66 … 93 Next »
Connect MPEG-2 demux filter in Directshow graph?

 
  • 0 Vote(s) - 0 Average
Connect MPEG-2 demux filter in Directshow graph?
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#1
2005-12-24, 07:38 PM
As GB-PVR doesn't support recording DVB-T radio (yet), I thought I'd have a play at it myself. I can build a working graph in Graphedit and tune one of my Nova-T cards to the radio channel and capture to an mp3 file writer. So far so good.

I then tried using DirectShowLib (C# 'wrapper' for directshow available from Sourceforge). So far I can add the MS DVB-T Network Provider filter, Nova-t Tuner/Demod, Nova-T Capture and MPEG-2 demux to the graph and connect the first three successfully together. No matter what I do, however, I can't connect the MPEG2 Transport output pin of the capture filter to the MPEG2 Stream input pin of the mpeg2 demux. I don't get any errors, just nothing happens. If I 'break' in debug and connect to the remote graph I can, however, render the capture filter mpeg2 TS output pin using Graphedit and it happily hooks up with the mpeg2 demux.

I know this is all a bit vague but what I'm asking is...is there anything special about the default MPEG2 Demux that means I have to treat it differently? I'm specifying the pin media type/subtype/format by name or GUID as shown in filter properties in Graphedit.

There's something I want to record on Boxing Day but it's no big deal, I could always record from my STB to VCR or even just run the graph manually in graphedit.

You'd think I'd find something better to do on Christmas Eve than programming wouldn't you? Sad, sad man. Big Grin

Cheers,
Brian
funkybro_uk
Offline

Member

Posts: 86
Threads: 17
Joined: May 2005
#2
2005-12-31, 06:01 PM
bgowland Wrote:As GB-PVR doesn't support recording DVB-T radio (yet), I thought I'd have a play at it myself. I can build a working graph in Graphedit and tune one of my Nova-T cards to the radio channel and capture to an mp3 file writer. So far so good.

I then tried using DirectShowLib (C# 'wrapper' for directshow available from Sourceforge). So far I can add the MS DVB-T Network Provider filter, Nova-t Tuner/Demod, Nova-T Capture and MPEG-2 demux to the graph and connect the first three successfully together. No matter what I do, however, I can't connect the MPEG2 Transport output pin of the capture filter to the MPEG2 Stream input pin of the mpeg2 demux. I don't get any errors, just nothing happens. If I 'break' in debug and connect to the remote graph I can, however, render the capture filter mpeg2 TS output pin using Graphedit and it happily hooks up with the mpeg2 demux.

I know this is all a bit vague but what I'm asking is...is there anything special about the default MPEG2 Demux that means I have to treat it differently? I'm specifying the pin media type/subtype/format by name or GUID as shown in filter properties in Graphedit.

There's something I want to record on Boxing Day but it's no big deal, I could always record from my STB to VCR or even just run the graph manually in graphedit.

You'd think I'd find something better to do on Christmas Eve than programming wouldn't you? Sad, sad man. Big Grin

Cheers,
Brian

GB-PVR supports DVB radio recording fine for me... just use TMPGEnc (or GraphEdit) to demux out the MP2 audio from the resulting MPG file (An app which runs post-recording, to detect if MPG files have no video stream, and automatically demux the audio (and perhaps auto transcode to MP3) would be useful).

Is this the first DVB app you've written using DirectShow? I managed to get a successful graph working eventually - my app has the basics in place for saving DVB EPG to XMLTV format - this got abandoned when Sub integrated this into GBPVR! It's very tricky to get a successful graph working though...

funkybro
[SIZE="1"]Receiving UK DVB-T from Rowridge and DVB-S from Astra 28.2

PC: 3GHz AMD, 1GB RAM, XP Pro SP2.
TV stuff: Nova-T 909, Nova-T 90002, TwinHan clone TechniSat Skystar, 2xMVP.
Wireless link PC->router
Wired link router->MVP1
Wireless link router->Edimax EW-7206 54g Access Point->MVP2

Issues:
- Rubbish reception, due to dodgy set-top aerial
- MVP occasionally losing connection with PC
[/SIZE]
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#3
2005-12-31, 06:50 PM
funkybro_uk Wrote:GB-PVR supports DVB radio recording fine for me... just use TMPGEnc (or GraphEdit) to demux out the MP2 audio from the resulting MPG file (An app which runs post-recording, to detect if MPG files have no video stream, and automatically demux the audio (and perhaps auto transcode to MP3) would be useful).
Interesting idea although the few times I've tried it, I ended up with a 0KB size file. Then again, I use DVR-MS as my recording format in GB-PVR - I gave up on trying to use the other muxes. The Cyberlink one was most stable but occasionally crashed the recording service. Maybe the DVR-MS file writer doesn't like it if there isn't a video component. In saying that though, if I 'watch' a DVB-T radio channel on my Freeview box, there IS a picture albeit a 'still' one so I don't understand why GB-PVR doesn't record it.

Quote:Is this the first DVB app you've written using DirectShow?
Yes. The first attempt to do any graph building programmatically, in fact. I was pretty pleased with myself when I managed to get the DVB filters hooked up with very little effort - the problem with the MPEG-2 Demultiplexer filter still eludes me. For the life of me, I still don't understand what I'm doing wrong.

No matter - it was just something I was playing with. I could probably find the solution if I had enough time to plough through the numerous sample files that are around. As ever, I have about half a dozen programs on the go at the same time - one of these days I'll learn to concentrate on one at a time. Smile

Cheers,
Brian
funkybro_uk
Offline

Member

Posts: 86
Threads: 17
Joined: May 2005
#4
2006-01-01, 04:16 PM
bgowland Wrote:Interesting idea although the few times I've tried it, I ended up with a 0KB size file. Then again, I use DVR-MS as my recording format in GB-PVR - I gave up on trying to use the other muxes. The Cyberlink one was most stable but occasionally crashed the recording service. Maybe the DVR-MS file writer doesn't like it if there isn't a video component. In saying that though, if I 'watch' a DVB-T radio channel on my Freeview box, there IS a picture albeit a 'still' one so I don't understand why GB-PVR doesn't record it.

The bad old days of worrying about muxes and 0KB recordings ended for me on the day I installed Cyberlink mux 5.0.0.1307. The un-muxed MPG files won't play for me at all on Media Player/Winamp or anything, don't know what's wrong with them...

bgowland Wrote:Yes. The first attempt to do any graph building programmatically, in fact. I was pretty pleased with myself when I managed to get the DVB filters hooked up with very little effort - the problem with the MPEG-2 Demultiplexer filter still eludes me. For the life of me, I still don't understand what I'm doing wrong.

I had similar problems when trying to do the same thing - I did it in C++ using the source code of a channel scanning app I found elsewhere as the basis. IIRC you need to do some initialization on the DVB-T network provider (e.g. tuning it in or something) before you can connect it to the demux filter. I'll hunt out my old app tomorrow and see exactly what I did.

I too have been looking at the DirectShow .NET stuff on sourceforge - it seems to cut out a lot of the code involved when using C++ (much of which is meaningless to me as I don't know COM at all) - but having a working graph would be a great basis for future work.

bgowland Wrote:No matter - it was just something I was playing with. I could probably find the solution if I had enough time to plough through the numerous sample files that are around. As ever, I have about half a dozen programs on the go at the same time - one of these days I'll learn to concentrate on one at a time.

Likewise! Got so many things on the go, but none actually likely to be finished any time soon!

funkybro
[SIZE="1"]Receiving UK DVB-T from Rowridge and DVB-S from Astra 28.2

PC: 3GHz AMD, 1GB RAM, XP Pro SP2.
TV stuff: Nova-T 909, Nova-T 90002, TwinHan clone TechniSat Skystar, 2xMVP.
Wireless link PC->router
Wired link router->MVP1
Wireless link router->Edimax EW-7206 54g Access Point->MVP2

Issues:
- Rubbish reception, due to dodgy set-top aerial
- MVP occasionally losing connection with PC
[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Mpeg-dash bgowland 2 2,286 2013-09-26, 05:43 PM
Last Post: bgowland
  Windows Media Connect - Storing stuff on a Home Server psycik 3 2,647 2009-09-29, 03:47 AM
Last Post: mvallevand
  .NET Graph controls McBainUK 4 2,347 2009-05-15, 06:01 PM
Last Post: McBainUK
  New plugin Idea - Foul Language Filter skate15e 14 5,010 2009-01-30, 09:27 PM
Last Post: reven
  Playfile with specified graph/filters whurlston 5 2,116 2008-09-02, 05:22 PM
Last Post: whurlston
  Connect to a database Denjet 4 1,890 2007-06-03, 03:13 AM
Last Post: -Oz-
  DVD to MPEG - target drive other than C:? MarkD 2 1,463 2006-11-12, 10:29 PM
Last Post: MarkD
  Problems Connecting up a Radio Graph timh 6 2,533 2006-11-11, 08:10 PM
Last Post: timh
  vb6, get WxH of Avi and Mpeg zehd 2 1,804 2006-06-13, 11:39 PM
Last Post: zehd
  Directshow MP3 File Writer filter? bgowland 4 4,328 2006-05-25, 07:59 PM
Last Post: bgowland

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode