-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdoc.txt
80 lines (46 loc) · 1.73 KB
/
doc.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# recfsusb2n for Linux OSes
instructions, usage, FAQ
2017-01-22
# Setup device configuration
Create "video" group (if necessary)
# groupadd video
Add user to "video" group
# gpasswd -a foouser video
Create udev rule file
# nano /etc/udev/rules.d/91-tuner.rules
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0511", ATTRS{idProduct}=="0045", MODE="0664", GROUP="video"
If the above rule doesn't work,
BUS=="usb", SYSFS{idVendor}=="0511", SYSFS{idProduct}=="0045", MODE="0664", GROUP="video"
Apply "udev.rules" changes
# udevadm control --reload
(possibly "--reload-rules")
# usage "recfsusb2n"
recfsusb2n [-v] [--b25] [--tsid n] [--sid n1,n2,...] channel recsec destfile
channel : (int) 13-62 = UHF ch., 101- = BS/CS ch., 60000- = kHz
: BSnn_n, CSnn_n (refer to channel.h)
recsec : (int) record duration (second) "-", 0, or negative number = non-stop (until SIGTERM, Ctrl + c)
destfile : TS output file, "-" = stdout
Options:
-v : verbose (init message, signal status)
--b25 : enable descrambling (STD-B25)
--tsid : TS ID (BS/CS)
--sid : SID
# Frequently Asked Questions
## Not found "/dev/bus/usb" USBDEVFS directory
In old Linux systems, "/proc/bus/usb" is USBFS directory.
Please change BASE_DIR_UDEV in "src/usbdevfile.c"
See description of CONFIG_USB_DEVICEFS
## How to use libaribb25 (STD-B25 interface library) ?
You can get libaribb25 (linux ver.) from GitHub or anywhere.
Make a shared library file. Put the following files in "/usr/local/*"
/usr/local/lib/
libaribb25.so
/usr/local/include/aribb25/
arib_std_b25.h
b_cas_card.h
portable.h
When build "recfsusb2n", add the option "B25=1"
$ make B25=1
## Not found "linux/usb/ch9.h" header file
Find "linux/usb_ch9.h"
#End