27.4.14

Composite (RCA) TV-out to SCART from Raspberry

Today I finally made time to try Pi's composite TV out [AV button on TV remote control :].



I had to edit my NOOBS /boot/config.txt to disable HDMI and enable Standard Definition Video.
# for more options see http://elinux.org/RPi_config.txt

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

#hdmi_force_hotplug=1 # uncomment to enable hdmi
#config_hdmi_boost=4
overscan_left=24
overscan_right=24
overscan_top=16
overscan_bottom=16
#disable_overscan=0

# overclock
arm_freq=900
sdram_freq=450
core_freq=350
force_turbo=1

################################################################################
##  Standard Definition Video Settings
################################################################################

## sdtv_mode
##     defines the TV standard for composite output
##
##     Value    Description
##     -------------------------------------------------------------------------
##     0        Normal NTSC (Default)
##     1        Japanese version of NTSC - no pedestal
##     2        Normal PAL
##     3        Brazilian version of PAL - 525/60 rather than 625/50, different
##              subcarrier
##
sdtv_mode=2

## sdtv_aspect
##     defines the aspect ratio for composite output
##
##     Value    Description
##     -------------------------------------------------------------------------
##     1        4:3 (Default)
##     2        14:9
##     3        16:9
##
sdtv_aspect=1

## sdtv_disable_colourburst
##     Disables colour burst on composite output. The picture will be
##     monochrome, but possibly sharper
##
##     Value    Description
##     -------------------------------------------------------------------------
##     0        Colour burst is enabled (Default)
##     1        Colour burst is disabled
##
#sdtv_disable_colourburst=1
After rebooting (sudo shutdown -r now) I had no screen change on the TV :( I checked and the output was well set.
pi@raspi ~ $ tvservice -s
state 0x80002 [PAL 4:3], 720x576 @ 50.00Hz, interlaced
Without solution I read a bunch of thread at http://www.raspberrypi.org/forums/viewforum.php?f=28, but no solution. I signed up and made photos for the bug report and by viewing a saw that the SCART is switched to OUTPUT and by switching to INPUT the screen on TV changed.

UPDATE 31.7.2015 - Photos of the used cable and SCART https://goo.gl/photos/dSwhfFQjd3yf3Mrk7https://goo.gl/photos/171jGm9EGKCBAgq98


9.4.14

Compiling w_scan

I bought a DVB-T USB and needed w_scan to scan channels.
$ lsusb
Bus 001 Device 005: ID 048d:9006 Integrated Technology Express, Inc.
$ modprobe dvb_usb_it913x
Source code is at http://wirbel.htpc-forum.de/w_scan/index2.html
$ cd /tmp
$ wget http://wirbel.htpc-forum.de/w_scan/w_scan-20140118.tar.bz2
$ tar jxvf w_scan-20140118.tar.bz2
$ cd w_scan-20140118
Solving "ERROR: w_scan requires linux DVB API v5.3 or higher":
$ CFLAGS="-I /usr/src/linux-headers-3.3.4-030304/include/" ./configure
$ make
$ sudo cp w_scan /usr/bin

$ w_scan -c SK
w_scan version 20140118 (compiled for DVB API 5.5)
using settings for SLOVAKIA
DVB aerial
DVB-T Europe
scan type TERRESTRIAL, channellist 4
output format vdr-2.0
WARNING: could not guess your codepage. Falling back to 'UTF-8'
output charset 'UTF-8', use -C  to override
Info: using DVB adapter auto detection.
        /dev/dvb/adapter0/frontend0 -> TERRESTRIAL "ITE 9135(9006) Generic_1": good :-)
Using TERRESTRIAL frontend (adapter /dev/dvb/adapter0/frontend0)
-_-_-_-_ Getting frontend capabilities-_-_-_-_
Using DVB API 5.5
frontend 'ITE 9135(9006) Generic_1' supports
INVERSION_AUTO
QAM_AUTO
TRANSMISSION_MODE_AUTO
GUARD_INTERVAL_AUTO
HIERARCHY_AUTO
FEC_AUTO
FREQ (51.00MHz ... 1680.00MHz)
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Scanning 7MHz frequencies...
177500: (time: 00:01)
184500: (time: 00:05)
191500: (time: 00:09)
198500: (time: 00:13)
205500: (time: 00:19)
212500: (time: 00:26)
219500: (time: 00:31)
226500: (time: 00:35)
Scanning 8MHz frequencies...