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

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

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.

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

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
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
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
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:

3 Comments »

This worked but the resulting file was over 10 GB and none of the players I tried to play it with succeeded. (some came up with errors and Quicktime only played the audio)

HELP!

Quote

Comment by Anonymous — December 4, 2008 @ 7:21 am

When I tried it again it said “MP4box not responding” and ended up with an error.

????

Quote

Comment by Anonymous — December 4, 2008 @ 7:57 am

Thanks so much. I was finally able to watch Eureka seveN: Pocketful of Rainbows after millions of downloads and different programs…

Quote

Comment by Outis — July 5, 2009 @ 12:55 am

RSS feed for comments on this post. TrackBack URI

Leave a comment

Subscribe without commenting


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


You are viewing a mobilized version of this site...
View original page here

Mobilized by Mowser Mowser
Mobilytics