RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
224 stars 27 forks source link

Improve RTSP Streaming support documentation on Windows #631

Open mykr13A opened 3 years ago

mykr13A commented 3 years ago

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):

To Reproduce

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 unitysupport@renderheads.com

kahnivore commented 3 years ago

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?

mykr13A commented 3 years ago

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 < notifications@github.com> έγραψε:

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 .

kahnivore commented 3 years ago

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 unitysupport@renderheads.com (or your FFMPEG settings if you're making a local stream).

mykr13A commented 3 years ago

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 < notifications@github.com> έγραψε:

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 unitysupport@renderheads.com (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 .

stale[bot] commented 3 years ago

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] commented 3 years ago

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.

AndrewRH commented 2 years ago

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