Procedure on Converting Video Files into MP4

The HKU Video Streaming Service supports the storage and streaming of MP4 video files. If your video files are not in MP4 format, please convert them into MP4 format before uploading to our server. After file conversion, you can upload the files to the HKU Video Streaming Server (click here for the procedures).

Below are the file conversion steps:

Download the file conversion tool

To convert video files into MP4, you can make you of the following tools:

  1. Any Video Converter Free (for conversion of a single video file) Click here to download.
  2. Free FFMPEG Video Converter (command line tool for batch conversion of video files) Click here to download.

Convert into MP4 file

Using Any Video Converter Free (for single video conversion)

  1. Launch Any Video Converter Free

    video conversion 01

  1. Select Input VideoClick the “Add Video(s)” button to select an input video file(s) from your computer.x
    By default, the output file name is the same as the video title.

    video conversion 02

  2. Select Output FormatClick the drop down button and choose the output format as “HTML5 MP4 Movie (*.mp4)”

    video conversion 03

  3. Check the Basic Settings, Video Options and Audio OptionsBasic Settings: confirm the video size is set as original, change output folder location if needed
    Video Options: confirm the video bitrate is set as original bitrate
    Audio Options: confirm the audio codec is acc

    video conversion 04

  4. Convert videoClick “Convert Now” and wait for the video to be converted.

    convert video

Using FFMPEG (for batch conversion)

  1. Go to, under “Get the packages” click the blue window icon and click “Windows Build”.

    video conversion 05

    windows packages

  2. Click “Download Build”.

    video conversation 06

  3. Create the folder “ffmpeg” under c:\ and unzip the downloaded contents to c:\ffmpeg

    video conversation 07
  4. Open a Notepad, copy and paste the following code and save as “batch_convert.bat”:

    mkdir c:\ffmpeg\bin\newfiles
    for %%a in (“*.flv”) do ffmpeg -i “%%a” -c:v libx264 -preset slow -crf 20 -b:a 128k

  5. Click “File” > “Save as” > save into C:\ffmpeg\bin\.  Click “Save”.

    video conversation 08

    File name: “batch_convert.bat”
    Save as type: “All files”

    video conversation 09

  6. Copy all your .flv videos into c:\ffmpeg\bin folder

    copy all fly video

  7. Double-click the batch_convert.bat file, and it will start converting all the videos from .flv to .mp4 and store them into an auto created folder “newfiles”.




Multi-Factor Authentication

February 2024
February 2024

Mandatory for all staff accounts

May 2024
May 2024

Mandatory for all student accounts