Foliovision › Forums › FV Player › Bug Reports › Error message on enrypted videos : hlsjs-lite video not properly encoded
-
-
Hello Bruno,
Please let us know what do you use to host your videos.
If it’s Bunny CDN pulling videos from DigitalOcean Spaces, then does Bunny CDN in the S3 Authentication settings still use valid keys from DigitalOcean Spaces?
Are you sure there were no changes?
Is the issue only with Safari?
Are you on latest FV Player (the base free plugin) too?
Thanks,
MartinA test page would be helpful too.
Thanks,
Martin- This reply was modified 1 year, 4 months ago by Martin.
Hello,
-
i use Bunny CDN pulling videos from DigitalOcean Spaces
-
All keys and token keys look ok to me (see attached files).
-
No changes
-
issue at least with Firefox and Safari
-
FV Player version is : 7.5.37.7212
-
FV Player Pro version is : 7.5.35.7212
Test page >> (redacted)
Thank you
Hello Bruno,
Thank you for these details, I can see that the issue is not with Bunny CDN nor DigitalOcean Spaces.
Somehow the encrypted playback is not allowed.
Did you make any changes to the files stored on DigitalOcean Spaces, including renaming any of them?
Were there any changes to the web server configuration, like adding a web application firewall like Cloudflare or a proxy?
I’m asking as the user IP address playing the video and requesting the decryption key seems to not match.
Please open YOUR-SITE.com/wp-admin/options-general.php?page=fvplayer&debug and go to the “Tools” tab where you will find “Encrypted HLS tokens”.
Then play your test video and refresh that above page and see if anything new appears in that “Encrypted HLS tokens” table. Will you see your real IP address and will the “Url” match the video which you are trying to play?
Thanks
MartinHello,
-I did not make any changes to the files stored on DigitalOcean Spaces nor renamed them. Anyway newly encrypted videos don’t play either so i assume the issue is not there.
-No changes to the web server configuration
- When i play the test video, nothing new appears in that “Encrypted HLS tokens” table, there is just the same IP address. Not sure about what you mean by “Will you see your real IP address and will the “Url” match the video which you are trying to play?”
Regards
By the way i also posted that ticket : https://foliovision.com/support/fv-wordpress-flowplayer/troubleshooting/error-message-in-player-after-fv-player-update.
See if it’s related and if it could help.Regards
Hello Bruno,
Please deactivate and delete the FV Player Pro plugin you are using, then hit “Install Pro extension” at the top of the wp-admin -> FV Player -> Settings screen.
Then switch to the Beta release using the steps from here if you are not already using it: https://foliovision.com/player/basic-setup/switching-fv-player-pro-to-beta
Finally you will be able to enable wp-admin -> FV Player -> Settings -> Pro Features -> Debug -> Verbose.
Please let us know what filename it logs into (you can find out by clicking the three dots in the option description), it should be something like:
/home/website/public_html/fv-player-debug-abcdefdcf03634a4f3318e6d1d99042d.log
Then we can try to play your test video and see what shows in the log to figure out what’s failing.
Thanks,
MartinHello Bruno,
Please reinstall using the same steps again, I added some code to log why it fails to re-create that table or why the database insert fails. No need to test the Release version, these improvements are in Beta only.
If possible try to execute this SQL query on your database:
CREATE TABLE `wp_fv_fp_hls_access_tokens` ( `id` int NOT NULL AUTO_INCREMENT, `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `url` varchar(1024) NOT NULL, `client` varchar(1024) NOT NULL, `cookie` varchar(1024) NOT NULL, PRIMARY KEY (`id`), KEY `url` (`url`(768)), KEY `client` (`client`(768)) );
Will that work or will you get any error?
Thanks,
MartinHello Bruno,
Now the log shows the following:
Table ‘./engorged_wp/wp_fv_fp_hls_access_tokens’ is marked as crashed and should be repaired
So it seems that your server has crashed and it affected one of the FV Player tables. This could happen to any table, including the basic WordPress tables like wp_options, in that case your website would not load at all.
Please run the following SQL command on your database:
REPAIR TABLE wp_fv_fp_hls_access_tokens;
That will fix the issue. If you are not sure about how it’s done please ask your web server support or you can try to use this plugin to repair your database: https://wordpress.org/plugins/simple-database-repair/ I checked that plugin code an it seems good.
Thanks,
MartinSee attached file
Hello Bruno,
That’s weird as it keeps saying that it’s corrupted.
Please try to remove that table using your database management tool. If you have any kind of a control panel running on your web host there should be a way of listing the database tables and removing
wp_fv_fp_hls_access_tokens
.If you are not sure, you can ask your web host support.
I wonder if WordPress includes any code to auto-repair its tables these days. We should follow the same procedures with FV Player.
Thanks,
MartinHello,
ok f i give you admin access and cpanel accedss can you try to fix this once for all ? Because i feel like we’re wasting too much time trying this, then trying this, then trying this, then trying this… I mean i can hire someone to remove the database table if i’m sure it will fix the issue once for all. But if we’re still trying things maybe you should try everything directly.
Best regards
Hello Bruno,
We are happy to help you resolve the issue right on your website, we offer the paid service for hands-on support: https://foliovision.com/pro-support
If you have a backup of your website, you can run this query using a plugin like https://wordpress.org/plugins/sql-executioner/
DROP TABLE `wp_fv_fp_hls_access_tokens`
That will remove the table. I advise strongly to remove that plugin once it’s no longer needed.
We always try to make our plugin better and more resilient. I checked if WordPress has a way of fixing its tables and it does. But it only supports its own tables and cannot check a table of any plugin. And it’s not fully automated, you have to edit wp-config.php, so it’s not so easy.
But I added some code to let FV Player use that WordPress feature. I know that just repairing the table did not solve the issue for you, but it’s a good addition.
Thanks,
Martin