Обработка видеоданных в.NET

Нажмите «Play», переключитесь в режим «Просмотр сцены», выберите текстовый интерфейс в иерархии, в верхнем меню откройте GameObject-> Align View to Selected.

Если вы видите текстовый интерфейс в сцене, то вы знаете, что он все еще там, просто нужно выяснить, почему он не отображается. Я думаю, это может быть проблема масштабирования, когда текстовый интерфейс масштабируется в режиме AR.

Начните с компонента Canvas Scaler (прикрепленного к холсту) и установите для «UI Scale Mode» значение «Scale with Screen Screen». Затем в компоненте Canvas (прикрепленном к Canvas) измените «Режим рендеринга» на «Пространство экрана - Наложение».

5
задан Jakub Šturc 22 April 2009 в 17:05
поделиться

4 ответа

It turns out that Splicer was the best option for me. It is open source wrapper around DirectShow.Net. The programming model is so simple that even I was able to understand it.

3
ответ дан 14 December 2019 в 13:46
поделиться

Я использовал эту обертку C # AVIFile в CodeProject для преобразования растрового изображения -> AVI, и он также может делать обратное.

1
ответ дан 14 December 2019 в 13:46
поделиться

Previously the Managed DirectX wrappers from Microsoft supplied an AudioVideoPlayback assembly which could be used for this but this has basically died

That article lists several alternates which I'll list here for completeness (I cannot speak for their relative merits):

It is worth noting that one of the reasons to NOT use managed code to implement filters in the DirectShow chain is that only one version of the CLR can be hosted at a time[1] so two filters with incompatible versions would fail in unpleasant ways (this is the same issue with managed shell addins).

However doing this as an app rather than as a filter should be fine.

By using DirectShow any existing audio/video stream decodable by the system should be come accessible to you.

[1] The 4.0 CLR is meant to remove this issue for all CLR versions from 2.0 onwards. Whether this is a retrospective fix for existing extension points is an open question.

1
ответ дан 14 December 2019 в 13:46
поделиться

Вы также можете скачать бесплатную для некоммерческих целей VideoLab.NET - www.mitov.com и использовать ее. Он включает демонстрацию, показывающую, как получить растровые изображения из потока с помощью одной строки кода.

1
ответ дан 14 December 2019 в 13:46
поделиться
Другие вопросы по тегам:

Похожие вопросы: