Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not play video from storage #25

Open
webdsf opened this issue Dec 21, 2021 · 26 comments
Open

Do not play video from storage #25

webdsf opened this issue Dec 21, 2021 · 26 comments

Comments

@webdsf
Copy link

webdsf commented Dec 21, 2021

Hello, I was able to connect the storage, and even send a file, but it cannot be played.
Please tell me how to fully configure it so that it works well and without failures.
Set up a reverse proxy?
https://i.ibb.co/pPQ43JK/Screenshot-20.png
https://i.ibb.co/JpZ6M7W/Screenshot-21.png

@DanielnetoDotCom
Copy link
Member

Hi

You MUST add a HTTPS on your YPT Storage as well

also make sure your endpoint is also https

@webdsf
Copy link
Author

webdsf commented Dec 21, 2021

https://i.ibb.co/CWm0Jyd/Screenshot-22.png
Everything works, the certificate is installed, but something went wrong. How to say, correcting one thing, there will always be something else)

@DanielnetoDotCom
Copy link
Member

DanielnetoDotCom commented Dec 21, 2021

Make sure you install apache headers mod

1. Enable mod_headers

Just open a terminal and run the following command to enable mod_headers in Ubuntu/Debian Linux.

$ sudo a2enmod mod_headers

2. Restart Apache Server

Restart Apache webserver to Apply changes.

$ sudo service apache2 restart

@webdsf
Copy link
Author

webdsf commented Dec 21, 2021

This is what I get.
https://i.ibb.co/hX468xM/Screenshot-23.png

@webdsf
Copy link
Author

webdsf commented Dec 21, 2021

After that, I used sudo apache2ctl configtest
Everything worked in another blouse, and I noticed an interesting thing in explorer.
https://i.ibb.co/71hcFFQ/Screenshot-24.png
But you can add multiple voice tracks to a video. do you have plugins or ready-made solutions? By the way, this is steeper than the subs.

@webdsf
Copy link
Author

webdsf commented Dec 21, 2021

As I understood with YPTCDN, storage does not work. Another big problem is that when you transfer it somewhere, all the qualities disappear.
https://i.ibb.co/bXdrC8z/Screenshot-25.png
https://i.ibb.co/HGQmzZk/Screenshot-28.png

Your Streamer Answer an error!
Site not found
I transferred several files without any problems, and then this error appeared. In the streamer, it shows that everything sent and everything is Played, but I cannot enter the storage.

@DanielnetoDotCom
Copy link
Member

This is what I get. https://i.ibb.co/hX468xM/Screenshot-23.png

image

your restart failed

@DanielnetoDotCom
Copy link
Member

After that, I used sudo apache2ctl configtest Everything worked in another blouse, and I noticed an interesting thing in explorer. https://i.ibb.co/71hcFFQ/Screenshot-24.png But you can add multiple voice tracks to a video. do you have plugins or ready-made solutions? By the way, this is steeper than the subs.

Sorry we do not support multiple tracks yet

@DanielnetoDotCom
Copy link
Member

As I understood with YPTCDN, storage does not work. Another big problem is that when you transfer it somewhere, all the qualities disappear. https://i.ibb.co/bXdrC8z/Screenshot-25.png https://i.ibb.co/HGQmzZk/Screenshot-28.png

Your Streamer Answer an error! Site not found I transferred several files without any problems, and then this error appeared. In the streamer, it shows that everything sent and everything is Played, but I cannot enter the storage.

Your YPTStorage and the Streamer MUST be able to communicate with each other. if something on this communication happens you will see the message above

@webdsf
Copy link
Author

webdsf commented Dec 22, 2021

Another big problem is that when you transfer it somewhere, all the qualities disappear. https://i.ibb.co/bXdrC8z/Screenshot-25.png https://i.ibb.co/HGQmzZk/Screenshot-28.png
You have not answered an important question.
Perhaps this is the root of the problem, and there are many of them. An old test address came from somewhere, signed an old one.
https://ibb.co/album/LY1dmx
Please help to configure, I took the module from you, and installed everything by command.
You won't be full-on well-fed one command)
https://ibb.co/album/LY1dmx

@DanielnetoDotCom
Copy link
Member

The HLS format has an adaptive bitrate. for performance reasons, we do not show the quality switch, but the qualities will automatically change depending on the available bandwidth

The audio track may be a bug, currently, we do not have that, but I have plans to add it in the future

I could not see the last 2 images it does not open here.

instead of using ibb.co for images you should copy and paste the images on GitHub, what works pretty good

@webdsf
Copy link
Author

webdsf commented Dec 22, 2021

Screenshot_35
Screenshot_34
Screenshot_33
Screenshot_32
Screenshot_31
Screenshot_30

@webdsf
Copy link
Author

webdsf commented Dec 22, 2021

The HLS format has an adaptive bitrate. for performance reasons, we do not show the quality switch, but the qualities will automatically change depending on the available bandwidth
All files located in local storage are displayed with the ability to copy any quality playlist.
And transfer only one to the storage, how can this be changed, is it not a mistake? Playlists are played by another player, and he also selects the desired playlist. I cannot insert one full adaptive one, since the playlist itself does not contain quality, but only the bandwidth. and to determine where what quality is difficult for the player. I thought it was a mistake that the quality from the storage servers was not displayed, but is this the case? Is it possible to enable this function?
In the screenshots, I have highlighted a strange glitch related to the old domain, which should not be
Sorry for my English.

@DanielnetoDotCom
Copy link
Member

Now I could see the image, but I am not sure what problem are you facing.

I guess we are talking about something that is not related to the original issue.

for example, does the file and directory on the image below exist?

image

@DanielnetoDotCom
Copy link
Member

The HLS format has an adaptive bitrate. for performance reasons, we do not show the quality switch, but the qualities will automatically change depending on the available bandwidth
All files located in local storage are displayed with the ability to copy any quality playlist.
And transfer only one to the storage, how can this be changed, is it not a mistake? Playlists are played by another player, and he also selects the desired playlist. I cannot insert one full adaptive one, since the playlist itself does not contain quality, but only the bandwidth. and to determine where what quality is difficult for the player. I thought it was a mistake that the quality from the storage servers was not displayed, but is this the case? Is it possible to enable this function?
In the screenshots, I have highlighted a strange glitch related to the old domain, which should not be
Sorry for my English.

This is not a mistake. the automatic adaptive is the best option.

for example, if your user wants to watch a video in 1080p and your server or your user does not have enough bandwidth the video will be lagging and loading a lot. the automatic is the best way to try to prevent it

@webdsf
Copy link
Author

webdsf commented Dec 22, 2021

for example, does the file and directory on the image below exist?

Screenshot_37

Here is the first problem. and the second is that all the transferred files do not work with your CDN
Screenshot_25
The arrow shows how the file looks on the storage, whether it is possible to display the qualities since it does not always switch the qualities correctly. And even more so if you use another player.

@DanielnetoDotCom
Copy link
Member

when you self host the videos we can determine the resolution directly from your drive, if you use the storage we need to query it.

BTW, check if you enabled this ...

image

even if it works with the storage, it may slow down your site. but I guess it worth a try

@webdsf
Copy link
Author

webdsf commented Dec 22, 2021

Аnd what can you say about the work of the repository together with your CDN, since now it does not work with files transferred to the repository, I also cannot add the address to the CDN?

@webdsf
Copy link
Author

webdsf commented Dec 22, 2021

BTW, check if you enabled this ...

Screenshot_38

separate playlists of qualities in storage do not work, and how to enable this?
He can edit the playlists themselves for each bandwidth and prescribe the quality, then any player will be able to understand what quality, and there will be no need to sculpt a separate playlist for each quality, it would be good, albeit for a long time. It's a pity the playlist itself is created like that without the prescribed qualities to the bandwidth.

@DanielnetoDotCom
Copy link
Member

I am not sure what you mean.

are you saying there is no need to have a separate playlist for each resolution?
where did you see that?

@webdsf
Copy link
Author

webdsf commented Dec 22, 2021

  1. Screenshot_39
    [1] This file is located locally
    [2] Transfer this file to the storage
    How to make it look the same?

  2. Further. locally the file responds to YPTCDN, when I transferred it to external storage, it only responds to its main domain. YPTCDN doesn't work.

I threw off a few screenshots with errors. could it be their problem? And in general, everything works correctly there?
These are the two main mistakes that nothing works for. Also, those messages I cannot go to the storage at all.

Your Streamer Answer an error! Site not found

@webdsf
Copy link
Author

webdsf commented Dec 22, 2021

I bought everything, set it up by commands as it was said, It does not work storage. Stopped opening storage. Multiple playlists of qualities do not work, YPTCDN does not work. Files are sent and opened. Only these three errors that I do not know how to solve.

@DanielnetoDotCom
Copy link
Member

Stopped opening storage.

Check the apache log from your storage server

Multiple playlists of qualities do not work, YPTCDN does not work.

It does work but it is automatic

Files are sent and opened.

what do you mean?

@webdsf
Copy link
Author

webdsf commented Dec 22, 2021

It does work but it is automatic
If you enter links to files uploaded to the storage like this domain.cdn.ypt.me/videos/video_211201160150_v30ae/index.m3u8, it doesn't work, just a direct link.

@webdsf
Copy link
Author

webdsf commented Dec 22, 2021

And when I want to use the playlist in another player, I have to insert direct links to the storage, which is not good, and I don’t know how to fix this so that it’s impossible to access the storage from outside, but it was available for data exchange.

@DanielnetoDotCom
Copy link
Member

can you please share real links so I can check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants