Every Flavour Beans

“The time has come…to talk of many [technologies].” –Lewis Carroll(’The Walrus and the Carpenter’)
Development Tools. Web Frameworks. GNU/Linux. Nokia N800. Video Encoding.

January 20, 2008

Step 3(c): Hardcoding Subtitles With MP4 Files Using XviD4PSP

Filed under: Video — tabrez @ 12:27 pm

My search for a tool that could hardcode subtitles into MP4 video files (so that they can be played on handheld devices) resulted in the discovery of an excellent tool called XviD4PSP. XviD4PSP supports true hardcoding of subtitles, as opposed to merging of subtitles into MP4 files as done by Yamb/MP4Box, and it not only supports hardcoding subtitles in only MP4 videos but also in AVI/DivX/XviD videos. It can also convert/re-encode videos to a lot of video formats and comes with an impressive set of presets to suit various handheld device format specifications. Examples include iPod/iPhone, Sony PSP/PS3, Blackberry, XBox 360 and Motorola K1.

In this post I am going to talk only about hardcoding subtitles in MP4 videos(procedure is exactly the same to hardcode subtitles into AVI/DivX/XviD files; I have tested it and it works like a charm, but I have found AVIRecomp to do the same job in lesser time.).

Hardcoding Subtitles With MP4 Files Using XviD4PSP

  1. Download XviD4PSP and install the application on your computer.
    NOTE: You need to register with the website and login before you can download the XviD4PSP. Search for the file on the Internet to download from one of the mirrors if you don’t want to go through the hassles of registration.
    When the installation is finished, run XviD4PSP from the start menu or desktop shortcut. The main window should look like this:

    Hardcode subtitles into MP4/AVI videos using XviD4PSP - Main Window

  2. Open the MP4 file into which you want to hardcode the subtitles from File -> Open File….

    Hardcode subtitles using XviD4PSP - Open MP4/AVI File
    The format of the video file should be detected and default settings should be properly selected in the Format: panel. You can change some of the format settings if you want to.

  3. XviD4PSP showed me the following message window on Windows Vista(did not get it on Windows XP) and continued reading the information from the input file after I clicked the Yes button.

    Use FFmpgegSource on Windows Vista if XviD4PSP can't use DirectShowSource

  4. Add the subtitle file for this MP4 video by going to Subtitles -> Add menu.
    Add subtitle file in XviD4PSP to hardcode them into MP4/AVI video files
  5. Select the directory where the output file should be stored by clicking on the Save button on the toolbar.
    Specify save location for hardcoded video file
  6. You can now repeat Step 2 to Step 5 if you want to add more subtitle hardcoding jobs to the queue. When you have added all the MP4(or even AVI) videos to the queue, you can click the Encode button on the toolbar to begin the encoding/subtitle hardcoding process.
    XviD4PSP encoding/hardcoding subtitle in MP4 file
  7. I tried my best to keep the encoding settings as close to the actual format of the input file as possible. But the re-encoding + hardcoding process still took almost as long as the play time of the video file(i.e. 37 minutes for a 37 minute video). I am still trying to optimize the process. You get the following window with brief information once the encoding is complete.
    XviD4PSP completes encoding/subtitle hardcoding
    You can click the Info button to view detailed information. Below is an example MP4 video file that I have hardcoded the subtitles into.
    An example MP4 video file with subtitles hardcoded into it using XviD4PSP

XviD4PSP is an excellent tool for encoding, re-encoding and subtitle hardcoding jobs. I will try to cover its other features in a future post but do explore it on your own and read more about it on doom9 forums.


If you want to receive future posts by email, enter your email address here:

Related Posts:

  • Step 3(b): Merging Subtitles With MP4 Files Using Yamb/MP4Box
  • Convert DVD Movies to iPod Format(with Subtitles) Using Free Software
  • Step 4(a): Converting AVI Format to iPod Format Using Videora iPod Converter
  • Step 3(a): Merging(Hardcoding) Subtitles With AVI(DivX/XviD) Files Using AviRecomp
  • How to Join or Split Video Subtitle Files Using Subtitle Workshop
  • Step 2(a): Converting DVD Format(VOB) to AVI(DivX/XviD) Format Using #1 DVD Ripper
  • Step 2(c): Converting DVD Format(VOB) to AVI(DivX/XviD) Format Using SimpleDivX

  • January 11, 2008

    Step 3(b): Merging Subtitles With MP4 Files Using Yamb/MP4Box

    Filed under: Video — tabrez @ 11:48 pm

    I am making this post in response to one of the comments left on my previous post explaining how to hard-code (or merge) the subtitles into an AVI(DivX/XviD) video file. I was asked what tools can be used to merge subtitles with MP4 video files and below is the complete procedure to do the merging using MP4Box and Yamb.

    To merge subtitles into an MP4 video file, you need to download two very useful tools: MP4Box and its GUI interface called Yamb.

    1. Download MP4Box
      Download MP4Box for merging subtitles into MP4 files
    2. Download Yamb
      Download Yamb - a GUI tool for MP4Box
    3. Both the tools can be extracted to any location of your preference. I have extracted the contents of Yamb-2.0.0.8.zip to H:\PortableApps\Yamb and have extracted and copied MP4Box.exe too to the same folder. This is how it looks on my computer:
      Yamb and MP4Box downloaded and extracted
    4. Next thing you need to do is to tell Yamb where MP4Box is located. To do that, run Yamb from its folder, click on the Settings icon, double-click on the entry that starts with “Advanced settings for Yamb…”.
      Yamb settings

      Enter the path where you have extracted the MP4Box executable in the Location: text box. In my example, it looks like this:
      Specify the path of MP4Box executable in Yamb settings
      Click Next.

    5. Now you are ready to try merging subtitles into an MP4 file. Select the Creation icon this time and double-click on the first entry that starts with “Click to create and MP4…”.
      Select the MP4 and the subtitle file in Yamb and MP4Box to do the merging operation
      Click the Add button first time to add the MP4 file and then click the Add button a second time to select the subtitle file. The window should like something like this:
      Select the MP4 and the subtitle file in Yamb and MP4Box to do the merging operation
      Remember to change the output file name(like I did) in the Output text box located at the bottom of the window if you don’t want to overwrite your input file with the merged output file. Click Next.
    6. The following screenshot shows Yamb processing your request. It took less than 2 minutes on my computer to finish the job of merging subtitles into a 40 minute MP4 video file.
      Yamb and MP4Box merging subtitles into MP4 video file

      Click Finish when done to quit Yamb or click Back if you want to do more merging operations. The produced MP4 output file with merged subtitles:
      Playing a sample MP4 video with subtitles merged using MP4Box and Yamb

    End Notes

    You can use the MP4Box directly from the command line if you wish: the command syntax is really very simple, and you can actually do a lot more stuff using this tool. So do explore more about it over the Internet.


    If you want to receive future posts by email, enter your email address here:

    Related Posts:

  • Step 3(c): Hardcoding Subtitles With MP4 Files Using XviD4PSP
  • Convert DVD Movies to iPod Format(with Subtitles) Using Free Software
  • Step 4(a): Converting AVI Format to iPod Format Using Videora iPod Converter
  • Step 3(a): Merging(Hardcoding) Subtitles With AVI(DivX/XviD) Files Using AviRecomp
  • Step 4(b): Converting AVI Format to N770/N800 Format Using Media Converter
  • How to Join or Split Video Subtitle Files Using Subtitle Workshop
  • Step 2(a): Converting DVD Format(VOB) to AVI(DivX/XviD) Format Using #1 DVD Ripper

  • January 8, 2008

    Make OS2008 for N800/N810 Look Beautiful

    Filed under: N800 — tabrez @ 8:12 pm

    The first change you notice after updating from OS2007 to OS2008 on your Nokia N800 Internet tablet(or after buying N810) is that it looks remarkably good and comes with a better set of themes and background images. At least that is my personal opinion. If you are more of a ‘use the device to get the work done’ type of person then here are a bunch screenshots with OS2008 running on an N800 device to get you motivated to spend ~5 minutes with your device and change its default look to make it look even more beautiful. Not to say that the default look isn’t beautiful(I did include screenshots with the default look too), but you would get bored having the same look on the device for more than a month, wouldn’t you?

    1. Changing the default desktop layout.

    When OS2008 is installed, by default only a couple of applets are visible on the tablet screen. You can add more by going to the Home menu and selecting “Select applets…” option. After adding the applets to the desktop, you can drag them around until you get the desired layout. Dragging can be done using a finger nail too but I recommend using a stylus in this case. I have these applets on my tablet desktop:

    Default theme and wallpaper 'Echo' on N800/OS2008

    What you see in the above screenshot are default theme and default background image(Echo).

    2. Changing the default Theme.

    OS2008 comes with five themes installed by default. You can select one of them by going to the top menu and selecting “Set theme…” option.
    How to select a new theme in Nokia Internet tablets - N800 and N810

    Try out all the available themes and decide which one you like the best. The screenshots below give you an idea about all the five default themes available in OS2008. (Each theme uses its designated background image as provided in OS2008.)
    See all on one page on Flickr
    Echo Theme and Wallpaper
    Felicia Theme and Wallpaper
    Glasser Theme and Wallpaper
    Hendrika Theme and Wallpaper
    Plankton Theme and Wallpaper

    Unfortunately, not many themes are created by the Nokia Internet tablet community. Not many that I know of anyway. Some user created themes can be installed from the Application Manager, so see there if you can find any.

    3. Changing the default Wallpaper.

    OS2008 comes with six wallpapers by default. Maemo UI team released 10 more on their weblog. That gives you around 15 wallpapers to try and match with your selected theme. You can download more from other websites or create your own. Couple of my favourite combinations are Hendrika-Lauttasaari Sunset and Glasser-Driving in Vermont but it all boils down to your taste.

    To change the background image/wallpaper, go to the Home menu and select “Set background image…” option. Select one of the provided background images from the “Image” dropdown box or select an image from the memory card by clicking the “Browse” button.
    How to select a new background image/wallpaper in Nokia Internet tablets - N800 and N810

    You can download more wallpapers from these websites:
    Tim Samoff’s Christmas present, Maemo UI Teams’s Christmas present part 1 and part 2.
    [via itT]

    End Notes:

    Here are some more screenshots of my tablet’s screen with different themes and wallpapers and my selected applet layout. Enjoy!

    Hendrika Theme and Abstract Wallpaper:
    Hendrika Theme for Nokia Internet tablets N800 and N810(OS2008)

    Glasser Theme and `Lauttasaari Sunset` Wallpaper:
    Glasser Theme for Nokia Internet tablets N800 and N810(OS2008)

    Felicia Theme and `Driving in Vermont` Wallpaper:
    Felicia Theme for Nokia Internet tablets N800 and N810(OS2008)

    Glasser Theme and `Driving in Vermont` Wallpaper:
    Glasser Theme for Nokia Internet tablets N800 and N810(OS2008)

    Hendrika Theme and `Lauttasari Sunset` Wallpaper:
    Hendrika Theme for Nokia Internet tablets N800 and N810(OS2008)

    Felicia Theme and Echo Wallpaper:
    Felicia Theme for Nokia Internet tablets N800 and N810(OS2008)

    Media Player in Echo Theme:
    Media Player looks beautiful in Echo them for Nokia Internet tablets N800 and N810(OS2008)


    If you want to receive future posts by email, enter your email address here:

    Related Posts:

  • OS2008 For Nokia N800 Released - Links to Reviews, Resources and First Impressions
  • GNU/Linux Users vs Rest of the world :)
  • N800 vs N810 or Who Should Consider Buying Nokia N810?
  • Installing Ubuntu & Kubuntu Dapper(6.06 LTS) For NVidia GeForce Cards
  • Unboxing Chumby and My First Impressions
  • Accessing UPnP Streamed Media in Nokia N800 using MediaStreamer
  • Java on Gentoo


  • Copyright (c) 2006, 2007 Tabrez Iqbal.
    Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. Verbatim copying and distribution of this entire article is permitted in any medium without royalty provided this notice is preserved. A copy of the license is included in the section entitled "GNU Free Documentation License".


    Powered by WordPress
    This website is hosted by Dreamhost