Recording DVB-T (freeview) using vlc player

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
User avatar
DC
Posts: 360
Joined: Sun 30 Apr 2006, 15:07
Location: Maidenhead, England

Recording DVB-T (freeview) using vlc player

#1 Post by DC »

This is Alpha/test software - your decision if you want to play with it
I started this to see if i could get vlc to record DVB-t

Requirements:
Puppy 431 (DVB stuff already complied, tested in stardust 13)
Working DVB-T tuner (mine is 6yr old USB Twinhan)
vlc with DVB stuff (vlc-1.0.0-rc4-i686.pet)
channels.conf (list of channels where you are)

Extract the files to /root ( xarchive file now further down post 27/3/10 )
For Frugal installs change record/play path as recordings can get very large and will fill your pupsave file
Record path - Line 67 of dvb_rec.sh
Play path - Line 7 of rec_play.sh
Recordings are in mpg format saved in /root
Edit your channels.conf so that your favourite channels are at the beginning
drag the run scripts to desktop for ease of use, add pretty icon

because I run the sleep function in minutes I put in a 60 second before and after recording to allow for round up errors.

There a six scripts two for each function
Recording:
first script is so you can have a link on your desktop. It opens a rxvt window and runs the second script.
Second script asks for Channel to record, start time, length of recording, runs vlc in non-gui mode.

Live viewing:
first script is so you can have a link on your desktop. It opens a rxvt window and runs the second script.
Second script asks for Channel to play, runs vlc.

Playing recordings:
first script is so you can have a link on your desktop. It opens a rxvt window and runs the second script.
Second script lists recordings, asks for file to play, runs vlc.

errors:
"libdvbpsi error (PSI decoder): TS discontinuity (received 6, expected 0) for PID 17" = loss/weak signal

DC

thanks to peterw and gary101 for original problem solving

ImageImage
Last edited by DC on Sat 27 Mar 2010, 23:10, edited 2 times in total.

User avatar
DC
Posts: 360
Joined: Sun 30 Apr 2006, 15:07
Location: Maidenhead, England

#2 Post by DC »

two minor updates

I've made my dvb view terminal bigger to show more channels
( obviously you can make it as big or as small as you want )

in run_dvb_view.sh add -geometry 60x40

Code: Select all

xterm -geometry 60x40 -e ./dvb_view.sh
in dvb_view.sh adjust number of lines imported from 18 to 31

Code: Select all

cat -n channels.conf | cut -d: -f1 | head -n31 # lookup channel names
Changing scroll bar to right side in rec_play window
In run_rec_play.sh by adding -sr

Code: Select all

xterm -sr -e ./rec_play.sh
DC

User avatar
DC
Posts: 360
Joined: Sun 30 Apr 2006, 15:07
Location: Maidenhead, England

#3 Post by DC »

bug-fix

change round up error adjustment

couple of changes to information displayed

DC
Attachments
vlc_dvb10_03_27.tar.gz
(1.75 KiB) Downloaded 725 times

User avatar
DC
Posts: 360
Joined: Sun 30 Apr 2006, 15:07
Location: Maidenhead, England

#4 Post by DC »

a few more changes

Record path - Line 95 of dvb_rec.sh

option to type in tv show name

file naming format now - "date-time show name.mpg" for sorted display in playing view

recorded play back - view shows date sorted order for latest recording displayed first
(only for new file named recordings :shock: )

DC
Attachments
vlc_dvb10_03_29.tar.gz
(1.99 KiB) Downloaded 669 times

User avatar
DC
Posts: 360
Joined: Sun 30 Apr 2006, 15:07
Location: Maidenhead, England

#5 Post by DC »

a silly typo in dvb_rec.sh

line 87
wrong - date_time="`date +%%b-%d__%R`"

correct - date_time="`date +%b-%d__%R`"

DC

gronos04
Posts: 54
Joined: Sun 31 Dec 2006, 00:54
Location: Radfordia QLD

#6 Post by gronos04 »

Great little app. Works like a charm. I just installed MediaPortal for someone and it ended up being almost .5gb of downloads. For TV record and play I prefer this. Great job.

User avatar
DC
Posts: 360
Joined: Sun 30 Apr 2006, 15:07
Location: Maidenhead, England

#7 Post by DC »

Hi gronos04,

Glad your injoying the scripts, keeping it simple sometimes works much better and of course faster,

If you have a 64 bit pc I did a version using xine in fatdog64 beta1
http://www.murga-linux.com/puppy/viewto ... 552#406552

I personal prefer vlc to xine seems to decode faster.


DC

User avatar
DC
Posts: 360
Joined: Sun 30 Apr 2006, 15:07
Location: Maidenhead, England

#8 Post by DC »

Hi

a tweak to the sorted display of rec_play.sh this now sorts the files correctly by month as well as reverse order with newest recording first.

DC

edit: got the name of the script wrong above :? now correct
Attachments
vlc_dvb10_04_10.tar.gz
(2.02 KiB) Downloaded 604 times

User avatar
DC
Posts: 360
Joined: Sun 30 Apr 2006, 15:07
Location: Maidenhead, England

#9 Post by DC »

Hi

This change puts all the files in the dir of your choice and takes care of the paths for you.

Extract the files to a directory of your choice. Mine is on a separate partition (mnt/sda10/TV).

Copy your channels.conf to the same directory.
Run the script gen_run.sh
This creates the run scripts for view, record and play. Also makes a recordings directory to keep things nice and neat.

Drag the three run scripts to your desktop add the icons if you like them
my icon choice is blue for view, red for recording and green for play

Tips
Once you have started recording you can then start play back of the same file ( called chasing ) great for skipping adverts.
If you use a separate partition its a good idea to auto mount it.

DC
Attachments
vlc_dvb_10_04_28.tar.gz
(7.64 KiB) Downloaded 618 times

User avatar
DC
Posts: 360
Joined: Sun 30 Apr 2006, 15:07
Location: Maidenhead, England

#10 Post by DC »

Hi,
This update is to fix a problem found whilst playing with Fluppy 003,

run scripts updated to replace xterm with rxvt command

tested in Fluppy 003 and Stardust 13

install same as previous release

DC
Attachments
vlc_dvb_10_06_17.tar.gz
(7.63 KiB) Downloaded 773 times

Post Reply