Sub topic 5
Recording and exporting video that passes review
This chapter covers the video side of Udemy's quality review: what the reviewers look at, how to capture footage that holds up, how to export it, and how to check the files before you upload. Audio gets its own chapter, so here it only comes up where it affects the export.
You should already have a course outline and a working recording setup. You should also know how to export from a video editor and use a terminal. The checks use ffprobe and ffmpeg, which are free command-line tools from the FFmpeg project.
What the review checks in video
Udemy reviewers watch your lectures and judge whether a learner could follow them comfortably. For video, that comes down to four questions:
- Is the picture sharp enough to read? Screen text and code are the usual failure.
- Is the frame composed deliberately? The content should fill a 16:9 frame without stray bars, cropped edges, or distracting background.
- Is the file technically sound? It needs an accepted format, a resolution at or above the minimum, and no dropped or frozen frames.
- Is quality consistent across lectures? One blurry lecture among sharp ones stands out.
Udemy's published guidance has asked for HD video, meaning at least 720p, and has recommended 16:9 and 1080p where possible. It has also listed accepted formats such as MP4 and MOV and a maximum file size per lecture. Udemy changes these numbers from time to time. Before you build your pipeline, read the current video requirements in the Instructor Help Center and put the values you find into your own checklist.
Resolution, aspect ratio and frame rate
Resolution is the width and height of the frame in pixels. Aspect ratio is width divided by height. The usual 16:9 sizes are:
| Name | Pixels (width x height) | Notes |
|---|---|---|
| 720p (HD) | 1280 x 720 | Usual minimum for review. Fine for talking-head video. |
| 1080p (Full HD) | 1920 x 1080 | Safer for screen recordings with small text. |
| 1440p | 2560 x 1440 | Allowed, but larger files and slower uploads for little visible gain on most screens. |
| 4K | 3840 x 2160 | Rarely worth it for lectures. File size grows quickly. |
For frame rate, use 24 or 30 frames per second (fps) for lectures. Pick one rate and use it for every lecture. Mixing rates inside one course makes editing harder and gains nothing for the learner. Constant frame rate is better than variable frame rate. Screen recorders sometimes produce variable frame rate, and that can cause audio to drift out of sync with the picture after editing.
Record at the resolution you plan to export. Upscaling a 720p recording to 1080p produces a file that reports 1080p but looks soft. The check in this chapter reads the pixel dimensions, but a reviewer judges the picture.
Recording the screen so text stays readable
Most technical courses are screen recordings. A 1080p frame shown in a small player on a laptop is easy to misread, so make deliberate choices about what is on screen.
- Set your display to 1920 x 1080 before recording, or record a 1920 x 1080 region. Recording a 4K display and downscaling later works too, but the text will be tiny unless you also raise the font sizes.
- Increase editor and terminal font sizes. A code font that looks comfortable at your desk is often too small for a learner. Test by viewing the exported file in a window a quarter of your screen's size.
- Use a high-contrast theme and avoid low-contrast colors for comments or highlights.
- Hide notifications, personal bookmarks, and unrelated browser tabs. Do-not-disturb mode costs nothing and saves a re-record.
- Make the cursor easy to follow. Many recorders can enlarge the cursor or highlight clicks.
- Zoom in on small interface areas during editing instead of asking learners to squint.
For talking-head segments, put the camera at eye level, light your face from the front, and keep the background tidy. Autofocus that keeps hunting back and forth is a common defect, so lock focus and exposure if your camera allows it.
Exporting: container, codec and settings
The container is the file type (for example MP4), and the codec is how the video is compressed inside it. The safest combination for Udemy uploads is an MP4 container with H.264 video and AAC audio. Nearly every editor can produce it, and it plays on essentially every device.
These settings give a sound result for lecture content:
- Resolution: 1920 x 1080 (or 1280 x 720 if your source is only 720p).
- Frame rate: the same as your recording, constant.
- Video codec: H.264.
- Quality: use constant quality (CRF) around 18 to 23 in tools that offer it, or a bitrate of roughly 5 to 10 Mbps for 1080p. Lower CRF means higher quality and a larger file. These are practical starting points, not Udemy requirements.
- Pixel format: yuv420p, which maximizes playback compatibility.
- Audio: AAC at 44.1 or 48 kHz, 128 to 192 kbps stereo or mono. See the audio chapter for levels.
- Fast start: enable it so the file can begin playing before it is fully downloaded.
If you prefer the command line, this FFmpeg command re-encodes a 16:9 source to a 1080p MP4 with these settings:
ffmpeg -i raw_lecture01.mov \
-vf "scale=-2:1080" \
-r 30 \
-c:v libx264 -preset slow -crf 20 -pix_fmt yuv420p \
-c:a aac -b:a 192k \
-movflags +faststart \
lecture01.mp4The scale=-2:1080 filter sets the height to 1080 and calculates a width that keeps the aspect ratio and is divisible by two, which H.264 requires. If your source is not 16:9, this command gives you a different width. Fix the framing in your editor first, because cropping or padding a non-16:9 recording is an editing decision, not an encoding detail.
Watch the file size. Udemy sets a per-lecture size limit, and its past value has been in the gigabytes. A lecture of ten to twenty minutes at the settings above stays well below that. If a file is far larger than expected, check whether your editor exported at a very high bitrate or in an intermediate format such as ProRes.
Verifying the exported files
Do not trust the export dialog. Read the resolution from the finished file. This command prints the width and height of the first video stream:
# 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.mp4To check a whole folder, loop over the files and flag anything under 720 pixels tall:
for f in *.mp4; do
res=$(ffprobe -v error -select_streams v:0 \
-show_entries stream=width,height -of csv=p=0 "$f")
w=${res%,*}
h=${res#*,}
if [ "$h" -lt 720 ]; then
echo "FAIL $f is ${w}x${h}"
else
echo "ok $f is ${w}x${h}"
fi
doneThis loop has two limits. It checks only the height, so a vertical or square video with height above 720 would pass. It also reads stored dimensions, so a phone clip that relies on rotation metadata can report landscape pixels while playing as portrait. To catch both, add a ratio check, or open a few files in a player. Use the loop as a quick filter, not a replacement for watching.
Then review each lecture by eye. Watch the first thirty seconds and last thirty seconds of every lecture, and scrub through the middle at several points.
Common video failures and fixes
| Problem | Likely cause | Fix |
|---|---|---|
| File reports 480p or 540p | Editor project or export preset set to a low size | Set the project to 1080p and re-export |
| Text is soft though the file is 1080p | Recording was smaller and upscaled, or bitrate too low | Record at the target size and lower CRF |
| Black bars on the sides or top | Source aspect ratio is not 16:9 | Re-crop or re-record at 16:9 |
| Picture freezes or stutters | Variable frame rate, overloaded recorder | Record at a constant rate and close other programs |
| Audio drifts out of sync | Variable frame rate edited in an editor | Convert to constant frame rate before editing |
| Lecture looks different from the rest | Different camera, lighting, or screen scale | Standardize your setup and reuse presets |
| Upload fails or takes very long | Oversized file, intermediate codec | Re-encode to H.264 at a sensible bitrate |
Consistency is the cheapest quality gain. Save one export preset and one recording template, and use them for every lecture. That also makes your later self-audit simpler, because every file should report the same resolution, codec and frame rate.
Edge cases
- Mixed content: a lecture that combines a slide deck, a screen recording and a camera feed should be exported as one 16:9 frame. Do not upload each piece at its own size.
- Pre-existing footage: if you reuse material from another platform, confirm that you own it and that its resolution meets the minimum. Policy matters here too, and a later chapter covers it.
- Slides exported from presentation software: export or present them at 16:9. A 4:3 slide deck inside a 16:9 video leaves bars on both sides.
- Replacing a lecture after approval: you can upload a corrected file, but a visible change may trigger another review, so batch your fixes.
Exercise
A lecture file passes your folder loop and reports 1920,1080, but a reviewer says the code on screen is unreadable. Name two likely causes and one fix for each.
Show answer
First cause: the recording was made at a lower size (for example 1280 x 720) and upscaled to 1080p, so the file reports the right size but the text is soft. Fix: record at the target resolution. Second cause: the on-screen fonts are too small for a learner viewing in a small player. Fix: increase editor and terminal font sizes, or zoom in on the code in the editor. A third possible cause is a very low bitrate, which blurs text. The fix is a lower CRF or higher bitrate.
Exercise
You run the folder loop on ten files and it prints "ok" for all of them, including one portrait phone clip that is 1080 wide and 1920 tall. Why is "ok" wrong here, and how would you change the check?
Show answer
The loop only tests that the height is at least 720, and the portrait clip is 1920 tall, so it passes. But the video is not 16:9 landscape and would show black bars or be cropped. Add a check that width is greater than height and that width divided by height is close to 16/9 (about 1.78), or compare width to height with a tolerance. Also check rotation metadata, since a clip can store landscape pixels and still play rotated.