Facebook Twitter Instagram YouTube LinkedIn WhatsApp
    Facebook Twitter Instagram LinkedIn WhatsApp
    ZaveRizwanZaveRizwan
    Subscribe
    • Home
    • Features
      • Example Post
      • Typography
      • Contact
      • View All On Demos
    • Mobiles
    • Typography
    • Mobiles
      • Tech
      • Gadgets
      • Insights
    • Buy Now
    ZaveRizwanZaveRizwan
    HTTP Push

    How to generate VTT file for preview thumbnail?

    zaiveeBy zaiveeFebruary 6, 2023No Comments2 Mins Read

    VTT files are commonly used for preview thumbnails. When a viewer hovers the control bar, these thumbnails are displayed in a tooltip. This allows for quick scanning and navigating of longer-form content. a sample image is attached below.

     

    Here is an example VTT file. It belongs to a 2 minutes video, for which 6 preview thumbnails are included:

     

    How to generate a VTT file for my VOD files?

    You can generate a VTT file along with a thumbnail image while video transcoding. We have implemented the Sprite option in video encoding for generating the VTT file. Please follow the steps,

    Step 1

    Configure the video Transcoding profile.

    • Login to 5centsCDN control panel.
    • Go to Video Encoding.
    • Select the option Global Preset Profile/Filters.
    • On the redirected page, you can create a new video encoding profile or you can edit your existing profile.
    • In profile settings, go to Thumbnail Settings.
      • Mode: Select mode as Sprite.
      • Interval: Set an interval time. The screenshots will be taken based on the interval time and it will be specified in a single JPG file along with a VTT file. We recommend setting at least 1/5th of the video duration as interval time. for example, if the video has 100 seconds duration then the interval should be 20 seconds. 
    • Click the Save button.

    Please refer to this video for more information

    https://www.5centscdn.net/help/wp-content/uploads/2022/06/sprite.mp4

     

    Step 2

    Encode the VOD file using the file encoding profile and copy the URLs from the console.

    • Go to VOD/HTTP Push zone.
    • Click the Manage button of your Push zone.
    • On the redirected page, Click File Manager & Transcoding.
    • Now you can upload the files to the file manager.
    • Click the file name and then click the Transcoding icon.
    • Select the Transcoding profile(We have set up the profile in step 1) and click the ADD button.
    • Once the transcoding job is completed, you can check the file manager. You will get transcoded MP4 file along with a thumbnail image(PNG) and a VTT file for the preview thumbnail.

    Please refer to this video for more information.

    https://www.5centscdn.net/help/wp-content/uploads/2022/06/vttgeneration.mp4

     

    Now you can collect the video playback URL, VTT file URL, and Thumbnail URL from the console and embed them on your player. In the case of the VideoJS player, you can use this Plugin

     

     

    Related Posts

    How to use subtitles for my MP4 file in the push zone?

    February 6, 2023

    How to move uploaded files into a folder?

    February 6, 2023

    Is there any way to take my videos from Google Drive?

    February 6, 2023
    Add A Comment

    Leave A Reply Cancel Reply

    © 2023 ZaveRizwan. Designed by ZaveRizwan.
    • Home
    • Tech
    • Gadgets
    • Mobiles
    • Buy Now

    Type above and press Enter to search. Press Esc to cancel.