• Skip to content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

Main navigation

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty

I am getting the error hlsjs-lite: Video not properly encoded error.

Foliovision › Forums › FV Player › Bug Reports › I am getting the error hlsjs-lite: Video not properly encoded error.

  • Keshart 1 year, 6 months ago

    I am getting the error hlsjs-lite: Video not properly encoded error. It was working well for a few hours and then all of a sudden it has started throwing this error.

Viewing 17 replies - 1 through 17 (of 17 total)
  • Keshart 2 years ago

    You can view the error at https://drawdaily.com/testing

    Martin 2 years ago

    Hello Keshart,

    If you are serving HLS streams from a video CDN which requires the URL token you have to enable the Stream Loader: https://foliovision.com/player/video-security/video-protection-methods/signed-urls-hls-protection

    Please let us know if it won’t help.

    Thanks,
    Martin

    Keshart 2 years ago

    I checked the setting mentioned in the url Its already enabled

    Martin 2 years ago

    Hello Keshart,

    Is keshartwebsitebucket configured in wp-admin -> FV Player -> Settings -> Hosting -> Amazon S3 Protected Content? It should have Region, Access Key ID and Secret Access Key as seen in our guide: https://foliovision.com/player/video-hosting/amazon-s3-guide

    Thanks,
    Martin

    Keshart 2 years ago

    Thanks for the reply martin we are not using s3 to host videos we are using digital ocean and the settings for the same have been done and verified properly

    Martin 2 years ago

    Hello Keshart,

    I see, I was checking the first video on https://drawdaily.com/testing/ – that one loads from AWS S3.

    I see that the other two videos are hosted on DigitalOcean Spaces and they don’t play. There is some issue with the decryption key for the HLS stream.

    Please go to wp-admin -> FV Player -> Settings and then apped &debug to the URL. So it should look like this:

    https://your-website.com/wp-admin/options-general.php?page=fvplayer&debug

    Then look at “Encrypted HLS tokens” box in the “Tools” tab. It should list your IP.

    Try to play one of your encypted video on your test page, then reload your wp-admin -> FV Player -> Settings page with the “Encrypted HLS tokens” box and see what shows up in it. You might see a playback request coming in from some other IP address.

    I’m attaching a screenshot of what that box looks like when it has some information in it.

    Thanks,
    Martin

    fv-player-pro-encrypted-hls-tokens
    fv-player-pro-encrypted-hls-tokens
    Keshart 2 years ago

    Thanks for thre reply martin,
    So the ip address shown in the your ip and the ip address shown in the client column do not match. Just for context i am running the wordpress website on aws cloudfront that is attached to a load balancer which has multiple machines. Can this be the cause of the issue?

    Martin 2 years ago

    Hello Keshart,

    Yes, using multiple web servers would cause this issue.

    Can the load balancer be set to keep routing a single user to the same web server?

    Thanks,
    Martin

    Keshart 2 years ago

    That defeats the purpose of using a load balancer right . For the amount of traffic the website receives we need to use atleast 3 servers. And the load balancer cannot be configured in a way where we can specify a user to be routed to the same server. Does this mean we cannot use fv player in a load balancer configuration with multiple servers under it?

    Martin 2 years ago

    Hello Keshart,

    You can use FV Player, the problem is only with the encrypted HLS streams.

    These use the wp_fv_fp_hls_access_tokens database table, so if you also have 3 database servers it’s going to be cause issues as the encrypted HLS playback might register on one database server and then the playback will be handled by some other.

    Do you have a way of sharing that database table among all the web servers, or any other mechanism of shared storage like Redis or Memcached?

    Thanks,
    Martin

    Keshart 2 years ago

    There are 3 webservers in the sense there are 2 cpus and 3 rams but there is only one single database that is shared among these 3 and the storage is also shared storage as in a single hdd

    Martin 2 years ago

    Hello Keshart,

    If there is a single database then it should all work. You said:

    So the ip address shown in the your ip and the ip address shown in the client column do not match.

    Is any of these IP addresses your actual IP address? Or is it the address of the load balancer or one of the servers?

    Thanks,
    Martin

    Keshart 2 years ago

    The IP address is not from any of the machines or the load balancer or my own IP that is what has me confused. It keeps changing everytime i refresh it and i tried to match it with the ip address of the servers and load balancer and it did not match. It did not match my what is my ip too

    Martin 2 years ago

    Hello Keshart,

    So the real problem here seems to be that FV Player Pro fails to detect your IP address properly.

    We use the IP address provided by PHP (REMOTE_ADDR) or what’s in the CF_CONNECTING_IP HTTP header.

    Please install the “WP-ServerInfo” plugin for a minute and check in wp-admin -> Dashboard -> WP-ServerInfo -> Display PHP Information -> scroll down to “Apache Environment” and see if you can see your actual IP anywhere. There might be a HTTP_... variable that has it.

    You can try to look it up on that page using the browser page search too (Ctrl + F or Command + F).

    Thanks,
    Martin

    Keshart 1 year ago

    I caanot see my servers public ip address anywhere in the configuration

    Martin 1 year ago

    Hello Keshart,

    What you need to see if your client IP, not the server one.

    It seems to me you need to configure your load balancer setup to pass the client IP to the web servers properly. Unless it’s already there.

    FV Player Pro could be set to not use IP address for encrypted HLS streams, but that would lower the protection. I did not suggest that yet as it seems to me you should be able to get client IPs to show for PHP.

    Thanks,
    Martin

    Keshart 1 year ago

    Ill see what i can do and get back to you

Viewing 17 replies - 1 through 17 (of 17 total)
Reply To: I am getting the error hlsjs-lite: Video not properly encoded error.



Please Sign in or Register to upload files.

Related Posts

  1. Error message on enrypted videos : hlsjs-lite video not properly encoded

    Error message on enrypted videos : hlsjs-lite video not properly encoded

  2. hlsjs-lite: Video not properly encoded

    hlsjs-lite: Video not properly encoded

  3. FVPlayer-Coconut, DigitalOcean, Bunny: hlsjs-lite video not properly encoded

    FVPlayer-Coconut, DigitalOcean, Bunny: hlsjs-lite video not properly encoded

Primary Sidebar

Sign in Register
FV Player Docs Post New Topic

Welcome

to Foliovision support forums! We'll be happy to provide free support to resolve all the reported bugs. You always can start by specifying your OS and browser and steps to reproduce the bug.

If you need help with the installation on your site, please submit a request for a Pro Support Incident. We'll have you up and running in no time, with detailed instructions on how to resolve your issue yourself in the future.

Facing a hard to solve WordPress problem? On a tight deadline?

Let us take care of it for you
right now.

Pro Support Buy FV Player

Footer

Our Plugins

  • FV WordPress Flowplayer
  • FV Thoughtful Comments
  • FV Simpler SEO
  • FV Antispam
  • FV Gravatar Cache
  • FV Testimonials

Free Tools

  • Pandoc Online
  • Article spinner
  • WordPress Password Finder
  • Delete LinkedIn Account
  • Responsive Design Calculator
Foliovision logo
All materials © 2025 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
  • This Site Uses Cookies
  • Privacy Policy
  • Terms of Service
  • Site Map
  • Contact
  • Tel. ‭+421 2/5292 0086‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!