• Resolved duts2020

    (@duts2020)


    Hi,
    Lately, when you add .mp4 file to the WordPress (Library section) the file is going through the encoding process and the end result is .master.m3u8. This has been implemented recently. I tried adding this video directly from the library using Elementor’s video block and this format is not recognized.
    I will appreciate if you can provide instructions on how to deal with this.
    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    It sounds like the issue is with the file you’re trying to upload.

    Unfortunately, we have no control over the Media Library settings, which are controlled by WordPress. Any media file added using the Elementor widget should be uploaded through the Media Library.

    Therefore, I recommend you to contact their support to get a better perspective on the issue.

    Thread Starter duts2020

    (@duts2020)

    Hi michellei,
    I had a chance to talk to WordPress’ customer support regarding this issue. Lately, they have been having issues with .mp4 after encoding. Files loose sound after encoding and in order to fix it they switched to .m3u8 format.
    I am unable to add video file from my Library using your video block because this particular format is not supported.
    It is my understanding that you either have to add the support for .m3u8 format or post a workaround guidelines which would help in this situation. For now, I can’t use Elementor’s video block to add files from my library with .m3u8 format.
    You can reach WordPress’ customer service department for more info regarding this.

    Ambyomoron

    (@josiah-s-carberry)

    I note that the following code enables the uploading of svg files:

    function add_file_types_to_uploads($file_types){
    $new_filetypes = array();
    $new_filetypes['svg'] = 'image/svg+xml';
    $file_types = array_merge($file_types, $new_filetypes );
    return $file_types;
    }
    add_filter('upload_mimes', 'add_file_types_to_uploads');

    I wonder if something similar would enable the video files you want to upload, or if something more would be required:

    function add_file_types_to_uploads($file_types){
    $new_filetypes = array();
    $new_filetypes['m3u8'] = 'application/x-mpegURL';
    $file_types = array_merge($file_types, $new_filetypes );
    return $file_types;
    }
    add_filter('upload_mimes', 'add_file_types_to_uploads');

    Or maybe adding to wp-config.php

    define( 'ALLOW_UNFILTERED_UPLOADS', true );

    will help. But see https://www.ads-software.com/support/article/roles-and-capabilities/

    Finally, maybe plugins designed to extend allowable uploads might help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unable to add video using .master.m3u8’ is closed to new replies.