WWBN / AVideo-Storage

Storage Server for AVideo Platform Open-Source
26 stars 37 forks source link

New naming convention in YPTStorage 4.0 makes the Streamer unable to reproduce old and new videos #23

Closed franranchito closed 3 years ago

franranchito commented 3 years ago

Hello, after the last YPTStorage 4.0 update, from a 3.X version, my Streamer can't reproduce videos from the Storage anymore.

I've found in the Apache HTTP Server access.log of the Storage, that the Streamer calls for videos in the Storage stopped getting a successful 206 code (before the update), and started getting an error 404 code (after the update).

The reason is the new directory structure after the update, the Streamer went from asking for the video file like this (this is an older video with the older naming convention, but it also fails for newly uploaded videos with the new naming convention): /videos/_YPTuniqid_20951ace116687.06176394_HD.mp4

To ask like this (each video being in a folder, named like the video): /videos/_YPTuniqid_20951ace116687.06176394/_YPTuniqid_20951ace116687.06176394_HD.mp4

So, since the path invoked by the Streamer doesn't exactly exist in the Storage, the video never loads. If there was an update script for this, it failed in my case.

I tried to:

-re-install the YPTStorage plugin -de-activate the YPTStorage plugin and activate it again -edit the options in the Admin Panel and in the Plugin options

But it still fails for both:

-old videos fail with their old naming convention -new videos also fail, with their new naming convention

If I manually create the folder and manually move the video into the folder, the Streamer is again able to reproduce the video.

How should I proceed?

Thank you

DanielnetoDotCom commented 3 years ago

Please make sure you update your streamer and encoder and follow this https://github.com/WWBN/AVideo/issues/5075#issuecomment-833764155

franranchito commented 3 years ago

Thank you, I executed:

cd /var/www/html/AVideo/install
php moveFilesToFolder.php

and I had the Streamer already updated to 11.0 and the Encoder to 3.8, but I also did a git pull in the Storage:

cd /var/www/html/AVideo-Storage/
sudo git pull

And it is now working again for older and newer videos.