UnityPlugin-AVProVideo
UnityPlugin-AVProVideo copied to clipboard
Improve RTSP Streaming support documentation on Windows
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]
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?
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 .
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).
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 .
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.
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.
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