Reply to thread

There must be an issue I can't see.


I can play the timeshift and recordings with AC3Filter, but not ffdshow. As far as I can tell, the ATI Encoder has been working perfectly well, just ffdshow doesn't work with the mediaportal demux. I'll see if I can fiddle with the encoded audio format and get it working (I like using ffdshow, cause it outputs as SPDIF for me).


The changes required are (All in TvCardAnalog/Base)

1) In FindAudioVideoPins()


Add


[CODE]//Mod for Audio Capture

      if (_pinAnalogVideo != null || _pinAnalogAudio == null)

      {

          Log.Log.WriteFile("analog:   find pins on audio capture filter");

          //Try adding a capture source to the graph, and using the line in as the audio pin.

          string monikerAudioCpature = @"@device:cm:{33D9A762-90C8-11D0-BD43-00A0C911CE86}\Realtek AC97 Audio";

          IBaseFilter audioCapture = Marshal.BindToMoniker(monikerAudioCpature) as IBaseFilter;

          int hr = _graphBuilder.AddFilter(audioCapture, "Audio Capture");

          if (hr != 0)

          {

            Log.Log.WriteFile("analog:AddAudioCapture returns:0x{0:X}", hr);

            throw new TvException("Unable to add AddAudioCapture");

          }  

          _pinAnalogAudio = FindMediaPin(audioCapture, MediaType.Audio, MediaSubType.Null);

      }

//End mod[/CODE]


But modify it to grab the first Audio Capture Source (I just used the moniker for mine to speed it up)

I havent looked at the cleanup, so there may need to be a global version of audioCapture (_audioCapture)


2) Add a variable to indicate we don't need the demux/remux the stream again, and add it to the begining of AddMpeg2Demultiplexer (Early return), AddMpegMuxer (Early return) and AddTsFileSink (Use _filterAnalogMpegMuxer instead of _filterMpegMuxer (Can't just use _filterMpegMuxer because it is remade when the graph restarts))


3) Change around the desired Audio/Video compressors (ATI works well and is free to download), and sort out muxer.


Is there a reason for the mux-demux-remux? Can that be cut out entirely?


Top Bottom