• 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

MP4 Video Quality Switching with different URL for each quality

Foliovision › Forums › FV Player › How to … › MP4 Video Quality Switching with different URL for each quality

  • Deewin 5 years ago

    Hello,

    I intend to buy FV Player Pro for working on self-hosted videos. I’m particularly interested in video quality switching.

    I have checked out the documentation [here https://foliovision.com/player/basic-setup/quality-switching ] but I’m wondering if the approach to quality switching could be made simple.

    As such, I do have the following questions.

    1. For example, what happens if the videos in question are not on the same directory nor have an almost similar URL?

    I can host the videos on a different video hosting platform. However, each MP4 file will have a unique URL.

    In some players that support Quality Switching, they do have slots where you can enter and label videos of different quality when setting up a video.

    Therefore, you can have unique video URLs hosted on different platforms and collate them to the player for quality switching.

    For example, take a look at the Multi-Resolutions feature of a video player that I’m using.

    2. Is it possible to encrypt URLs to prevent people from skimming through your website’s source code to extract the MP4 links and horde your server’s resources?

    quality-switcher
    Quality-Switcher
Viewing 12 replies - 1 through 12 (of 12 total)
  • Juraj Kacaba 5 years ago
    Avatar photo

    Hello Deewin,

    Thanks for reaching to us!

    To enable quality switching your videos need to be on the same URL as the guide that you’ve mentioned says.

    I can discuss our possibilities regarding this feature with our development team.

    Also, quality switching on FV Player works automatically without any flaws with different hosting options like Vimeo or AWS(HLS in general). We also strongly recommend to use AWS if you want to secure your video with encryption. AWS allows you to host, stream and encrypt your videos within one roof.

    Although setting up AWS services can seem quite complicated we offer really detailed documentation for our users.

    Let us know what do you think!

    Thanks,
    Juraj

    Thanks,
    Juraj

    Deewin 5 years ago

    Hello,

    Thanks for your response. The problem with Amazon Web Services is that it’s too expensive for video streaming. There are free hosting sites for videos and that come in handy.

    Also, I can opt to host videos on my servers. There are cheaper hosting services out there for video streaming too. The challenge is the lack of a video link encryption feature can lead to spammers or people stealing content to skim through the MP4 links and end up stealing your bandwidth.

    Hopefully, the quality switching feature and video source encryption feature can be added in the future. This plugin is great. Still setting up my site and I’ll buy it before the end of the month.

    Martin 5 years ago

    Helllo Deewin,

    I see that we could improve the quality switching to work the way you described. We already have multiple slots for different video sources, so we could make it work if each quality would match on of these quality prefixes, like -hd, -sd or -mobile. Making it totally independent would be a bigger project.

    However a HLS stream is a much more robust way of streaming video and currently we are mostly working on allowing a simple workflow for video posting which will include real stream encryption.

    The obsfucation of video URLs in the source code could work, it would be a handy feature. These URLs would still have to be decoded somewhere, but even if it happens in JavaScript it would make it so much harder to just parse the HTML for the video links.

    What I would recommend instead of that would be to restrict the referrers on your video hosting servers. That way you can block anybody who might try to hotlink your video.

    Thanks,
    Martin

    Deewin 5 years ago

    Hello Martin,

    Yes, you have captured the idea well. Actually, it’s not necessary to build the feature separately. As you say, the slots when creating new videos can serve that purpose.

    That’s what I thought it’s the function of those slots in the first place. If you can adjust that to work that way, then it will be a great. HLS streams are great.

    But for small publishers, developing or renting HLS servers is not cost-effective for a start. We have free video hosting platforms that can enable one to grab the MP4 links and use them.

    Deewin 5 years ago

    Hello Martin,

    If I upgrade to FV Player Pro, how long will it take to implement video quality switching based on your suggeted approach?

    Martin 5 years ago

    Hello Deewin,

    we could make it so that you would input the sources like this:

    https://my-streaming-server-1.com/course-1/lessons-1-hd.mp4
    https://my-streaming-server-2.com/course-1/lessons-1-sd.mp4
    https://my-streaming-server-3.com/course-1/lessons-1-mobile.mp4

    And then FV Player Pro would know how to offer these different files as different video qualities. While currently if you enter

    https://my-streaming-server-1.com/course-1/lessons-1-hd.mp4

    And enable Quality Switching, it expects to find:

    https://my-streaming-server-1.com/course-1/lessons-1-sd.mp4
    https://my-streaming-server-1.com/course-1/lessons-1-mobile.mp4

    It’s possible to improve this, but it adds a fair amount of complexity to our code.

    The solution which I would recommend for you is that if you have to use different servers for video streaming, then keep all the video qualities on that same server.

    Also, perhaps you can find a free tool to encode video into HLS streams. FFmpeg can do that for you for sure, but it’s a command line which not everybody can use (while others prefer it). You can host a HLS stream anywhere you like, you don’t need any special server or CDN for it. And on top of that you would be able to get quality switching with that even in the free FV Player.

    Thanks,
    Martin

    Deewin 5 years ago

    Hello,

    The first solution is great. The reason why this feature is great is because, the current quality switching requires files to be on the same directory and server and that is something I’d want to avoid at all costs.

    Also, the advantage of using different servers available for free makes it easy for me to benefit from free bandwidth. However, these free servers limit you from creating directories.

    I would have gone with HLS M3U8 but it’s a complex process, which I need to take time and learn and may be implement later at a later date. Therefore, having the first integration that you’ve described is great.

    By having such an integration, I can load the MP4 links from different servers; hence, reduce the risk of being banned for taking advantage of such services.

    Besides, it also makes it easy to reduce server loads. For example, I can have three different servers running on three different domains/subdomains to serve different video qualities just in case my bandwidth requirements exceeds the free video hosting services.

    For example, Server 1 can be for hosting MOBILE QUALITY, Server 2 for SD quality, and Server 3 for HD quality.

    If it can happen sooner then I’ll be so happy to upgrade and wait.

    Deewin 5 years ago

    By the way, if you can suggest easy Windows tools that I can use to create HLS streams, I’ll be glad to try it out. Otherwise, implementing it on the server side is technical for me at the moment.

    Martin 5 years ago

    Hello Deewin,

    I will have to check your feature request with Alec. Yesterday I could imagine this as an useful addition, but now it seems to me it will just make FV Player code more complex, while we are working on improving the workflow for HLS encoding, which makes this quality switching feature less interesting.

    We could do it as a custom programming job for your website, but we would have to guareantee it will keep working, so it’s really not that easy.

    Thanks,
    Martin

    Deewin 5 years ago

    Hello Martin,

    Thanks for your dedication. I have managed to sit down checked out how to create HLS streams and after trial and error in the past few hours, I have managed to nail it. I think I will use it. Let me continue refining it for now until I master how to use the feature effectively. Thank you so much.

    Martin 5 years ago

    Hello Deewin,

    please let us know how are you creating these HLS streams if you have a moment. I only found some tutorials which used the command line ffmpeg: https://docs.peer5.com/guides/production-ready-hls-vod/

    Thanks,
    Martin

    Deewin 5 years ago

    Hello,

    There’s a video converter called Pavtube. It does the conversion and all I do is uploaded the videos to my sever. Checked the HLS streams using validation tools and zero errors showed up.

    I have managed to stream the HLS streams perfectly using FV Player. Currently, I working on how to make the streams available in the public. My server is blocking all requests for the HLS streams despite enabling CORS.

Viewing 12 replies - 1 through 12 (of 12 total)
Reply To: MP4 Video Quality Switching with different URL for each quality



Please Sign in or Register to upload files.

Related Posts

  1. Quality Switching

  2. Setting Up Video Quality Switching

  3. Switching FV Player Pro to Beta

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!