Showing posts with label VideoLan. Show all posts
Showing posts with label VideoLan. Show all posts

Thursday, August 19, 2010

HOWTO : Full HD playback with VideoLan and PPA on Ubuntu 10.04

This tutorial may read conjunction with the HOWTO : MyGica D689 USB HDTV dongle, VideoLan and PPA on Ubuntu 10.04 but the different is the display card. The display card (GeForce 8500GT) that using at the link does not support Full HD playback.

The CPU used in this tutorial does not support full HD playback.

Hardware and software used in this tutorial :

CPU - AMD Athlon 64x2 4200+
RAM - 8GB DDR2 800
Hard Drive - 500GB x 4 on Hardware RAID 10
Display card - nVidia GeForce GT240
Monitor - 4:3 LCD monitor (not full HD monitor)
Operating system - Ubuntu 10.04 Desktop AMD64

Step 1 :

Make sure you have installed the nVidia driver from repository.

"System" - "Administration" - "Hardware driver" - Select "Recommended"

sudo add-apt-repository ppa:nvidia-vdpau/cutting-edge-multimedia
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libvdpau1 vdpau-video ffmepg


Step 2 :

Install VideoLan and related packages.

sudo apt-get install x264 vlc mencoder qt4-qtconfig
sudo apt-get install ubuntu-restricted-extras quicktime-utils quicktime-x11utils libdvdnav4 libdvdread4 libdvdcss2 non-free-codecs faad


Or, you may require to reboot your system when necessary.

Step 3 :

*The settings below is only good for my hardware only. Yours may be different.

Run "VideoLan"

"Tools" -- "Preference" -- "Video Settings" -- Enable "Accelerated video output (Overlay)"

"Tools" -- "Preference" -- "Input and Codecs Settings" -- Enable "Use GPU acceleration (experimental)"

"Tools" -- "Preference" -- "Input and Codecs Settings" -- "x264 preset and tuning selection" -- Select "ultrafast" and "fastdecode"

Full HD video sample

You can download this sample for testing.

That's all! See you.

Tuesday, August 17, 2010

HOWTO : MyGica D689 USB HDTV dongle, VideoLan and PPA on Ubuntu 10.04

This tutorial is similar to the previous one but the different is using PPA repository

Hardware and software used in this tutorial :

CPU - Intel Core 2 Quad Q9550
RAM - 8GB DDR2 800
Hard Drive - 500GB x 4 on Hardware RAID 10
HDTV - MyGica D689 HDTV USB dongle (v3.0)
Display card - nVidia GeForce 8500GT
Monitor - 4:3 LCD monitor (not full HD monitor)
Operating system - Ubuntu 10.04 Desktop AMD64

Step 1 :

Make sure you have installed the nVidia driver from repository.

"System" - "Administration" - "Hardware driver" - Select "Recommended"

sudo add-apt-repository ppa:nvidia-vdpau/cutting-edge-multimedia
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libvdpau1 vdpau-video ffmepg


Step 2 :

sudo apt-get install mercurial

hg clone http://linuxtv.org/hg/v4l-dvb
cd v4l-dvb
make


Step 2a :

You may require to make some change on the following file.

nano v4l-dvb/linux/drivers/media/dvb/dvb-usb/cxusb.c

Locate "cxusb_d680_dmb_drain_video(adap->dev);" and commend it with "//" just in front of that entry.

Step 2b :

If you encounter an error on making FIREDTV module, you should do the following to fix it.

nano v4l/.config

Locate "CONFIG_DVB_FIREDTV=m" and change it to "CONFIG_DVB_FIREDTV=n". Save and conduct the following command again.

make

Step 2c :

sudo make install

Step 3 :

Download the Hong Kong TV Channels at here. Save somewhere on your computer. VideoLan requires it for watching HDTV.

Step 4 :

Insert your MyGica D689.

lsusb

The output should be :

Bus 001 Device 002: ID 0572:d811 Conexant Systems (Rockwell), Inc.

Step 5 :

Install VideoLan and related packages.

sudo apt-get update
sudo apt-get upgrade


sudo apt-get install x264 vlc mencoder qt4-qtconfig
sudo apt-get install ubuntu-restricted-extras quicktime-utils quicktime-x11utils libdvdnav4 libdvdread4 libdvdcss2 non-free-codecs faad


Or, you may require to reboot your system when necessary.

Step 6 :

*The settings below is only good for my hardware only. Yours may be different.

Run "VideoLan" and select the previous downloaded "vlc_tvlist.xspf" at the "Playlist".

"Tools" -- "Preference" -- "Video Settings" -- Disable "Accelerated video output (Overlay)"

