How to convert VCD to MP4 using mplayer in Linux

If you have a VCD and need to create an MP4 file of it’s content, use mplayer to do so. If you install just mplayer, you will not get –dumpstream or –dumpfile. To get those parameters, you need to open a terminal window and install mplayer2 as follows:
$ sudo apt-get install mplayer2 <enter>

Open a terminal window and first identify the relevant track on the VCD by playing it as follows:
$ mplayer vcd://2 <enter>
If 2 as shown above does not work, try 0, 1, 2, 3 and note the track number that worked.

Next, create an MP4 using the command below, where //2 is the track number that played the correct content.
$ mplayer vcd://2 --dumpstream --dumpfile=output.mp4 <enter>

This works very well to play a VCD on a smart TV without a VCD or DVD player after converting the VCD to MP4 format.