Skip to content

About Video Upload

Daniel Neto edited this page Mar 18, 2024 · 42 revisions

For this, you have 4 options

  1. Encode video and audio *
  2. Upload an MP4 or WebM video *
  3. Embed a video link *
  4. From Third-party (Instructions)

*Enable/Disable on CustomizeAdvanced plugin

To find those options click on the Camera Icon on the top right on the navbar.

AVideo: Pros and Cons of Different Video Types

AVideo offers multiple methods for users to include video content on their platform. Each method has its own advantages and disadvantages. Understanding these can help users make the most informed decision based on their needs and resources.

1. Encode Video and Audio (recommended)

Pros:

  • Full Control: You have complete control over video access and availability.
  • Customization: Allows for potential customization of video quality, format, and other encoding parameters.
  • Optimized Playback: Encoded files ensure correct codec usage for optimal web playback and device compatibility.

Cons:

  • Hosting Costs: Since you're self-hosting, there are costs associated with storage and bandwidth.
  • Resource Intensive: Encoding is time-consuming and can heavily consume CPU resources.

2. Upload an MP4 or WebM Video

Pros:

  • Immediate Availability: No need to wait for encoding; videos are available as soon as they're uploaded.
  • Full Control: You have control over video access and availability.
  • Resource Savings: No CPU-intensive encoding process is needed.

Cons:

  • Hosting Costs: Hosting MP4 or WebM files means you'll be paying for the storage and bandwidth.
  • Potential Compatibility Issues: Direct uploads do not guarantee the use of the correct codec. This can result in playback issues on some devices or browsers.

3. Embed a Video Link

Pros:

  • Cost-Efficient: In most cases, you won't need to pay for storage or bandwidth since the video is hosted externally.
  • Quick Integration: Embedding is quick and doesn't require encoding, saving time and CPU resources.

Cons:

  • Dependent on External Sources: You don't have control over video access and availability. If the external source removes or alters the video, your embedded link will be affected.
  • Potential Limitations: Some platforms might have restrictions on embedded content, like playback limits or ads.

Additional Considerations:

  • Embedding TV Channel Video Links: Beyond embedding standard video links, it's also possible to embed a TV channel video link. This usually refers to a 24/7 live link streaming a TV channel, providing continuous content. It's essential to ensure that such a link is stable and from a reliable source since it impacts the continuous viewing experience.
  • Electronic Program Guide (EPG) XML Link: Accompanying the video link, you can also embed an EPG XML link, following the XMLTV Format (https://wiki.xmltv.org/index.php/XMLTVFormat). This provides viewers with a schedule or program guide, enhancing the viewing experience by letting them know what content is currently playing and what's coming up next.
  • Source of TV Link and EPG: It's important to note that AVideo does not create the TV link or the EPG. These must be provided by a third-party company. When selecting a provider, consider reliability, quality of service, and compatibility with your embedding requirements.

Remember, the choice between encoding, direct uploads, or embedding largely depends on specific needs and available resources. Making an informed decision will ensure the best viewer experience.

Other formats

We also support you to submit, PDFs, Images (GIF, PNG, JPG, Webp), and MP3 files.

Also instead of submitting files, you can use the Article option so you can directly edit the text in the videos manager area, and this content will be displayed as a video.

Who can Upload

  1. Only Admin
  2. Admin and Any authenticated User
  3. Only Admin and selected users

By default, only Admin can upload videos. However, in the site configuration menu, there is an option to allow any authenticated user to upload videos. If this option is enabled, regular users who have permission to upload videos will have their own channel and can manage their own videos. Admins, on the other hand, can manage all the videos on the site.

chrome-capture (1)

Alternatively, you can disable this option and select only the user(s) you want to allow to upload videos. To do this, go to the Admin Menu -> Users and mark the option to let them upload videos.

Give upload permission manually

chrome-capture

Information

Always give preference to using the encoder.

With the encoder you will have different resolutions of the video, the initial image (poster) and animated GIF will be extracted automatically. in addition to the encoder, we will ensure that your MP4 file uses the correct codec.

Direct Upload

The direct upload of an MP4 file does not guarantee that you are using a codec compatible with the current browsers and you will only have the resolution sent from the file, is very common to see directly uploaded files fail on some devices like mobile or in some browsers.

Enable Direct File Upload

If you are sure you want to directly upload your own MP4 files you can enable it by unchecking the doNotShowUploadMP4Button on the customizeAdvanced plugin

image

Resolutions

Automatic Resolutions (Default and Recommended)

With the automatic HLS encoding activated, AVideo will automatically convert your video to the following resolutions:

Resolution Best for Information
2160p (4K) 🎬 High-end devices, large screens Ultra-high definition, most detailed and clear video
1440p (2K) 🎬 Gaming and VR videos, professional settings High definition, very detailed and sharp video
1080p (FHD) 🎬 General videos, streaming services Full high definition, clear and detailed video
720p (HD) 🎬 Online videos, embedded videos High definition, good for smaller screens
540p 📺 Online videos, mobile devices Standard definition, reasonable quality for smaller screens
480p 📺 Online videos, low bandwidth connections Standard definition, lower quality video
360p 📺 Older devices, low bandwidth connections Low definition, can appear pixelated on larger screens
240p 📺 Very old devices, extremely low bandwidth connections Very low definition, very pixelated video

To ensure we do not waste disk space and bandwidth, we will examine the file source before encoding and will not upconvert the video. For example, if you upload a 720p video, we will only convert it into 720p, 480p, 360p, and 240p. This guarantees the best experience for your users, as even those with slower connections will be able to play a 240p video. It also ensures that we do not waste your resources on unnecessary encoding.

Video Format

MP4

MP4 is the most compatible format. To switch resolutions on this format, you will need the VideoResolutionSwitcher plugin which can be purchased on the Marketplace.

In some cases, the MP4 format will be necessary.

Storage

MP4 format can be used with all types of storage including Local, FTP, S3, B2, and YPTStorage.

HLS (Recommended)

HLS is the most secure and modern format that prevents video download (DRM). It also offers adaptive bitrate features that help you avoid video buffering while watching. To enable this format, you will need the VideoHLS Plugin.

However, please note that screen capture cannot be prevented.

Storage

Because the HLS format can generate thousands of small files, the storage type is limited to Local, YPTStorage, and CDN storage (Recommended). We recommend using a storage option that supports the HLS format, as other storage types may not be able to handle the large number of files generated.

Limitations

RAM Memory

The script has a calculation that limits your maximum file size to only 50% of your RAM memory because the script needs to copy files between locations and handle them on virtual memory.

For example, if you want to upload a 4GB file, you will need at least 8GB of RAM on the server, otherwise, you will receive a Memory Leaks - Allowed memory size of # bytes exhausted error.

Clone this wiki locally