Sub topic 11
Running a pre-publish self-audit
This chapter assumes you have a complete draft of a course: sections, lectures, a landing page and recorded video. It also assumes you can run a Python script and a shell command, and that you have read the earlier chapters on objectives, structure, video, audio, practice activities, the landing page and content policies. The audit is where those separate checks come together into one repeatable pass.
Why audit before you submit
Udemy reviews a course before it goes live. A course sent back costs you days or weeks, because each resubmission waits in the queue again. A self-audit moves the cheap-to-find problems (too few lectures, a low-resolution export, a quiet lecture, a vague title) to before submission, when you can fix them in minutes.
An audit is also a different activity from the last pass of editing. Editing asks whether a lecture is good. An audit asks whether the course meets a fixed list of criteria, and it answers with pass or fail for each item. Keeping the two separate stops you from re-recording a lecture that already passes while a missing practice activity goes unnoticed.
The working model: two kinds of checks
Some criteria can be measured by a program. Others need a person reading or watching with a checklist. Automate the first kind so you run it every time without effort. Do the second kind deliberately, because it is where most review feedback comes from.
| Check | Type | Tool or method |
|---|---|---|
| Lecture count, total video minutes | Automated | Script over your course outline |
| Number of learning objectives | Automated | Script over your course outline |
| Presence of a quiz or assignment | Automated | Script over your course outline |
| Video resolution | Automated | `ffprobe` |
| Audio level consistency | Automated, then judged by ear | `ffmpeg` with `volumedetect` |
| Objectives match what lectures teach | Manual | Read each objective, find the lecture |
| Landing page accuracy | Manual | Compare page claims to course content |
| Copyright and promotion rules | Manual | Review slides, music, images, links |
Automated checks give you evidence. Manual checks give you judgment. A course can pass every automated check and still fail review because the title promises something the lectures never deliver.
Note that a fix sends you back to the start. A fix in one area can break another. For example, re-exporting a lecture to fix its audio can change its duration and shift your total video minutes. Re-running the whole audit is cheap, so do it.
Structural checks as a script
The script below turns the structural checks into a pass or fail list. The thresholds are constants at the top so you can update them in one place when Udemy changes its guidelines.
MIN_VIDEO_MINUTES = 30 # confirm against current Udemy guidelines
MIN_LECTURES = 5
MIN_OBJECTIVES = 4
def check_course(course):
"""Return a list of problems found in a course outline dict."""
problems = []
lectures = [lec for section in course["sections"] for lec in section["lectures"]]
video_seconds = sum(lec["seconds"] for lec in lectures if lec["type"] == "video")
if len(lectures) < MIN_LECTURES:
problems.append(f"Only {len(lectures)} lectures; need at least {MIN_LECTURES}.")
if video_seconds / 60 < MIN_VIDEO_MINUTES:
problems.append(f"Only {video_seconds / 60:.1f} minutes of video; need at least {MIN_VIDEO_MINUTES}.")
if len(course["objectives"]) < MIN_OBJECTIVES:
problems.append(f"Only {len(course['objectives'])} learning objectives; need at least {MIN_OBJECTIVES}.")
if not any(lec["type"] in ("quiz", "assignment") for lec in lectures):
problems.append("No practice activity (quiz or assignment) found.")
return problems
course = {
"objectives": ["Set up a project", "Write tests", "Debug failures", "Deploy the result"],
"sections": [
{"title": "Getting started", "lectures": [
{"type": "video", "seconds": 420},
{"type": "video", "seconds": 600},
]},
{"title": "Practice", "lectures": [
{"type": "video", "seconds": 540},
{"type": "quiz", "seconds": 0},
]},
],
}
for problem in check_course(course):
print(problem)Run as written, the script reports two problems: only 4 lectures, and only 26.0 minutes of video. The course has 1,560 seconds of video, which is 26 minutes. Both objectives and practice checks pass.
How the script works
The function flattens the nested sections into one list of lectures, then totals only the lectures whose type is video. That filter matters. A quiz with seconds set to something nonzero, or a downloadable resource with a duration, would otherwise inflate your video total. The function returns a list of messages instead of printing them, so you can reuse it in a larger report or a test.
Gotchas in the structural check
- Counting the wrong thing. The script counts every lecture, including quizzes, toward the lecture minimum. If the current guideline counts only certain lecture types, change the filter. Read the guideline wording before you trust the constant.
- Stale thresholds. The values in the script are placeholders to confirm. Check the current Instructor Help Center each time you audit, and write the date you checked in a comment.
- Durations you typed by hand. If you built the outline by hand, the
secondsvalues may be estimates. Generate them from the actual files (see the next section) so the total reflects what you will upload. - Meeting the minimum by padding. Passing the number is not the goal. A course at exactly the minimum with filler lectures passes the script and fails the manual review of instructional quality.
Media checks with ffprobe and ffmpeg
Resolution and audio level are properties of the exported files, so measure the files. Do not rely on your editor's project settings, because an export preset can differ from the project.
# Print the resolution of the first video stream (expected output like: 1280,720)
ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 lecture01.mp4
# Report mean and peak audio volume to compare loudness across lectures
ffmpeg -i lecture01.mp4 -vn -af volumedetect -f null - 2>&1 | grep -E "mean_volume|max_volume"The first command prints width and height separated by a comma. A result of 1280,720 is 720p. Anything with a height below 720 needs a re-export from the source recording. Upscaling a smaller file to 720p will pass this check but still look soft, so also confirm that the original recording was at least that size.
The second command decodes the audio, discards the video with -vn, and prints mean_volume and max_volume in decibels (dB). Both are negative numbers, because 0 dB is the maximum a file can represent. A mean closer to 0 is louder.
Checking every lecture at once
Checking one file at a time invites skipped lectures. This loop prints one comma-separated line per file, which you can paste into a spreadsheet.
for f in lectures/*.mp4; do
res=$(ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 "$f")
vol=$(ffmpeg -nostdin -i "$f" -vn -af volumedetect -f null - 2>&1 | grep "mean_volume" | sed 's/.*mean_volume: //')
echo "$f,$res,$vol"
doneA typical line looks like lectures/lecture01.mp4,1280,720,-19.4 dB. Sort by the last column. Lectures that stand out from the rest are the ones to fix. A spread of a few dB between lectures is normal. A difference of 10 dB or more means a learner will reach for the volume control between lectures.
What the numbers can and cannot tell you
- Mean volume is not clarity. A file can have a good mean level and still contain echo, hiss or a hum. Listen to a sample from every lecture on headphones, not only on laptop speakers.
- Peak volume near 0 dB suggests clipping. If
max_volumeis0.0 dB, the signal may have been cut off at the top, which sounds like distortion. Re-record or reduce the gain at the source. - A silent lecture reports a very low mean. A value like
-91 dBusually means the audio track is empty. Catching a missing track is one of the most useful things this check does. - A file with no audio stream can make the
grepprint nothing at all. An empty result for a lecture is a failure, not a pass.
Manual review passes
Do these as separate passes, each with a single question, rather than one long read-through.
Pass 1: objectives against content
List each learning objective. Next to it, write the lecture title that teaches it and the activity that practices it. An objective with no lecture is a promise you cannot keep. A lecture that teaches something no objective mentions is either a missing objective or a lecture to cut. Check that each objective uses a verb you could observe, such as "write", "configure" or "compare", rather than "understand" or "know".
Pass 2: landing page against course
Read the title, subtitle and description as a prospective learner would. For every claim, find the lecture that delivers it. Check that the requirements and intended learners sections match the real difficulty. If lecture 3 assumes the learner already knows a tool, that tool belongs in the requirements. Make sure the promotional video and course image show the course as it actually is.
Pass 3: policies
Go through slides, screen recordings, music and images and ask who owns each one. Look for third-party logos, stock footage and background music without a license you can point to. Check descriptions and lecture text for promotional links, requests for reviews, or offers to take learners off the platform. Look at the content itself against the prohibited-material rules.
Keeping an audit log
Keep a plain record of each audit run: the date, the guideline values you checked, and each item's result. A table in a text file is enough.
| Item | Result | Evidence | Fix needed |
|---|---|---|---|
| Video minutes | Fail | Script: 26.0 of 30 | Add one lecture |
| Resolution | Pass | All files report 1280,720 | None |
| Audio spread | Fail | Lecture 6 is 11 dB quieter | Re-normalize |
| Objective coverage | Pass | Objective 3 maps to lecture 7 | None |
The log has two uses. It stops you from re-checking items that already passed, and if the course is sent back it gives you a reference for which criteria you had already verified.
Common errors
- Auditing the draft, not the upload. Udemy may re-encode your files. Audit the exact files you upload, then look at the processed lecture in the course preview.
- Treating one pass as enough. Fixes change the course. Run the full audit again after the last change.
- Trusting thresholds from memory. Guideline numbers change. Confirm each constant against the current Instructor Help Center on the day you submit.
- Skipping the manual passes because the script is green. The script cannot tell whether your title overpromises.
- Fixing in the wrong order. Fix structural problems first. Adding a lecture changes what the media and manual checks need to cover.
Deciding when to submit
Submit when every item in the log passes on the same run, and the run came after your final edit. If one item is a judgment call, such as a lecture that is slightly quieter than the others, decide deliberately. Fix it if re-exporting takes a few minutes. Note it in the log if you accept the risk.
Exercise
Your script reports 31 minutes of video, 6 lectures, 4 objectives and a quiz, so it prints no problems. The ffmpeg loop shows lecture 4 with a mean volume of -34 dB while every other lecture sits between -20 and -17 dB. Does the course pass the self-audit? What do you do next, and what must you do afterward?
Show answer
No. The structural checks pass, but the media check fails on lecture 4, which is about 14 dB quieter than the others. Listen to the lecture, then fix the audio at the source or normalize it and re-export. Afterward, re-run the whole audit, not only that lecture. The re-export may change the duration, which affects the total video minutes, and you should confirm the new file's resolution and its mean volume.
Exercise
In the Python script, a quiz entry is accidentally given "type": "video" with "seconds": 300. Which check gives a wrong answer, and why does the script not notice?
Show answer
The total video minutes is overcounted by 5 minutes, so a course that is really below the minimum could pass. The script trusts the "type" and "seconds" fields in the outline and never inspects the actual files. The fix is to generate the outline's durations from the real exported files (for example with ffprobe) instead of typing them by hand.