---
title: Convert DTV H.264 to MP4
url: https://sammy.hk/convert-dtv-h-264-mp4/
author: Sammy Fung
published: 2009-04-05T15:39:13+08:00
modified: 2018-03-22T00:33:26+08:00
description: "I uses USB DMB-TH adaptor to watch digital TV in Hong Kong. As a Linux user, I seldom to use Windows but I use TotalMedia software (bundled with USB adaptor) on…"
categories: ["科技"]
source: https://sammy.hk
---
[![](http://farm4.static.flickr.com/3128/2674705214_fbd8ec746d.jpg?v=0)](http://www.flickr.com/photos/sammyhk/2674705214)

I uses USB DMB-TH adaptor to watch digital TV in Hong Kong.

As a Linux user, I seldom to use Windows but I use TotalMedia software (bundled with USB adaptor) on Windows to watch/record DTV programme.

But video format used by TotalMedia is difficult for me to store on local disk, or send these files to friends. So I need to find out how to convert them to other video formats.

Finally I converted them successfully with MPlayer’s encoder with the following command.

$ mencoder -vf softskip,harddup,scale=720:480 -pp 0 -tsprog 0 -sws 9 -ovc xvid -xvidencopts vhq=4:bitrate=4000:nopacked:trellis:nogmc:noqpel:nocartoon:bvhq=1:max\_bframes=2:quant\_type=mpeg:pass=1 -subcp utf8 -subfont-encoding unicode -vobsuboutindex 0 -sid 1 -oac copy -o output.mpg input\_totalmedia\_file.mpg

But only primary audio language channel is included in the file, and without any subtitle. So, it is still not useful for me, most TV programme recorded are forigen dramas, and I perfer to listen original audio with Chinese subtitle.

### 相關文章：

1. [再次試用 WordPress](https://sammy.hk/another-wordpress-trial/ "再次試用 WordPress")
2. [Mandrake Linux 改名為 Mandriva Linux](https://sammy.hk/mandrake-linux-%e6%94%b9%e5%90%8d%e7%82%ba-mandriva-linux/ "Mandrake Linux 改名為 Mandriva Linux")
3. [Mandrakesoft 收購 Conectiva](https://sammy.hk/mandrakesoft-%e6%94%b6%e8%b3%bc-conectiva/ "Mandrakesoft 收購 Conectiva")
4. [久違在家中電腦上進行編譯](https://sammy.hk/%e4%b9%85%e9%81%95%e5%9c%a8%e5%ae%b6%e4%b8%ad%e9%9b%bb%e8%85%a6%e4%b8%8a%e9%80%b2%e8%a1%8c%e7%b7%a8%e8%ad%af/ "久違在家中電腦上進行編譯")
