UnityPlugin-AVProVideo icon indicating copy to clipboard operation
UnityPlugin-AVProVideo copied to clipboard

Improve RTSP Streaming support documentation on Windows

Open mykr13A opened this issue 4 years ago • 7 comments

Describe the bug I use the FullscreenVideo player to stream a live video via Unity on Windows 10 but I cannot see the video. The stream is an rtmp stream. The codec of the video is H.264. I used both APIs Media Foundation and DirectShow. The Media Foundation API creates a white window, the video is not loaded and shows the error " Loading failed. File not found, codec not supported, video resolution too high or insufficient system resources". On the other side the DirectShow shows the error "Failed to open rtsp://.....". I didn't expect to play because the documentation says that it if for Windows 8 and below. How can I watch the video.?

Your Setup (please complete the following information):

  • Unity version: 2019.4.14f1
  • AVPro Video version: 1.11.7
  • Operating system version: Windows 10
  • Device model: Dell G5
  • Video specs (resolution, frame-rate, codec, file size): ([email protected])

To Reproduce 1. 2. 3.

Logs If applicable, add error logs to help explain your problem.

Screenshots If applicable, add screenshots to help explain your problem.

Videos If applicable, add a copy of your video or the URL

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Instead email the link to us [email protected]

mykr13A avatar Feb 17 '21 14:02 mykr13A

Hey @mykrana

RTMP isn't really supported by Windows natively - so will only work with Direct Show, and you'd have to install 3rd party filters, like the LAV Filters.

Let us know if you come right?

kahnivore avatar Feb 19 '21 09:02 kahnivore

In my post I wrote rtmp but it is RTSP, so I woud like to correct it. I used Media Foundation API and now the video plays. I had to correct something in the color mapping of the video. However, the video is too late to start and it has 10s delay. I don't think that there is server's or rtsp stream's problem because when I watch the video on VLC player it has about 2s delay. Is there any case to fix it?

Στις Παρ, 19 Φεβ 2021 στις 11:49 π.μ., ο/η kahnivore < [email protected]> έγραψε:

Hey @mykrana https://github.com/mykrana

RTMP isn't really supported by Windows natively - so will only work with Direct Show, and you'd have to install 3rd party filters, like the LAV Filters.

Let us know if you come right?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/631#issuecomment-781963752, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH4PRZDHQD4FKLSFUEVMS2TS7YXZLANCNFSM4XYOR52A .

mykr13A avatar Feb 19 '21 10:02 mykr13A

You could try ticking the 'low latency' option in Platform Specific > Windows and see if it makes a difference?

We could also take a look at your stream if you'd like to send us your URL to [email protected] (or your FFMPEG settings if you're making a local stream).

kahnivore avatar Feb 19 '21 13:02 kahnivore

With the low latency option I can not see the video, just a gray image. The ffmpeg settings are "ffmpeg -f video4linux2 -framerate 25 -input_format yuyv422 -video_size 640x480 -fflags nobuffer -i /dev/video0 -c:v libx264 -tune zerolatency -crf 18 -vf format=yuvj420p -an -f rtsp rtsp://localhost:8554/mystream" The server that is being used is https://github.com/aler9/rtsp-simple-server

Στις Παρ, 19 Φεβ 2021 στις 3:56 μ.μ., ο/η kahnivore < [email protected]> έγραψε:

You could try ticking the 'low latency' option in Platform Specific > Windows and see if it makes a difference?

We could also take a look at your stream if you'd like to send us your URL to [email protected] (or your FFMPEG settings if you're making a local stream).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/631#issuecomment-782090256, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH4PRZFCYFPKCAHUQ7RKJC3S7ZUXJANCNFSM4XYOR52A .

mykr13A avatar Feb 19 '21 14:02 mykr13A

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 09 '21 01:03 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 23 '21 16:03 stale[bot]

TODO: test this and improve documentation about which RTSP streams are supported on Windows. Microsoft's documentation is too old: https://docs.microsoft.com/en-us/windows/win32/medfound/supported-protocols

AndrewRH avatar Oct 29 '21 11:10 AndrewRH