Martin Cooper's Linux Blog

All things Linux …

Tag Archives: HAUPPAUGE WinTV Nova-T Digital Terrestrial TV Stick

tsMuxeR video conversion for Sony Bravia

Convert a video file to the .m2ts format to stream to the Sony Bravia Tv from a miniDNLA server using Handbrake and tsMuxeR. This gives you a much smaller file than the .mpg file which is the other option. If you wish to use .mpg then the only way I have managed to get this working is to use ffmpeg from the command line using.

$ ffmpeg -i input.m4v -target pal-dvd output.mpg

This will use various input file extensions just amend the input file.

tsMuxer is a Transport Stream muxer which will convert .mkv video formatted files created in Handbrake to .m2ts files suitable for playback on the Sony Bravia. First convert your video to a .mkv video file using Handbrake making sure you select the Audio codec as AC3 (ffmpeg) in the [Audio] Tab and the [Framerate:] as 25 (PAL Film/Video) or any other option you prefer except the (Same as source) option. Handbrake is available in both Debian and Ubuntu repositories, stMuxeR is available by download from here: http://www.videohelp.com/tools/tsMuxeR Download the Linux version [currently tsMuxeR_1.10.6.tar.gz] into your home directory. Then create a directory in /usr/lib by opening a Terminal and entering the following;

$ sudo mkdir /usr/lib/tsmuxer

move into the tsmuxer directory with;

$ cd /usr/lib/tsmuxer

now extract the archive you downloaded with;

$ sudo tar -xvzf ~/tsMuxeR_1.10.6.tar.gz

if you list the contents with

$ ls
you will have 4 files in the tsmuxer directory including

tsMuxeR
tsMuxerGUI

make sure they are both executable with;

$ sudo chmod +x tsMuxeR

and;

$ sudo chmod +x tsMuxerGUI

now add a shortcut to /usr/bin with;

$ sudo ln -s /usr/lib/tsmuxer/tsMuxerGUI /usr/bin/tsMuxerGUI

now you can run the program by typing tsMuxerGUI in a Terminal or create a menu launcher with tsMuxerGUI as the command.

Open the program and on the Input Tab select [add] to add the .mkv file you have transcoded with Handbrake, in the [General track options] section, select [Change fps:] 25 and [Change level:] 4.0. Then in the [Output] section select M2TS muxing and browse to an output folder if you wish to change the default. Now select the [Start muxing] button. The output file should now play on your TV.

Advertisements

HAUPPAUGE WinTV Nova-T Digital Terrestrial TV Stick

I wanted to record some Digital TV [freeview] using my PC running [Linux Mint Debian XFCE] so that I could watch it later on my Sony Bravia TV which is hooked up to my homegrown server running [Xubuntu]. After a little Google search I found the HAUPPAUGE WinTV Nova-T Digital Terrestrial TV Stick recommended on a few posts which needed no extra drivers adding. I bought the above from PC World [UK] http://www.pcworld.co.uk/gbuk/hauppauge-wintv-nova-t-digital-terrestrial-tv-stick-00776361-pdt.html for ¬£49.99 and located a spare USB slot, plugged it in and connected it to the House Digital aerial. I then re booted the system and added the programs ME TV and Kaffeine to the system and then ran update before rebooting. Both programs found the Nova-T out of the box and scanned the channels with no problem. Kaffeine’s default output file format is .m2t which can be served on the miniDNLA server¬† [ see here and is picked up by the Sony Bravia.

[ Edit ]

Having now installed Debian Squeeze with an XFCE Desktop I found the above no longer worked out of the box, typing $ dmesg | grep dvb in a Terminal after plugging in the WinTV stick I got;

$ dmesg | grep dvb
[ 668.441506] dvb-usb: found a ‘Hauppauge Nova-T Stick’ in cold state, will try to load a firmware
[ 668.441514] usb 1-5.2: firmware: requesting dvb-usb-dib0700-1.20.fw
[ 668.450267] dvb-usb: did not find the firmware file. (dvb-usb-dib0700-1.20.fw) Please see linux/Documentation/dvb/ for more details on firmware-problems. (-2)
[ 668.450336] usbcore: registered new interface driver dvb_usb_dib0700

shows it is missing the firmware, after a little Google searching I found the Debian package called firmware-linux-nonfree has this firmware in it so as long as you have the deb http://ftp.uk.debian.org/debian/ squeeze main contrib non-free enabled you can install it with;

$ sudo apt-get install firmware-linux-nonfree

Then either reboot or just remove the WinTV stick and plug in again and running

$ dmesg | grep dvb
[ 5.083029] dvb-usb: found a ‘Hauppauge Nova-T Stick’ in cold state, will try to load a firmware
[ 5.083031] usb 1-5: firmware: requesting dvb-usb-dib0700-1.20.fw
[ 5.121021] dvb-usb: downloading firmware from file ‘dvb-usb-dib0700-1.20.fw’
[ 5.824025] dvb-usb: found a ‘Hauppauge Nova-T Stick’ in warm state.
[ 5.824053] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[ 5.824342] DVB: registering new adapter (Hauppauge Nova-T Stick)
[ 6.026890] DVB: registering adapter 0 frontend 0 (DiBcom 7000PC)…
[ 6.239918] input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:12.2/usb1/1-5/input/input8
[ 6.239946] dvb-usb: schedule remote query interval to 50 msecs.
[ 6.239949] dvb-usb: Hauppauge Nova-T Stick successfully initialized and connected.
[ 6.240113] usbcore: registered new interface driver dvb_usb_dib0700

now all is well.