0

私は DirectShow を初めて使用します。ASI/SDI Dectek デバイス、DTU-225、および相対 SDK があります: http://www.dektec.com/products/USB2/DTU-225/index.asp。この SDK には、Directshow フィルターがあります。このフィルターによって生成された出力を ffmpeg, mencoder o vlc に渡して、リアルタイムでさらに処理する必要があります (中間ファイルは作成されません)。これどうやってするの?SDI インターフェイスの場合、フィルターの出力ピンの仕様は次のとおりです。

タイプ1

  • メジャータイプ: MEDIATYPE_Video
  • サブタイプ: MEDIASUBTYPE_UYVY
  • フォーマットタイプ: FORMAT_VIDEOINFO2

タイプ2

  • MEDIATYPE_動画
  • MEDIASUBTYPE_UYVY
  • FORMAT_VideoInfo

次のステップは次のようになるため、DirectShow を使用する方が快適だと思います。SDI モードではなく、DVB-ASI モード、mpeg2-transport ストリームで同じことを行います。そのため、ストリームを解析して別の PID を抽出する必要があります。このプロセスで DirectShow が役立つと思います。多分。ありがとうございました。

4

3 に答える 3

1

Windows vlc will capture from a DirectShow filter. See the link below. Works fine on my Windows system capturing from the built in webcam and microphone. From the open capture device dialog you can select 'show more options' to see the options which you can use on the vlc command line to open that capture device and stream/transcode etc.

http://www.videolan.org/doc/play-howto/en/ch03.html

Basic DirectShow input options on my system look like the following:

:dshow-vdev=USB Video Device :dshow-adev=Microphone (Realtek High Definition) :dshow-caching=200

I don't have much knowledge of vlc and I haven't managed to get this working from the command line. There are some worrying reports of not being able to use DirectShow devices with spaces in the name from the command line but there may be workarounds.

http://trac.videolan.org/vlc/ticket/1654

If you're prepared to do some DirectShow programming or use Windows Media Player instead there is an infinite variety of video processing options available in DirectShow. See the Wikipedia page on DirectShow to get an overview.

Another option would be to write a plugin for vlc, ffmpeg or mencode that talks directly to DirectShow to get data from the filter for your device though it's not nearly as simple as using vlc's DirectShow input.

于 2011-04-13T11:44:34.647 に答える
1

ffmpeg は「dshow」入力を受け入れることができます

ffmpeg/ffplay は avisynth 入力も受け入れることができます。avisynth は、グラフ編集ファイルを入力として受け入れることができます。フィルターをグラフ編集ファイルに追加して再生することができます。これは、「非ソース」フィルタをキャプチャする唯一の方法です。

于 2011-08-05T00:35:57.717 に答える
0

ffdshow を使用するだけです。これは、DirectShow フィルターの形式の ffmpeg です。

于 2011-04-19T10:34:56.747 に答える