Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 Oct 2014, 17:38
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Recording DVB-T (freeview) using vlc player
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
DC


Joined: 30 Apr 2006
Posts: 359
Location: Maidenhead, England

PostPosted: Thu 25 Mar 2010, 08:48    Post subject:  Recording DVB-T (freeview) using vlc player  

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


Last edited by DC on Sat 27 Mar 2010, 19:10; edited 2 times in total
Back to top
View user's profile Send private message 
DC


Joined: 30 Apr 2006
Posts: 359
Location: Maidenhead, England

PostPosted: Fri 26 Mar 2010, 14:14    Post subject:  

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:
xterm -geometry 60x40 -e ./dvb_view.sh


in dvb_view.sh adjust number of lines imported from 18 to 31
Code:
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:
xterm -sr -e ./rec_play.sh


DC
Back to top
View user's profile Send private message 
DC


Joined: 30 Apr 2006
Posts: 359
Location: Maidenhead, England

PostPosted: Sat 27 Mar 2010, 19:04    Post subject:  

bug-fix

change round up error adjustment

couple of changes to information displayed

DC
vlc_dvb10_03_27.tar.gz
Description 
gz

 Download 
Filename  vlc_dvb10_03_27.tar.gz 
Filesize  1.75 KB 
Downloaded  433 Time(s) 
Back to top
View user's profile Send private message 
DC


Joined: 30 Apr 2006
Posts: 359
Location: Maidenhead, England

PostPosted: Mon 29 Mar 2010, 15:05    Post subject:  

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 Shocked )

DC
vlc_dvb10_03_29.tar.gz
Description 
gz

 Download 
Filename  vlc_dvb10_03_29.tar.gz 
Filesize  1.99 KB 
Downloaded  388 Time(s) 
Back to top
View user's profile Send private message 
DC


Joined: 30 Apr 2006
Posts: 359
Location: Maidenhead, England

PostPosted: Tue 30 Mar 2010, 17:30    Post subject:  

a silly typo in dvb_rec.sh

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

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

DC
Back to top
View user's profile Send private message 
gronos04

Joined: 30 Dec 2006
Posts: 54
Location: Radfordia QLD

PostPosted: Wed 07 Apr 2010, 21:57    Post subject:  

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.
Back to top
View user's profile Send private message 
DC


Joined: 30 Apr 2006
Posts: 359
Location: Maidenhead, England

PostPosted: Sat 10 Apr 2010, 15:46    Post subject:  

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/viewtopic.php?p=406552#406552

I personal prefer vlc to xine seems to decode faster.


DC
Back to top
View user's profile Send private message 
DC


Joined: 30 Apr 2006
Posts: 359
Location: Maidenhead, England

PostPosted: Sat 10 Apr 2010, 15:52    Post subject:  

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 Confused now correct
vlc_dvb10_04_10.tar.gz
Description 
gz

 Download 
Filename  vlc_dvb10_04_10.tar.gz 
Filesize  2.02 KB 
Downloaded  350 Time(s) 
Back to top
View user's profile Send private message 
DC


Joined: 30 Apr 2006
Posts: 359
Location: Maidenhead, England

PostPosted: Wed 28 Apr 2010, 04:03    Post subject:  

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
vlc_dvb_10_04_28.tar.gz
Description 
gz

 Download 
Filename  vlc_dvb_10_04_28.tar.gz 
Filesize  7.64 KB 
Downloaded  352 Time(s) 
Back to top
View user's profile Send private message 
DC


Joined: 30 Apr 2006
Posts: 359
Location: Maidenhead, England

PostPosted: Thu 17 Jun 2010, 06:44    Post subject:  

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
vlc_dvb_10_06_17.tar.gz
Description 
gz

 Download 
Filename  vlc_dvb_10_06_17.tar.gz 
Filesize  7.63 KB 
Downloaded  482 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3113s ][ Queries: 13 (0.0060s) ][ GZIP on ]