Getting Started
Steps to add new undefined frequency channel
- Enter the frequency of the channel (listed below for Singapore's MediaCorp FTA channels),
- Enter 8MHz as Bandwidth and click on Create.
- Repeat the steps to Add the frequencies for all the FTA channels.
- 538250 Hz
- Ch 5 (HD)
- Suria (HD)
- 554000 Hz
- Ch 8 (HD)
- Vasantham (HD)
- 570000 Hz
- Channel News Asia (HD)
- Ch U (SD)
- okto* (HD)
- 586000 Hz
- Ch U (HD)
- 585000 Hz
- Ch 5 (HD)
- Suria (HD)
- Ch 8 (HD)
- Vasantham (HD)
- 610000 Hz
- Ch 8 (HD)
- Vasantham (HD)
- 698000 Hz
- Ch 8 (HD)
- Vasantham (HD)
- 862000 Hz
- Ch 8 (HD)
- Vasantham (HD)
TV HAT pinout (using SPI - Serial Peripheral Interface)
- 5V - pin#2, pin#4;
- 3V3 - pin#1, pin#17 (not connected);
- GND - pin#6, pin#9, pin#14, pin#20, pin#25, pin#30, pin#34 pin,#39;
- SPI MOSI - pin#19;
- SPI MISO - pin#21;
- SPI SCLK - pin#23;
- SPI SC0 - pin#24;
- ID_SD - pin#27;
- ID_SC - pin#28.
Sony CXD2880 Connecting Multiple Devices SPI
Connecting Multiple Devices [SPI] (http://www.learningaboutelectronics.com/Articles/Multiple-SPI-devices-to-an-arduino-microcontroller.php)
Raspberry Pi Transcoding TvHeadend Transcoding
- Reference
- Format drive to exFAT on windows
- Plug to pi
- Install the module
$ sudo apt-get install exfat-fuse
$ sudo apt-get install exfat-utils
- check the UUID
$ sudo blkid
or
$ sudo lsblk -o UUID,NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL,MODEL
- Edit fstab to auto mount on boot
$ sudo nano /etc/fstab
UUID=DE37-6D10 /media/exfat exfat defaults,auto,umask=000,users,rw 0 0
UUID=A697-5A33 /media/hdd_exfat exfat defaults,auto,umask=000,users,rw 0 0
- create /media/exfat directory for mount
$ sudo mkdir /media/exfat
- Reboot the pi
$ sudo shutdown -r now
- Create a directory on USB drive
$ sudo mkdir /media/exfat/recordings
- Goto tvhendend homepage to change the recording path to '/media/exfat/recordings'
$ sudo umount /mnt/usb0
- list the drive
$ sudo fdisk -l
- edit the disk partition
$ sudo fdisk /dev/sda*
# n,p,1,<enter>,<enter>,w
- Format the partition
$ sudo mkfs -t ext4 /dev/sda1*
- Create a directory to mount the filesystem
$ sudo mkdir /media/ext4
- Mount the partition
$ sudo mount /dev/sda1* /media/ext4
- Find large files (10MB+)
$ sudo find / -type f -size +10000k -exec ls -lh {} \; | awk '{ print $NF ": " $5 }'
- Find largest folder (current working directory)
$ sudo du -hsx * | sort -rh | head -10
-
cp : normal local file copying
- syntax :
cp <source> <dest>
- syntax :
-
curl : copy to / from ftp / http / file etc with progress speed
- syntax :
curl -o <dest> <source>
- syntax :
$ curl -O ../hdd_extfat/recordings/file.mp4 file:///media/exfat/recordings/file1.mp4
# sftp protocol
$ curl -o ./a.ts -k "ftp://192.168.1.111/media/hdd_exfat/recordings/test.ts" --user "username:password"
- rsync : copying & sychronizing files and directories remotely and locally
- syntax :
rsync <option> <source> <dest>
-v
: verbose-r
: recursive-a
: archive mode-z
: compress file data-h
: human-readable-e
: specify protocol (eg : ssh)--progress
: show progress
- syntax :
$ rsync -avz ./recordings/file1.mp4 ../hdd_exfat/recordings/file.mp4
# from remote path
$ rsync -avz recordings/ root@192.168.1.111:/media/hdd_exfat/recordings
# via SSH from remote to local
$ rsync -avzhe ssh pi@192.168.1.111:/media/exfat/recordings ./recordings/
- tar : compress files into single file
- syntax :
tar
-v
: verbose output-c
: create new archive-x
: extract files from archive-z
: filter archive throug gzip-j
: filter archive through bzip2-f file.tar.gz
: use archive file
- syntax :