VOD streaming
    • PDF

    VOD streaming

    • PDF

    Article Summary

    Available in Classic and VPC

    If you've completed creating a channel for VOD streaming and linkage settings with the CDN platform, you can play content with a playback path URL to check the implementation status of your streaming service. You can set up the playback's start point and end point to apply file trimming or subtitles.

    Caution
    • Do not use the same file name when you're replacing a source media file in service. If you must use the same file name, perform a CDN purge after at least 10 minutes after replacing the file to remove the cached existing content.
    • If there are characters such as #, $, and ; included in the original file name, you cannot play protocol through the playback path URL. Be careful with the special characters on the original file name.
    • VOD Station supports audio streaming, and you must use m4a files encoded through VOD Station or m4a files that meet the VOD Station Channel input specifications.
      • For VOD Station Channel input specifications, see the user guide.
    • m4a recording files created in Live Station are segment files and do not support VOD Streaming, making playback impossible.

    Check playback path URL

    The structure for a playback path URL used in VOD Station is as follows.

    SchemeCDN domainStreaming protocolFile nameManifest
    https://example.cdn.ntruss.com/hls
    /dash
    /example/example.mp4/index.m3u8
    /manifest.mpd
    URL SchemePlayback CDN domainStreaming protocol of the created channelObject Storage Name of the media file to be played, including bucket and folder pathManifest file for streaming

    CDN playback path URL

    If you've created a CDN when creating a channel, you can play it by referring to the CDN playback path URL in the channel information. Select a channel to play in the channel list, click the [Channel information] button, and check the URL from the information popup window's CDN playback path area.

    • URL Template: https://example.cdn.ntruss.com/[protocol]/[encryptedBucketName]/[path]/[video filename]/[manifest]

    CDN Playback path URL separately created

    If you haven't created a CDN together with a channel, but you created one separately, the channel information won't show the CDN playback path URL. Check the created 'CDN s service domain from the CDN list, and replace the [cdnDomain] part in the URL template to play the content.

    • URL Template: https://[cdnDomain]/[protocol]/[encryptedBucketName]/[path]/[video filename]/[manifest]

    Create playback path URL

    If you've created a Global Edge when creating a channel, you can automatically create a CDN playback path URL for each content. To create a playback path URL, follow these steps:

    1. In the NAVER Cloud Platform console, click the Services > Media > VOD Station menus in order.
    2. Click the Channel menu, and select a channel from the channel list.
    3. From the channel's content list, click the [Create HLS URL] or [Create DASH URL] button of the content for which you want to create the automatic URL.
      • You'll be directed to the created URL, and the content will be played.

    Content playback

    You can play a channel's content to check the implementation status of your VOD streaming service. Play content referring to the following example.

    Single bitrate playback

    • Since the file existing without a separate folder under the vod-5100k.mp4 playback
      bucket in the guide bucket is played, omit the [path] part of the URL Template.
      URL Template: https://[cdnDomain]/[protocol]/[encryptedBucketName]/[path]/[video filename]/[manifest]
      • HLS: https://example.cdn.ntruss.com/hls/guide/vod-5100k.mp4/index.m3u8
      • DASH: https://example.cdn.ntruss.com/dash/guide/vod-5100k.mp4/manifest.mpd
    • Add the folder name of the bucket to the [path] part of the vod-5100k.mp4 playback
      URL Template in the 1-depth folder in the guide bucket.
      URL Template: https://[cdnDomain]/[protocol]/[encryptedBucketName]/[path]/[video filename]/[manifest]
      • HLS: https://example.cdn.ntruss.com/hls/guide/1-depth/vod-5100k.mp4/index.m3u8
      • DASH: https://example.cdn.ntruss.com/dash/guide/1-depth/vod-5100k.mp4/manifest.mpd

    Adaptive bitrate playback

    Media files to be played with adaptive bitrate should all be located in the same folder.

    • Use comma (,) as the classifier for each file in the guide bucket, such as vod-5400k.mp4, vod-2400k.mp4, vod-1200k.mp4,
      vod-0900k.mp4, vod-0600k.mp4, vod-0300k.mp4 playback prefix, and suffix. Add .smil classifying that it is an abr request after the suffix.
      Media file's prefix: vod-
      media file’s suffix: k.mp4
      URL Template: https://[cdnDomain]/[protocol]/[encryptedBucketName]/[path]/[prefix],[video filenames],[suffix].smil/[manifest]
      • HLS: https://example.cdn.ntruss.com/hls/guide/abr/vod-,5400,2400,1200,0900,0600,0300,k.mp4.smil/master.m3u8
        (Use master.m3u8, not index.m3u8, as the manifest when making HLS requests.)
      • DASH: https://example.cdn.ntruss.com/dash/guide/abr/vod-,5400,2400,1200,0900,0600,0300,k.mp4.smil/manifest.mpd
    • If playback file names of vod-0600k.mp4, vod-0300k.mp4, and svod-360p.mp4 in the guide bucket are different,
      place a space between the prefix and suffix, and add a comma (,).
      Media file's prefix: none
      media file’s suffix: none
      URL Template: https://[cdnDomain]/[protocol]/[encryptedBucketName]/[path]/[prefix],[video filenames],[suffix].smil/[manifest]
      • HLS: https://example.cdn.ntruss.com/hls/guide/abr/,vod-0600k.mp4,vod-0300k.mp4,svod-360p.mp4,.smil/master.m3u8
      • DASH: https://example.cdn.ntruss.com/dash/guide /abr/,vod-0600k.mp4,vod-0300k.mp4,svod-360p.mp4,.smil/manifest.mpd

    Crop media file

    You can specify playback points in a media file and use the cropping feature.

    Specify playback start point

    The following example demonstrates how to play a file by specifying a VOD's playback start point (vodStart) at 10 seconds. The time unit is millisecond (1 second = 1000 milliseconds). The file crop option is located behind [protocol]/[encryptedBucketName].

    • Single bitrate playback
      URL Template:
      https://[cdnDomain]/[protocol]/[encryptedBucketName]/vodStart/[time]/[path]/[video filename]/[manifest]
      • HLS: https://example.cdn.ntruss.com/hls/Bxpv-g0eEp-Gu4pCSAHOPQ__/vodStart/10000/guide/1-depth/vod-5100k.mp4/index.m3u8
      • DASH: https://example.cdn.ntruss.com/dash/Bxpv-g0eEp-Gu4pCSAHOPQ__/vodStart/10000/guide/1-depth/vod-5100k.mp4/manifest.mpd
    • Adaptive bitrate playback
      URL Template:
      https://[cdnDomain]/[protocol]/[encryptedBucketName]/vodStart/[time]/[path]/[prefix],[video filenames],[suffix].smil/[manifest]
      • HLS:
        https://example.cdn.ntruss.com/hls/Bxpv-g0eEp-Gu4pCSAHOPQ__/vodStart/10000/guide/abr/vod-,5400,2400,k.mp4.smil/master.m3u8
      • DASH:
        https://example.cdn.ntruss.com/dash/Bxpv-g0eEp-Gu4pCSAHOPQ__/vodStart/10000/guide/abr/vod-,5400,2400,k.mp4.smil/manifest.mpd

    Specify playback end point

    The following example demonstrates how to play a file by specifying a VOD's playback end point (vodEnd) at 10 seconds. The time unit is millisecond (1 second = 1000 milliseconds). The file crop option is located behind [protocol]/[encryptedBucketName].

    • Single bitrate playback
      URL Template:
      https://[cdnDomain]/[protocol]/[encryptedBucketName]/vodEnd/[time]/[path]/[video filename]/[manifest]
      • HLS: https://example.cdn.ntruss.com/hls/Bxpv-g0eEp-Gu4pCSAHOPQ__/vodEnd/10000/guide/1-depth/vod-5100k.mp4/index.m3u8
      • DASH:
        https://example.cdn.ntruss.com/dash/Bxpv-g0eEp-Gu4pCSAHOPQ__/vodEnd/10000/guide/1-depth/vod-5100k.mp4/manifest.mpd
    • Adaptive bitrate playback
      URL Template:
      https://[cdnDomain]/[protocol]/[encryptedBucketName]/vodEnd/[time]/[path]/[prefix],[video filenames],[suffix].smil/[manifest]
      • HLS: https://example.cdn.ntruss.com/hls/Bxpv-g0eEp-Gu4pCSAHOPQ__/vodEnd/10000/guide/abr/vod-,5400,2400,k.mp4.smil/master.m3u8
      • DASH: https://example.cdn.ntruss.com/dash/Bxpv-g0eEp-Gu4pCSAHOPQ__/vodEnd/10000/guide/abr/vod-,5400,2400,k.mp4.smil/manifest.mpd

    Specify playback start and end points

    The following example demonstrates how to play a VOD file between the 1-minute and 2-minute points (vodStart, vodEnd). The time unit is millisecond (1 second = 1000 milliseconds). The file crop option is located behind [protocol]/[encryptedBucketName].

    • Single bitrate playback
      URL Template:
      https://[cdnDomain]/[protocol]/[encryptedBucketName]/vodStart/[time]/vodEnd/[time]/[path]/[video filename]/[manifest]
      • HLS:
        https://example.cdn.ntruss.com/hls/Bxpv-g0eEp-Gu4pCSAHOPQ__/vodStart/60000/vodEnd/120000/guide/1-depth/vod-5100k.mp4/index.m3u8
      • DASH:
        https://example.cdn.ntruss.com/dash/Bxpv-g0eEp-Gu4pCSAHOPQ__/vodStart/60000/vodEnd/120000/guide/1-depth/vod-5100k.mp4/manifest.mpd
    • Adaptive bitrate playback
      URL Template: https://[cdnDomain]/[protocol]/[encryptedBucketName]/vodStart/[time]/vodEnd/[time]/[path]/[prefix],[video filenames],[suffix].smil/[manifest]
      • HLS:
        https://example.cdn.ntruss.com/hls/Bxpv-g0eEp-Gu4pCSAHOPQ__/vodStart/60000/vodEnd/120000/guide/abr/vod-,5400,2400,k.mp4.smil/master.m3u8
      • DASH:
        https://example.cdn.ntruss.com/dash/Bxpv-g0eEp-Gu4pCSAHOPQ__/vodStart/60000/vodEnd/120000/guide/abr/vod-,5400,2400,k.mp4.smil/manifest.mpd

    Subtitle settings

    You can apply subtitles to video content to be released. The following subtitle formats are supported.

    InputOutput
    VTT, SRT, DFXP, TTML, CAPVTT

    Specify location of video and subtitle files

    The location of video and subtitle files is based on the [path] before the comma (,) where the ABR URL begins.
    https://example.cdn.ntruss.com/[protocol]/[encryptedBucketName]/[path]/,[video files],lang/[lang code]/[subtitle filename],.smil/master.m3u8

    The video and subtitle files should be located under /[path].

    Subtitle language settings

    Language separation is classified as [lang code] within the URL.
    https://example.cdn.ntruss.com/[protocol]/[encryptedBucketName]/[path]/,[video files],lang/[lang code]/[subtitle filename],.smil/master.m3u8

    Note

    Language code name must be 3 letters with ISO 639-3. See ISO639-3 code list.

    Subtitle usage

    • Single bitrate, single subtitle
      URL Template: https://[cdnDomain]/[protocol]/[encryptedBucketName]/[path]/,[video file],lang/[lang code]/[subtitle filename],.smil/[manifest]
      • HLS: https://example.cdn.ntruss.com/hls/guide/,vod-5100k.mp4,lang/kor/sample.vtt,.smil/master.m3u8
      • DASH: https://example.cdn.ntruss.com/dash/guide/,vod-5100k.mp4,lang/kor/sample.vtt,.smil/manifest.mpd
    • Single bitrate, multiple language subtitle
      URL Template: https://[cdnDomain]/[protocol]/[encryptedBucketName]/[path]/,[video file],lang/[lang code]/[subtitle filename],lang/[lang code]/[subtitle filename],...lang/[lang code]/[subtitle filename],.smil/[manifest]
      • HLS: https://example.cdn.ntruss.com/hls/guide/,vod-5100k.mp4,lang/kor/samplek.vtt,lang/eng/sample-en.vtt,.smil/master.m3u8
      • DASH: https://example.cdn.ntruss.com/dash/guide/,vod-5100k.mp4,lang/kor/sample-k.vtt,lang/eng/sample-en.vtt,.smil/manifest.mpd
    • Multi-bitrate, multi-language subtitle
      URL Template: https://[cdnDomain]/[protocol]/[encryptedBucketName]/[path]/,[video files],lang/[lang code]/[subtitle filename],lang/[lang code]/[subtitle filename],...lang/[lang code]/[subtitle filename],.smil/[manifest]
      • HLS: https://example.cdn.ntruss.com/hls/guide/,vod-5100k.mp4,vod-2400k.mp4,lang/kor/sample-k.vtt,lang/eng/sample-en.vtt,.smil/master.m3u8
      • DASH: https://example.cdn.ntruss.com/dash/guide/,vod-5100k.mp4,vod-2400k.mp4,lang/kor/sample-k.vtt,lang/eng/sample-en.vtt,.smil/manifest.mpd

    Security settings

    Use Signed URL token settings of Global Edge to enhance security for media files.
    You can set the Signed URL by referring to Global Edge Signed URL user guide.


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.