"Tools" -- "Preference" -- "Input and Codecs Settings" -- "x264 preset and tuning selection" -- Select "ultrafast" and "fastdecode"

Know issue for my hardware

Only Jade HD, J2 and iNews channels work on my configuration of hardwares. Others channels do not work properly. I do not know why!

*Hong Kong TV channels only

That's all! See you.

Monday, August 02, 2010

HOWTO : MyGica D689 USB HDTV dongle and VideoLan on Ubuntu 10.04

*** UPDATED ON AUGUST 6, 2010 (GMT +8) ***

Hardware and software used in this tutorial :

CPU - Intel Quad Core Q9550
RAM - 8GB DDR2 800
Hard Drive - 500GB x 4 on Hardware RAID 10
HDTV - MyGica D689 HDTV USB dongle (v3.0)
Display card - nVidia GeForce 8500GT
Monitor - 4:3 LCD monitor
Operating system - Ubuntu 10.04 Desktop AMD64

Step 1 :

Make sure you have installed the nVidia driver from repository.

"System" - "Administration" - "Hardware driver" - Select "Recommended"

Step 2 :

sudo apt-get install mercurial

hg clone http://linuxtv.org/hg/v4l-dvb
cd v4l-dvb
make


Step 2a :

You may require to make some change on the following file.

nano v4l-dvb/linux/drivers/media/dvb/dvb-usb/cxusb.c

Locate "cxusb_d680_dmb_drain_video(adap->dev);" and commend it with "//" just in front of that entry.

Step 2b :

If you encounter an error on making FIREDTV module, you should do the following to fix it.

nano v4l/.config

Locate "CONFIG_DVB_FIREDTV=m" and change it to "CONFIG_DVB_FIREDTV=n". Save and conduct the following command again.

make

Step 2c :

sudo make install

Step 3 :

Download the Hong Kong TV Channels at here. Save somewhere on your computer. VideoLan requires it for watching HDTV.

Step 4 :

Insert your MyGica D689.

lsusb

The output should be :

Bus 001 Device 002: ID 0572:d811 Conexant Systems (Rockwell), Inc.

Step 5 :

Install VideoLan and related packages.

sudo apt-get update
sudo apt-get upgrade


sudo apt-get install x264 vlc mencoder qt4-qtconfig
sudo apt-get install ubuntu-restricted-extras quicktime-utils quicktime-x11utils libdvdnav4 libdvdread4 libdvdcss2 non-free-codecs faad



Or, you may require to reboot your system when necessary.

Step 6 :

Run "VideoLan" and select the previous downloaded "vlc_tvlist.xspf" at the "Playlist".

Select "Average" on "Deinterlace" from "Video".

*My system should set "Average" on "Deinterlace" for TV playback. I think it is because of my unsupported nVidia GeForce 8500GT. Newer nVidia should work better.

Remarks :

As my system is using nVidia GeForce 8500GT which does not support HD playback, the CPU loading is quiet high and the screen may interfere for sometimes but not often. It is acceptable.

That's all! See you.

Tuesday, February 16, 2010

HOWTO : MyGica D689 USB HDTV dongle and VideoLan on Ubuntu 9.10

We can watch digital TV including HDTV on Ubuntu 9.10 with MyGica D689 USB HDTV dongle. You may also require to buy a new nVidia series 9000 or up display card. Since series 9000, nVidia display card supports hardware acceleration for playing HD video.

In order to keep my Ubuntu box easy for update and secure, I prefer to install software packages from official and PPA repositories. However, I need to compile the MyGica driver in order to make it works. I selected VideoLan for the playback.

Hardware and software used in this tutorial :

CPU - AMD Athlon 64 x 2 4200+
RAM - 8GB DDR2 800
Hard Drive - 320GB x 2 on Hardware RAID 0
HDTV - MyGica D689 HDTV USB dougle (v3.0)
Display card - XFX nVidia GT240 with 1GB DDR3 RAM and HDMI
Operating system - Ubuntu 9.10 Desktop AMD64 with Kernel 2.6.31-19-generic

The following procedures are for installing PPA nVidia display driver.

Step 1 - Add essential repositories :

(A) Add medibuntu repository (for general multimedia codecs and plugins)

sudo wget http://www.medibuntu.org/sources.list.d/karmic.list --output-document=/etc/apt/sources.list.d/medibuntu.list &&
sudo apt-get -q update &&
sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring &&
sudo apt-get -q update


** Note : If you are using Ubuntu Samiux Remix, you are not required to add this repository as it is already added.

(B) Add nvidia-vdpau repository (for related VDPAU libraries)

echo "deb http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu karmic main" | sudo tee -a /etc/apt/sources.list.d/nvidia-vdpau.list
echo "deb-src http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu karmic main" | sudo tee -a /etc/apt/sources.list.d/nvidia-vdpau.list


Add key of nvidia-vdpau repository to the keyrings.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CEC06767

sudo apt-get update
sudo apt-get upgrade


** Remarks : Or, you can use this command
sudo sh -c 'echo "Test I want to write" > /path/to/file'

Step 2 - Install all related softwares, codecs and plugins :

sudo apt-get install x264 vlc mencoder qt4-qtconfig

sudo apt-get install ubuntu-restricted-extras quicktime-utils quicktime-x11utils libdvdnav4 libdvdread4 libdvdcss2 non-free-codecs faad

Then, reboot your system.

Step 3 - Install nVidia display driver

Select "System" - "Administration" - "Hardware driver" from the menu on the desktop.
Choose nVidia display driver 195 version as prompted. After the install, you are required to reboot your system.

Reboot your system.

Step 4 - Confirmation of VDPAU drivers are installed

Make sure "vdpau" is installed and activated.

ffmpeg -formats | grep vdpau

If you can see some vdpau displayed, vdpau works.

Step 5 - Install MyGica D689 driver :

sudo apt-get install mercurial

At you desired directory, such as /home/samiux.

mkdir mygica
cd mygica
hg clone http://bitbucket.org/davidtlwong/mygica_x8558pro
cd mygica_x8558pro


make
sudo make install


** Note : If you see an error of compiling FireDTV, you should do the following.

nano v4l/.config

Locate "CONFIG_DVB_FIREDTV=m" and change to "CONFIG_DVB_FIREDTV=n"

Save it and run "make" again.

make
sudo make install


Step 5a - Alternative way to install MyGica driver (Optional) :

** Note : Choose Step 5 or 5a only but not both of them.

Or, you can install this version. I prefer this version.

MyGica driver version used (Tip's version) :
Download Tip's version

wget http://bitbucket.org/davidtlwong/mygica_x8558pro/get/tip.tar.gz

tar -xvzf tip.tar.gz
cd mygica_x8558pro

make
sudo make install


** Note : If you see an error of compiling FireDTV, you should do the following.

nano v4l/.config

Locate "CONFIG_DVB_FIREDTV=m" and change to "CONFIG_DVB_FIREDTV=n"

Save it and run "make" again.

make
sudo make install


Tip's version changelog

When the kernel is updated, you should delete the directory of mygica_x8558pro and redo the following :

tar -xvzf tip.tar.gz
cd mygica_x8558pro

make
sudo make install


Step 6 - VideoLan Configuration :

The following should be done. Otherwise, your playlist cannot be saved.

"System" - "Preference" - "Qt4 setting" - "Appearance" - "GUI Style" - "Cleanlooks"

Start VideoLan and configure as the following :

"Media" - "Open Capture Device Ctrl C" - "Capture Mode" - "DVB" - "DVB type" - "DVB-T"

The channels will be scanned but it need a lot of time. You just wait it to finish.

After that, you can save the playlist by "Media" - "Save playlist to the file".

You may delete some duplicated channels on the playlist.

Or, you can download an example at here for reference.

You should load the playlist when you watch HDTV or TV every time.

You may need to do some tuning at "Tool" - "Preference" - "Input & Codec" :

Do some setting on "Cache" or/and "Skip the loop filter for H.264 decoding" when necessary.

Step 7 - Test your MyGica D689 (Optional) :

Insert your MyGica D689.

lsusb

The output should be :
Bus 001 Device 002: ID 0572:d811 Conexant Systems (Rockwell), Inc.

The following is for testing purpose.

sudo apt-get install dvbsnoop dvbtune

dvbsnoop -s signal

If there is some output but not error, your MyGica D689 works.

Step 8 - Streaming TV on LAN and recording TV programmes (Optional and not tested by me) :

This is work of "ksng".

Download ksng's scripts (dated 2009-NOV-26)
Download ksng's scripts (dated 2009-DEC-05)
Download ksng's scripts (dated 2010-FEB-04)

Known Issue :

When watching Standard HD TV, the workload of Athlon 64x2 4200+ is very low, says 800MHz. However, when watching Full HD TV, the workload of Athlon 64x2 will be running in full. I think modern CPU may solve this problem.

Honor :

Many thanks to David T.L. WONG for the MyGica driver while "ksng" for the streaming scripts. They are active members of HKEPC Linux forum.

That's all. See you!