HTML5 audio/video to MP4 filter

Filters ::: filter_html5avtomp4
Maintained by Nicolas Dunand
This filter allows the automated creation of MP4 sources for HTML5 and elements.
Latest release:
175 sites
59 downloads
17 fans
Current versions available: 1

Moodle HTML5 audio/video to MP4 filter

This filter allows the automated creation of MP4 sources for HTML5 <audio> and <video> elements.

This is particularly useful if some users are using atto_recordrtc because most browsers create ogg files for audio and webm files for video, which are not playable in Safari.

This plugin then check for the existence of an mp4 source and provides it automatically if it exists. In the case the mp4source does not exist, it is created via a scheduled task.

Requirements

A working ffmpeg installation, and the correct path to be set in the plugin settings.

In Debian-like GNU/Linux environments, ffmpeg can be installed by issuing the following command:

apt-get install ffmpeg

Installation

You need to at least:

  1. install ffmpeg (see above),
  2. set the pathtoffmpeg in the plugin settings.

Optionnally you can:

  • change the other plugin settings as required,
  • tweak the execution times of the scheduled task running the file conversions.

Hints:

  • Read https://docs.moodle.org/en/Managing_filters how to activate and order filters.
  • The order in which the HTML5 audio/video to MP4 filter is placed has an effect on its correct working (whether it converts or not).
  • The filter HTML5 audio/video to MP4 filter should be placed at least before filters Convert URLs into links and images and Multimedia plugins.

Issues

Report issues on https://github.com/ndunand/moodle-filter_html5avtomp4/issues .


Screenshots

Screenshot #0

Contributors

Nicolas Dunand (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Whakaaturia ngā tākupu
  • Plugins bot
    Mer, 7 Pipi 2019, 4:52 PM
    Approval issue created: CONTRIB-7741
  • Roland Sherwood
    Tū, 26 Kohi 2021, 3:36 PM
    Magnificent plugin! - you deserve a medal for creating and sharing this! Only one issue to watch out for, which is where this filter comes in the the order of filters listed at the site level (it needs to be above the multimedia and covert links... ones); but, otherwise, it works like magic. Thank you again!
  • Nicolas Dunand
    Tū, 26 Kohi 2021, 3:38 PM
    Thanks Roland for your feedback. Thanks also for your comment about other filters order; this point has been noticed days ago and will be added to the setup information file.
  • Roberto Bellamy
    Tū, 23 Hui 2021, 11:48 PM
    We have a forum open where students intervene with videos and Apple Safari users cannot see these videos. Does it support 3.10? If not, the alternative would have to be to recommend the installation of a browser other than Safari. Thanks
  • Nicolas Dunand
    Hin, 1 Pou 2021, 9:27 PM
    Roberto,
    It should work without issue on Moodle 3.10 but has only been thoroughly tested on Moodle 3.7 to 3.9 yet.
  • Oam
    Tū, 22 Hui 2022, 1:00 AM
    Hi,
    Thank you for this plugin, it is very useful for us !
    Can you explain what "scheduled task system" is used by the plugin ?
    Because the plugin works on our moodle test (I mean m4a files are created) but the cron is not active on this Moodle.

    We have 7000 ogg files on our moodle. How can we convert all the files ? Do we have to open all pages with all the 7000 ogg files to activate converting ?

    (Moodle 3.10)
  • John Love
    Tū, 29 Rangi 2022, 3:22 AM
    We've tried to see if this plugin works under 4.1, and it seems to just disable itself.
    Does anyone know if there are plans for compatibility under Moodle 4.x?
  • Sergio Mazzarelli
    Par, 12 Kohi 2023, 3:34 PM
    Has this issue been solved? Does the plugin work with Moodle 4.1?
    Thank you.
  • John Love
    Tū, 6 Pipi 2023, 1:57 AM
    Following up on my November 2022 question, I can now confirm that this plugin *does* work on Moodle Moodle 4.1.3+ (Build: 20230427).
    In our case, OGG audio files created by RecordRTC do get automatically converted to M4A files.

    (I wish there was a way to change the audio tag code to use the .m4a file extension after conversion, but whatchagonnado...)
Please login to post comments