Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recordings not Converting #6

Open
alihastie opened this issue Dec 14, 2020 · 24 comments
Open

Recordings not Converting #6

alihastie opened this issue Dec 14, 2020 · 24 comments

Comments

@alihastie
Copy link

alihastie commented Dec 14, 2020

Hi

We have installed the plugin on Moodle 3.8 version and the current and new recordings through atto_recordrtc have not converted to MP4 sources for HTML5 and

We have setup the path to ffmpeg correctly, and kept with the convert audio and video settings as is.

We also have scheduling set to run every minute within Moodle for the plugin.

@ndunand
Copy link
Owner

ndunand commented Dec 15, 2020

Hlelo,

First, please make sure the plugin is actually enabled.

Then, you go into Moodle administration > Server > Tasks > Scheduled tasks, look for "filter_html5avtomp4", there should be a task definition here with a "Run now" (tiny) link. Try running it manually and please post the results here.

@alihastie
Copy link
Author

Thanks for the prompt reply.

The plugin has been enabled on the Filters settings, and within the course areas.

We do not see a "Run now" link within schedules tasks.

html5filter

We also have the plugin on another Moodle 3.8 installation, with the exact same settings and we can see the audio/video players on an iPhone, but they don't play:

iphone_html5

Thanks

@ndunand
Copy link
Owner

ndunand commented Dec 15, 2020

Ah, alright apparently the "Run Now" option has to be set up: https://docs.moodle.org/310/en/Scheduled_tasks#Running_individual_tasks .

iPhone player visible but don't play is probably because the audio or video has not been converted to an iOS-compatible format.

@alihastie
Copy link
Author

Thanks for the heads up on Run now.

Ran schedule task on original Moodle instance and received this:

Execute scheduled task: Process reencoding non-MP4 files (filter_html5avtomp4\task\processjobs_task)
found 0 jobs
... used 1 dbqueries
... used 0.0072319507598877 seconds
Scheduled task complete: Process reencoding non-MP4 files (filter_html5avtomp4\task\processjobs_task)

Still does not convert through using Safari on iPhone.

@ndunand
Copy link
Owner

ndunand commented Dec 15, 2020

Thanks,

Could you then:

  1. deactivate the task
  2. add a video using atto_recordrtc from Chrome
  3. run the task manually

This was ensures there actually is something to convert within the task.

@alihastie
Copy link
Author

Followed the steps above, though 'disabled' task and to enable to run the task manually:

Execute scheduled task: Process reencoding non-MP4 files (filter_html5avtomp4\task\processjobs_task)
... started 11:16:10. Current memory use 41.8MB.
found 0 jobs
... used 1 dbqueries
... used 0.00059700012207031 seconds
Scheduled task complete: Process reencoding non-MP4 files (filter_html5avtomp4\task\processjobs_task)

@ndunand
Copy link
Owner

ndunand commented Dec 15, 2020

Strange ... how is the plugin configured exactly ?

@alihastie
Copy link
Author

htmlsconfig

@ndunand
Copy link
Owner

ndunand commented Dec 15, 2020

Do you have any rows in the mdl_filter_html5avtomp4_jobs DB table, and does this number increase after you add a video?

@alihastie
Copy link
Author

Our Moodle installation is externally hosted. I could raise a support ticket to find out more information?

@ndunand
Copy link
Owner

ndunand commented Dec 16, 2020

Yes that would help. I just tested again on both Moodle 3.7 and 3.9 with no issues as I have no 3.8 at hand, just to make sure. It should work on 3.8 as well.

@alihastie
Copy link
Author

Our hosting company has checked the rows in the database and stated there are no entries. His comment: 'I've tested the record and DB insert, but there does not seem to be any inserts showing within the database table when I create a video.'

Cheers

@barry-matthias
Copy link

we have also found this issue as a bug
the db table mdl_filter_html5avtomp4_jobs has entries present all with the status of 2 (no idea what that means) at the time
we checked the filters local lib and found status 2 means its completed the conversion so we are now checking if this has actually happened from the user point of view

@Danie
Copy link
Contributor

Danie commented Jan 21, 2021

I've testet the plugin on 3.8, 3.9 and 3.10 - it works on all installations without any trouble if the following is considered:

The filter HTML5 audio/video to MP4 filter should be placed at least before filters Convert URLs into links and images and Multimedia plugins (see attached file). If the HTML5 audio/video to MP4 filter is behind these two filters, then both the on-the-fly audio conversion and the video conversion via cron job will not work.

filter_order

@ndunand
Copy link
Owner

ndunand commented Jan 22, 2021

Well spotted @Danie !

Indeed the filter order has an impact, as e.g. this filter expects the test (html) to be formed a certain way, so of course if the text has been changed by another filter upstream this filter can then not do its job as expected.

@alihastie could this resolve your issue?

@alihastie
Copy link
Author

We have adjusted the Filter options as the same as Danie has in the screenshot above.

Though, the players (audio and video) do display on an iPhone for example which is progress, they will not play. And, as you can see the timer for the video below, it displays 00.00, audio displays 0.00
IMG_1805

@Danie
Copy link
Contributor

Danie commented Jan 22, 2021

Do you have run the moodle-cronjob (/usr/bin/php /path/to/moodle/admin/cli/cron.php)?

@alihastie
Copy link
Author

Our cronjob runs every 5 minutes, we are unable to run the cron through the Browser.

Just ran HTML5 scheduled task, which displayed this:

Process reencoding non-MP4 files
Execute scheduled task: Process reencoding non-MP4 files (filter_html5avtomp4\task\processjobs_task)
found 0 jobs
... used 1 dbqueries
... used 0.012264966964722 seconds
Scheduled task complete: Process reencoding non-MP4 files (filter_html5avtomp4\task\processjobs_task)

@ndunand
Copy link
Owner

ndunand commented Jan 22, 2021

@alihastie just to rule this possibility out, could you try to just disable all other filters on this specifig Moodle page?

@Danie
Copy link
Contributor

Danie commented Jan 22, 2021

@alihastie give the filter a place on top of the filter list.

@alihastie
Copy link
Author

Disabled all filters,and placed the filter at the top of the list which still displays the players, and still set to 0.00 and won'y play.

@ndunand
Copy link
Owner

ndunand commented Jan 26, 2021

Strange ... is there any way you could give me access to a page showing this issue? Failing that, at least post an image of the browser dev tools showing the exact contents of the <video> tag?

@alihastie
Copy link
Author

videotag

@ndunand
Copy link
Owner

ndunand commented Jun 21, 2021

@alihastie sorry for letting this wait for so long. By any chance, does the updated version of the plugin solve this issue ? If not, could you post the contents of the <video> tag (as you did in the screenshot above, but with the video tag unfolded)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants