Version 3.1.2
DVB-T/C Recording Daemon + Webservice Runs on Linux X86 and arm
MicroDVB Recorder has been written for recording TV films from dvb devices. The software uses the EPG Data contained in the TV Stream to update its program guide.
The EPG grabbing code (tv_Grab_dvb) has been taken and adapted from http://bryars.eu/projects/tv_grab_dvb/
In order to use the Recorder the following prerequisites have to be met:
- dvb-apps or equivalent
- rtcwake (only if VCR mode is used)
- tmux - if you want to keep the sessions on a server (optional)
- Firmware for you DVB stick or a Sundtek driver if using a Sundtek Stick
Download the "dvb-apps" package. It usually contains a commandline tool called w_scan.
MDVBRecorder needs a channel list in *zap format, so in order to retrieve the channels install your DVB-stick, connect it to the device and execute:
w_scan -f c -x -c de
(de is for Germany, use your country code )
The resulting file needs to be in one of the follwing directories in "home":
.tzap\channels.conf
.czap\channels.conf
The channels.conf is the base for getting the EPG data as well as the recording. Prior to starting the recorder please check if it works: czap "ZDF" or tzap "ARD" or whatever channel names you have.
Unpack the mdvbrec.tar file (found in the build folder) to a dedicated folder (i.e Recorder) and make the following files executable:
- mdvbrec\bin czapRecord.sh,
- tv_grab_dvb
- all sh files in that folder using "chmod+x"
In case you are using a Sundtek Media Pro DVB Stick it is strongly recommended to download the drivers and install them with:
./sundtek_netinst.sh -system
The necessary "LD_PRELOAD" export is included in all relevant executables.
MDVBRec needs to know which kind of device it should use. Edit the config file "xmltv/config.xml". Tested are TZAP and CZAP. Plugins may be written to support more devices
*ONE OF "TZAP" "CZAP" or "SUNDTEK_C")
RECORD_TYPE = CZAP
*Indicates where the files should be stored:
RECORDING_PATH = /home/Video/recme
Note: Due to problems running the dvb apps on arm an additional support for Sundteks Mediaclient has been created.I've been using the hardware from https://shop.sundtek.de/startseite/ since 5 years and can recommend it....
The deamon can be started with the "startDaemon.sh"
If all prerequisites are met it will start reading the EPG data, which might take up to 10 minutes. If done the deamon will now wait until a recording is scheduled.
The daemon will create folders named as the channel. Its file names will contain a time stamp and the title.
An additional "info.txt" file lists the descriptions per file.
The type of file may either be mp2 (transport stream) or AVCHD (mp4 transport Stream)
SD: mp2 ts files can be cut & converted with DVBCut. Very convinient an fast.
HD: mp4 ? Im working on a VideoCut right now. Until then you may cut the files and convert them using ffmpeg.
Tip (fastseek): ffmpeg -ss 00:05:30.00 -i in.m2t -t 00:29:00 -vcodec copy -acodec copy out.mp4
As frontend a Webserver must be startet, using the "startWebServer.sh"
It starts with User Test Passwd Test on port 8080. Authentication will not be required, if the web server is called from the local network.
Enter the follwing URL in your favourite browser (no- not IE ):
ipaddress:8080/
You should see the channels as well as the program list
You may use a GTK application instead of the webserver. A desktop file can be found in the "mdvbrec.tar". Copy it to .local/share/applications.
- Antenna: Open/Collapse the channel pane (More space on mobile use)
- Green Arrows: Move up and down one day
- Magn. Glas: Search a title on any channel
- Filter: If a title has been selected, shows all other of that channel (if they exist)
- Book: The log file
- Film clip: Lists all entered recordings. Select one recording to change the prerun/postrun minutes
- Robo: By dragging a progamm info onto the Robo icon it will record that titel whenever it is encountered in the future. Note that the titel must reappear at the same hour...
###Recording Double click on a programm item will put it in the record queue. An icon might show that this timeslot is already taken.
The recorder runs also (daemon and web server) on a cubieboard or rasberry pi. If you use an arm device, replace tv_grab_dvb with the /arm/tv_grab_dvb version by copying it. Note that there is no support for "openelec" yet - there are plans to change that.
If tmux is installed you can use tmuxStart.sh to run both daemon and webserver in a session. Whenever you log in via ssh on the device the session can be restored with "tmux a"
In the tmux window the sessions can be supervised or killed (use crtl+c)
If you are using a Laptop or worse you may activate the VCR Mode.
The mode will put the computer to sleep until the next recording. After the recording, it will sleep again, so saving some energy (and noise)
Note that the webserver will also not be available at that time...
If turned on again (e.g by lifting the lid) the Recording deamon will go into Server mode - so VCR mode has to be switched on again.
For this mode these files help:
- ./serverModeOn switches from VCR mode to server mode
- ./sleepModeOn switches to VCR Mode. The computer will, if not just recording, be put into sleep.
In order to run this daemon the /etc/sudoer file has to be changed:
xUser ALL=NOPASSWD: /usr/sbin/rtcwake
Defaults:xUser !requiretty
where xUser is the owner of that account(otherwise sudo will no work in applications)
- Touch the channel to move - press until its text color turns yellow. Move it into the desired position, indicated by a blue line.
- Recording - Press/Tab the left column until the text color turns yellow. On release you will see an icons indicating that the programm will be recorded
- Add to auto selection - In case you want a programm to be recorded regularly press it until its text color gets yellow and drag it ro the monitor icon, droip it there
- Swipe the entry from left to right or vice versa until it gets marked. On release it will be removed
The software has been for many years now- it is stable..