Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If a device is added automatically (see Jeśli urządzenie zostało dodane automatycznie (zobacz: Dodawanie oraz usuwanie urządzeń IP), separate objects are created for video and audio streams.If you need to create a single object, add the device manually using the following address formattworzone są oddzielne obiekty dla strumieni wideo oraz audio.

Jeśli niezbędne jest utworzenie jednego obiektu, dodaj urządzenie ręcznie korzystając z następującego formatu adresu:

No Format
dshow(<index><indeks>)://(<video<nazwa_deviceurządzenia_name>wideo>)(:<audio<nazwa_deviceurządzenia_name>audio>)

If no index is specified in the address, the value is 0. Use a non-zero index if you use multiple devices with the same name.

Jeśli wartość indeksu nie jest określona, jest ona wyznaczana na 0. Użyj niezerowej wartości indeksu jeśli podłączasz wiele urządzeń o tej samej nazwie.

PrzykładowoFor example:

No Format
dshow://USB 2.0 HD Camera
dshow1://USB 2.0 HD Camera


Info
titleNote

If a video or audio device is not present, it may be not specified in the address.

After you added the device, you have to set up its streams. For archive recording and transferring videos over the network, MJPEG codec is recommended; for detection purposes, use YUV422.

Image Removed

If required, you can set a parameter string for FFmpeg app in the Additional Options field.  

Image Removed

Informacja

Jeśli wideo lub audio jest niedostępne, możliwe jest, że nie jest ono wyznaczone w adresie.

Po dodaniu urządzenia należy skonfigurować strumienie dla urządzenia. Dla nagrywania do archiwum oraz przesyłania nagrań przez sieć zalecany jest kodek MJPEG; jeśli wideo ma posłużyć dla narzędzi detekcji, użyj kodeka YUV422.

Image Added

Jeśli jest to wymagane, ustaw parametry dla aplikacji FFmpeg w polu Additional Options.  

Image Added

Przykładowo: otrzymywanie wideo z kamery USB w formacie YUV420P, w rozdzielczości 1280x960For example: receive video from a USB camera in YUV420P format, 1280x960 resolution.

No Format
-pixel_format yuv420p -video_size 1280x960

Parameters and their values differ by format and particular device. To list possible parameter values, run the following command from the Windows command lineParametry oraz ich wartości zależą od formatu oraz konkretnego urządzenia. Aby zapoznać się z dostępnymi parametrami, uruchom następującą komendę w wierszu poleceń Windows:

No Format
ffmpeg -list_options true -f dshow -i video="<device name><nazwa-urządzenia>"